# Common Paper

> Find agreements, templates, agreement history and account details in Common Paper.

App · 19 actions. Web page: https://docs.lodol.com/docs/integrations/common-paper

## Actions

### Get agreement

Read detailed terms and status for an agreement.

**Inputs**

- Id (`id`, text, required): The UUID of the resource.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "confidentiality_period": 1,
        "recipient_email": "example",
        "recipient_name": "example",
        "recipient_organization": "example",
        "sender_organization": "example",
        "sender_signer_email": "example",
        "sender_signer_name": "example",
        "term": 1
      }
    }
  }
}
```

### Get current user

Read the user associated with the API key.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "created_at": "example",
        "email": "example",
        "email_verified": false,
        "id": "example",
        "name": "example",
        "organization_id": "example",
        "organization_name": "example",
        "role": "example",
        "title": "example",
        "updated_at": "example"
      },
      "id": "example",
      "type": "example"
    }
  }
}
```

### Get custom template

Read a custom agreement template in the organization.

**Inputs**

- Id (`id`, text, required): The UUID of the custom template.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "created_at": "example",
        "current_definition": "example",
        "current_version_number": 1,
        "custom_term_id": "example",
        "name": "example",
        "organization_id": "example",
        "updated_at": "example"
      },
      "id": "example",
      "type": "example"
    }
  }
}
```

### Get custom term

Read a reusable custom agreement term.

**Inputs**

- Id (`id`, text, required): The UUID of the custom terms.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "body": "example",
        "created_at": "example",
        "current_version_number": 1,
        "name": "example",
        "organization_id": "example",
        "term_type": "example",
        "updated_at": "example"
      },
      "id": "example",
      "type": "example"
    }
  }
}
```

### Get invitation

Read one invitation.

**Inputs**

- Id (`id`, text, required): The UUID of the invitation.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "access": "example",
        "created_at": "example",
        "email": "example",
        "organization_id": "example",
        "source_email": "example",
        "status": "example",
        "updated_at": "example",
        "user_id": "example"
      },
      "id": "example",
      "type": "example"
    }
  }
}
```

### Get organization

Read one Common Paper organization.

**Inputs**

- Id (`id`, text, required): The UUID of the resource.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "created_at": "example",
        "id": "example",
        "name": "example",
        "updated_at": "example"
      },
      "id": "example",
      "type": "example"
    }
  }
}
```

### Get template

Read one agreement template and its terms.

**Inputs**

- Id (`id`, text, required): The UUID of the resource.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "agreement_type": "example",
        "confidentiality_period": 1,
        "created_at": "example",
        "name": "example",
        "term": 1,
        "updated_at": "example"
      },
      "id": "example",
      "links": {
        "template_url": "example"
      },
      "standard_version": "example",
      "type": "example"
    }
  }
}
```

### Get user

Read one user in the organization.

**Inputs**

- Id (`id`, text, required): The UUID of the resource.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": {
      "attributes": {
        "created_at": "example",
        "email": "example",
        "email_verified": false,
        "id": "example",
        "name": "example",
        "role": "example",
        "title": "example",
        "updated_at": "example"
      },
      "id": "example",
      "type": "example"
    }
  }
}
```

### List agreement history

Read the history of one agreement.

**Inputs**

- Id (`id`, text, required): The UUID of the resource.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List agreement statuses

Read the available agreement statuses.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List agreement types

Read the available agreement types.

**Inputs**: None.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List agreements

Find agreements by date, type, status or recipient.

**Inputs**

- Page number (`page_number`, number): Page number to retrieve. Defaults to 1.
- Page size (`page_size`, number): Number of records per page. Defaults to 15.
- Filter status eq (`filter_status_eq`, text): Filter by exact status (e.g. draft, sent, signed, voided_by_sender, expired, declined).
- Filter agreement type eq (`filter_agreement_type_eq`, text): Filter by exact agreement type. Values are case-sensitive (e.g. "CSA", not "csa"); `list-agreement-types` returns the valid values.
- Filter recipient email eq (`filter_recipient_email_eq`, text): Filter by the recipient's exact email address.
- Filter recipient email cont (`filter_recipient_email_cont`, text): Filter agreements where the recipient email contains the given value.
- Filter created at gteq (`filter_created_at_gteq`, date and time): Filter agreements created on or after this date (ISO 8601).
- Filter created at lteq (`filter_created_at_lteq`, date and time): Filter agreements created on or before this date (ISO 8601).
- Filter recipient organization cont (`filter_recipient_organization_cont`, text): Filter agreements where the recipient's company name contains the given value (case-insensitive).
- Filter recipient name cont (`filter_recipient_name_cont`, text): Filter agreements where the recipient's name contains the given value (case-insensitive).
- Filter sender organization cont (`filter_sender_organization_cont`, text): Filter agreements where the sender's company name contains the given value (case-insensitive).
- Filter sent date gteq (`filter_sent_date_gteq`, date and time): Filter agreements sent on or after this date (ISO 8601).
- Filter sent date lteq (`filter_sent_date_lteq`, date and time): Filter agreements sent on or before this date (ISO 8601).
- Filter all signed date gteq (`filter_all_signed_date_gteq`, date and time): Filter agreements fully signed on or after this date (ISO 8601).
- Filter all signed date lteq (`filter_all_signed_date_lteq`, date and time): Filter agreements fully signed on or before this date (ISO 8601).
- Filter end date gteq (`filter_end_date_gteq`, date): Filter agreements that end on or after this date (YYYY-MM-DD).
- Filter end date lteq (`filter_end_date_lteq`, date): Filter agreements that end on or before this date (YYYY-MM-DD).
- Sort (`sort`, text): Comma-separated agreement fields to sort by. Prefix a field with `-` for descending, e.g. `end_date` or `-all_signed_date`.
- Full (`full`, true/false): When true, list responses include type-specific nested attributes (such as `csa`, `csa_order_form`, `dpa`, and other agreement-type sub-models) and the `additional_signers` co-signer list. Defaults to false. For CSA fees, check `standard_version` first - see the server instructions for which fee fields apply.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List custom templates

Read custom agreement templates in the organization.

**Inputs**

- Page number (`page_number`, number): Page number to retrieve. Defaults to 1.
- Page size (`page_size`, number): Number of records per page. Defaults to 15.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List custom terms

Read the reusable custom agreement terms.

**Inputs**

- Page number (`page_number`, number): Page number to retrieve. Defaults to 1.
- Page size (`page_size`, number): Number of records per page. Defaults to 15.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List invitations

Find invitations by status or recipient email.

**Inputs**

- Filter status eq (`filter_status_eq`, text): Filter invitations by status. One of: `pending`, `accepted`, `declined`.
- Filter access eq (`filter_access_eq`, text): Filter invitations by access level. One of: `admin`, `standard`.
- Filter source email eq (`filter_source_email_eq`, text): Filter invitations by the inviter's email.
- Page number (`page_number`, number): Page number to retrieve. Defaults to 1.
- Page size (`page_size`, number): Number of records per page. Defaults to 30.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List organization agreement history

Read recent agreement events across the organization.

**Inputs**

- Page number (`page_number`, number): Page number to retrieve. Defaults to 1.
- Page size (`page_size`, number): Number of records per page. Defaults to 15.
- Filter agreement id eq (`filter_agreement_id_eq`, text): Filter history events for a specific agreement by its UUID.
- Filter created at gteq (`filter_created_at_gteq`, date and time): Filter history events on or after this date (ISO 8601).
- Filter created at lteq (`filter_created_at_lteq`, date and time): Filter history events on or before this date (ISO 8601).

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List organizations

Read organizations accessible to this API key.

**Inputs**

- Page number (`page_number`, number): Page number to retrieve. Defaults to 1.
- Page size (`page_size`, number): Number of records per page. Defaults to 30.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List templates

Read the agreement templates available to the organization.

**Inputs**

- Page number (`page_number`, number): Page number to retrieve. Defaults to 1.
- Page size (`page_size`, number): Number of records per page. Defaults to 15.
- Full (`full`, true/false): When true, list responses include type-specific attributes and nested objects (such as `governing_law_region` and `template_csa_order_form`). Defaults to false.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```

### List users

Read users in the organization and filter by email.

**Inputs**

- Filter email eq (`filter_email_eq`, text): Filter users by exact email address.
- Filter email cont (`filter_email_cont`, text): Filter users where the email contains the given value.

**Outputs**

- `data` (object): The response from Common Paper.

**Example output**

```json
{
  "data": {
    "data": []
  }
}
```
