> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corsair.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Eversign (Xodo Sign) API reference

> API reference for Eversign (Xodo Sign): every `eversign.api.*` operation with input and output types.

> [!NOTE]
>
> **New to Corsair?** See [API access](https://docs.corsair.dev/concepts/api.md), [authentication](https://docs.corsair.dev/concepts/auth.md), and [error handling](https://docs.corsair.dev/concepts/error-handling).

## Bulk Jobs

### create

`bulkJobs.create`

Create and send up to 250 documents from a template; each counts against the API quota and may bill overages.

**Risk:** `destructive`

```ts theme={null}
await corsair.eversign.api.bulkJobs.create({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `templateHash` | `string` | Yes | The template hash. |
| `rows` | `any[]` | Yes | The validated rows exactly as bulkSending.validateCsv returned them (max 250 documents). |

POST /template/\{template\_hash}/bulk/job. Up to 250 documents; each counts against the API quota and may be billed as overage.

**Output:** `Record<string, any>`

***

### get

`bulkJobs.get`

Get a bulk job.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.bulkJobs.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `bulkJobId` | `number \| string` | Yes | Bulk job id. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `entry_id` | `number \| string \| null` | No | — |
| `template_hash` | `string \| null` | No | — |
| `business_id` | `number \| string \| null` | No | — |
| `user_id` | `number \| string \| null` | No | — |
| `document_count` | `number \| string \| null` | No | — |
| `created_at` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |

***

### getStatus

`bulkJobs.getStatus`

A bulk job's counts of completed, cancelled and in-progress documents.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.bulkJobs.getStatus({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `bulkJobId` | `number \| string` | Yes | Bulk job id. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `bulk_job_created_at` | `string \| null` | No | — |
| `completed_documents` | `number \| string \| null` | No | — |
| `cancelled_documents` | `number \| string \| null` | No | — |
| `in_progress_documents` | `number \| string \| null` | No | — |
| `document_count` | `number \| string \| null` | No | — |
| `origin_template` | `Record<string, any> \| null` | No | — |
| `bulk_job_owner` | `Record<string, any> \| null` | No | — |

***

### list

`bulkJobs.list`

List bulk jobs.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.bulkJobs.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `pagination` | `object \| null` | No | — |
| `data` | `object[]` | Yes | — |

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   limit?: number | string | null,
>   offset?: number | string | null,
>   count?: number | string | null,
>   total?: number | string | null
> } | null
> ```

> [accordion] data full type
>
> ```ts theme={null}
> {
>   entry_id?: number | string | null,
>   template_hash?: string | null,
>   business_id?: number | string | null,
>   user_id?: number | string | null,
>   document_count?: number | string | null,
>   created_at?: string | null,
>   status?: string | null
> }[]
> ```

***

### listDocuments

`bulkJobs.listDocuments`

List a bulk job's documents.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.bulkJobs.listDocuments({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `bulkJobId` | `number \| string` | Yes | Bulk job id. |
| `limit` | `number` | No | — |
| `offset` | `number` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `pagination` | `object \| null` | No | — |
| `data` | `Record<string, any>[]` | Yes | — |

> [accordion] pagination full type
>
> ```ts theme={null}
> {
>   limit?: number | string | null,
>   offset?: number | string | null,
>   count?: number | string | null,
>   total?: number | string | null
> } | null
> ```

***

## Bulk Sending

### getBlankCsv

`bulkSending.getBlankCsv`

A template's blank bulk-sending CSV (headers to fill).

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.bulkSending.getBlankCsv({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `templateHash` | `string` | Yes | The template hash. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `csv` | `string` | Yes | — |

***

### validateCsv

`bulkSending.validateCsv`

Check a filled bulk-sending CSV; returns the rows for bulkJobs.create or the problems.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.bulkSending.validateCsv({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `templateHash` | `string` | Yes | The template hash. |
| `csv` | `string` | Yes | The CSV text, with the headers bulkSending.getBlankCsv gave. |

POST /template/\{template\_hash}/bulk/csv/validate with the CSV as multipart "csv\_with\_bulk\_data". Returns the rows bulkJobs.create takes, or \{valid: false, type: "validation\_errors", details} with each problem's row, validation\_error and description.

**Output:** `any[] \| Record<string, any>`

***

## Business Emails

### create

`businessEmails.create`

Add a custom requester email address (unverified until confirmed).

**Risk:** `write`

```ts theme={null}
await corsair.eversign.api.businessEmails.create({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `emailAddress` | `string` | Yes | — |

POST /v2/business\_emails with scope custom\_requester. A custom requester email must be verified (sendVerification, then verify with the emailed code, sent as verificationCode) before documents can use it.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `hash` | `string` | Yes | — |
| `business` | `string \| null` | No | — |
| `emailAddress` | `string \| null` | No | — |
| `scope` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `createdBy` | `string \| null` | No | — |

***

### delete

`businessEmails.delete`

Remove a business email.

**Risk:** `destructive`

```ts theme={null}
await corsair.eversign.api.businessEmails.delete({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `hash` | `string` | Yes | The business email hash. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | — |

***

### get

`businessEmails.get`

Get a business email.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.businessEmails.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `hash` | `string` | Yes | The business email hash. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `hash` | `string` | Yes | — |
| `business` | `string \| null` | No | — |
| `emailAddress` | `string \| null` | No | — |
| `scope` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `createdBy` | `string \| null` | No | — |

***

### list

`businessEmails.list`

List business emails (custom requester addresses) and whether they are verified.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.businessEmails.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `page` | `number` | No | — |
| `itemsPerPage` | `number` | No | — |
| `emailAddress` | `string` | No | — |
| `status` | `unverified \| verified` | No | — |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   hash: string,
>   business?: string | null,
>   emailAddress?: string | null,
>   scope?: string | null,
>   status?: string | null,
>   createdAt?: string | null,
>   createdBy?: string | null
> }[]
> ```

***

### sendVerification

`businessEmails.sendVerification`

Email a verification code to a business email address.

**Risk:** `destructive`

```ts theme={null}
await corsair.eversign.api.businessEmails.sendVerification({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `hash` | `string` | Yes | The business email hash. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `hash` | `string` | Yes | — |
| `business` | `string \| null` | No | — |
| `emailAddress` | `string \| null` | No | — |
| `scope` | `string \| null` | No | — |
| `status` | `string \| null` | No | — |
| `createdAt` | `string \| null` | No | — |
| `createdBy` | `string \| null` | No | — |

***

### verify

`businessEmails.verify`

Submit the verification code from that email.

**Risk:** `write`

```ts theme={null}
await corsair.eversign.api.businessEmails.verify({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `hash` | `string` | Yes | The business email hash. |
| `code` | `string` | Yes | The code from the verification email. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | — |

***

## Businesses

### list

`businesses.list`

List the businesses on the account.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.businesses.list({});
```

**Input:** *empty object*

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   business_id?: number | string | null,
>   business_status?: number | string | null,
>   business_identifier?: string | null,
>   business_name?: string | null,
>   creation_time_stamp?: number | string | null,
>   is_primary?: number | boolean | string | null
> }[]
> ```

***

## Documents

### auditLog

`documents.auditLog`

A document's audit log, oldest event first.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.documents.auditLog({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `documentHash` | `string` | Yes | The document or template hash (its id). |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   entry_id?: number | string | null,
>   event_type?: string | null,
>   event_assoc_signer?: number | string | null,
>   event_assoc_signer_name?: string | null,
>   event_assoc_signer_email?: string | null,
>   event_assoc_signer_additional_data?: any,
>   time_stamp?: number | string | null,
>   document_checksum?: string | null,
>   combined_checksum?: string | null,
>   client_ip?: string | null,
>   signer_ip?: string | null,
>   merged_document_file_checksum?: string | null
> }[]
> ```

***

### cancel

`documents.cancel`

Cancel a pending document; signers can no longer sign it.

**Risk:** `destructive`

```ts theme={null}
await corsair.eversign.api.documents.cancel({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `documentHash` | `string` | Yes | The document or template hash (its id). |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | — |

***

### create

`documents.create`

Create a document and send it to its signers by email (unless isDraft, or embeddedSigningEnabled without deliverEmail). Sandbox mode makes it a non-binding test; production documents count against the plan quota.

**Risk:** `destructive`

```ts theme={null}
await corsair.eversign.api.documents.create({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `sandbox` | `boolean` | No | Sandbox mode: not legally binding, title marked as a test. Default: the sandbox option. |
| `title` | `string` | No | — |
| `message` | `string` | No | Message shown to all signers. |
| `customRequesterName` | `string` | No | — |
| `customRequesterEmail` | `string` | No | Sender address; must be verified (see businessEmails). |
| `redirect` | `string` | No | URL after signing. |
| `redirectDecline` | `string` | No | URL after declining. |
| `client` | `string` | No | Your own reference. |
| `expires` | `number` | No | Expiry as a Unix timestamp. Default: the business setting. |
| `embeddedSigningEnabled` | `boolean` | No | Sign inside your page (iframe) via each signer embedded\_signing\_url; signers are not emailed unless deliverEmail. |
| `meta` | `Record<string, string>` | No | Your key-value data, returned with the document. |
| `isDraft` | `boolean` | No | Save as a draft; nothing is sent. |
| `useSignerOrder` | `boolean` | No | — |
| `reminders` | `boolean` | No | Automatic reminders. |
| `requireAllSigners` | `boolean` | No | — |
| `flexibleSigning` | `boolean` | No | No fields: signers place their own. |
| `useHiddenTags` | `boolean` | No | Read hidden tags in the file. |
| `files` | `object[]` | Yes | — |
| `signers` | `object[]` | Yes | — |
| `recipients` | `object[]` | No | CCs. |
| `fields` | `object[]` | No | One list of fields per file, in file order. Left out, a signature page is added. |

POST /document. Give each file as exactly one of fileId (from files.upload), fileUrl or fileBase64. fields has one list per file, in file order, and every field needs an identifier; leave fields out and Xodo Sign appends a signature page. Answers the whole document.

> [accordion] files full type
>
> ```ts theme={null}
> {
>   name: string,
>   fileId?: string,
>   fileUrl?: string,
>   fileBase64?: string
> }[]
> ```

> [accordion] signers full type
>
> ```ts theme={null}
> {
>   id: number,
>   name: string,
>   email: string,
>   order?: number,
>   pin?: string,
>   smsAuthentication?: boolean,
>   phoneNumber?: string,
>   message?: string,
>   deliverEmail?: boolean,
>   language?: string
> }[]
> ```

> [accordion] recipients full type
>
> ```ts theme={null}
> {
>   name: string,
>   email: string,
>   language?: string
> }[]
> ```

> [accordion] fields full type
>
> ```ts theme={null}
> {
>   type: signature | initials | date_signed | note | text | checkbox | radio | dropdown | attachment,
>   x: number,
>   y: number,
>   width?: number,
>   height?: number,
>   page: number,
>   signer?: number | OWNER,
>   name?: string,
>   identifier: string,
>   required?: boolean,
>   readonly?: boolean,
>   merge?: boolean,
>   validationType?: email_address | letters_only | numbers_only,
>   textStyle?: string,
>   textFont?: string,
>   textSize?: number,
>   textColor?: string,
>   value?: string | number,
>   options?: string[],
>   group?: number
> }[][]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `document_hash` | `string` | Yes | — |
| `requester_email` | `string \| null` | No | — |
| `custom_requester_name` | `string \| null` | No | — |
| `custom_requester_email` | `string \| null` | No | — |
| `is_draft` | `number \| boolean \| string \| null` | No | — |
| `is_template` | `number \| boolean \| string \| null` | No | — |
| `is_completed` | `number \| boolean \| string \| null` | No | — |
| `is_archived` | `number \| boolean \| string \| null` | No | — |
| `is_deleted` | `number \| boolean \| string \| null` | No | — |
| `is_trashed` | `number \| boolean \| string \| null` | No | — |
| `is_cancelled` | `number \| boolean \| string \| null` | No | — |
| `is_expired` | `number \| boolean \| string \| null` | No | — |
| `embedded` | `number \| boolean \| string \| null` | No | — |
| `in_person` | `number \| boolean \| string \| null` | No | — |
| `embedded_signing_enabled` | `number \| boolean \| string \| null` | No | — |
| `flexible_signing` | `number \| boolean \| string \| null` | No | — |
| `permission` | `string \| number \| null` | No | — |
| `template_id` | `string \| null` | No | — |
| `title` | `string \| null` | No | — |
| `subject` | `string \| null` | No | — |
| `message` | `string \| null` | No | — |
| `use_signer_order` | `number \| boolean \| string \| null` | No | — |
| `reminders` | `number \| boolean \| string \| null` | No | — |
| `require_all_signers` | `number \| boolean \| string \| null` | No | — |
| `redirect` | `string \| null` | No | — |
| `redirect_decline` | `string \| null` | No | — |
| `client` | `string \| null` | No | — |
| `created` | `number \| string \| null` | No | — |
| `completed` | `number \| string \| null` | No | — |
| `expires` | `number \| string \| null` | No | — |
| `files` | `object[] \| null` | No | — |
| `signers` | `object[] \| null` | No | — |
| `recipients` | `object[] \| null` | No | — |
| `fields` | `Record<string, any>[][] \| null` | No | — |
| `log` | `object[] \| null` | No | — |
| `meta` | `Record<string, any> \| any[] \| null` | No | — |

> [accordion] files full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   file_id?: string | null,
>   pages?: number | string | null
> }[] | null
> ```

> [accordion] signers full type
>
> ```ts theme={null}
> {
>   id?: number | string | null,
>   name?: string | null,
>   email?: string | null,
>   role?: string | null,
>   order?: number | string | null,
>   pin?: string | null,
>   signer_authentication_sms_enabled?: number | boolean | string | null,
>   signer_authentication_phone_number?: string | null,
>   message?: string | null,
>   signed?: number | boolean | string | null,
>   signed_timestamp?: number | string | null,
>   required?: number | boolean | string | null,
>   deliver_email?: number | boolean | string | null,
>   language?: string | null,
>   declined?: number | boolean | string | null,
>   removed?: number | boolean | string | null,
>   bounced?: number | boolean | string | null,
>   sent?: number | boolean | string | null,
>   viewed?: number | boolean | string | null,
>   embedded_signing_url?: string | null,
>   status?: string | null
> }[] | null
> ```

> [accordion] recipients full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   email?: string | null,
>   role?: string | null,
>   language?: string | null
> }[] | null
> ```

> [accordion] log full type
>
> ```ts theme={null}
> {
>   event?: string | null,
>   signer?: number | string | null,
>   timestamp?: number | string | null
> }[] | null
> ```

***

### delete

`documents.delete`

Delete a document or template for good. Cancel a pending one and trash a completed or draft one first.

**Risk:** `destructive`

```ts theme={null}
await corsair.eversign.api.documents.delete({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `documentHash` | `string` | Yes | The document or template hash (its id). |

DELETE /document. Cancel a pending document, and trash a completed or draft one, before deleting it.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | — |

***

### downloadFinal

`documents.downloadFinal`

Download the signed PDF, optionally with the audit trail, or only its URL. Fails until the document is completed.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.documents.downloadFinal({ documentHash: 'j6yMcaF2gQBIIS', auditTrail: true });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `documentHash` | `string` | Yes | The document or template hash (its id). |
| `auditTrail` | `boolean` | No | Attach the audit trail to the PDF. |
| `documentId` | `AT \| number` | No | AT for the audit trail only, or a file number from 0. |
| `urlOnly` | `boolean` | No | Return a link to the PDF instead of the file. |

GET /download\_final\_document. Fails with document\_not\_completed until every required signer has signed. auditTrail appends the audit trail; documentId AT returns only the audit trail; urlOnly returns a link.

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   contentBase64?: string,
>   text?: string,
>   contentType: string,
>   byteLength: number,
>   filename?: string,
>   contentOmitted?: not_requested | over_limit,
>   fileId?: string
> } | {
>   url: string
> }
> ```

***

### downloadOriginal

`documents.downloadOriginal`

Download the original PDF.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.documents.downloadOriginal({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `documentHash` | `string` | Yes | The document or template hash (its id). |

**Output:** `object`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   contentBase64?: string,
>   text?: string,
>   contentType: string,
>   byteLength: number,
>   filename?: string,
>   contentOmitted?: not_requested | over_limit,
>   fileId?: string
> } | {
>   url: string
> }
> ```

***

### get

`documents.get`

Get a document or template: status, signers (with embedded signing URLs), files, fields and log.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.documents.get({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `documentHash` | `string` | Yes | The document or template hash (its id). |

GET /document?document\_hash=. Works for templates too.

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `document_hash` | `string` | Yes | — |
| `requester_email` | `string \| null` | No | — |
| `custom_requester_name` | `string \| null` | No | — |
| `custom_requester_email` | `string \| null` | No | — |
| `is_draft` | `number \| boolean \| string \| null` | No | — |
| `is_template` | `number \| boolean \| string \| null` | No | — |
| `is_completed` | `number \| boolean \| string \| null` | No | — |
| `is_archived` | `number \| boolean \| string \| null` | No | — |
| `is_deleted` | `number \| boolean \| string \| null` | No | — |
| `is_trashed` | `number \| boolean \| string \| null` | No | — |
| `is_cancelled` | `number \| boolean \| string \| null` | No | — |
| `is_expired` | `number \| boolean \| string \| null` | No | — |
| `embedded` | `number \| boolean \| string \| null` | No | — |
| `in_person` | `number \| boolean \| string \| null` | No | — |
| `embedded_signing_enabled` | `number \| boolean \| string \| null` | No | — |
| `flexible_signing` | `number \| boolean \| string \| null` | No | — |
| `permission` | `string \| number \| null` | No | — |
| `template_id` | `string \| null` | No | — |
| `title` | `string \| null` | No | — |
| `subject` | `string \| null` | No | — |
| `message` | `string \| null` | No | — |
| `use_signer_order` | `number \| boolean \| string \| null` | No | — |
| `reminders` | `number \| boolean \| string \| null` | No | — |
| `require_all_signers` | `number \| boolean \| string \| null` | No | — |
| `redirect` | `string \| null` | No | — |
| `redirect_decline` | `string \| null` | No | — |
| `client` | `string \| null` | No | — |
| `created` | `number \| string \| null` | No | — |
| `completed` | `number \| string \| null` | No | — |
| `expires` | `number \| string \| null` | No | — |
| `files` | `object[] \| null` | No | — |
| `signers` | `object[] \| null` | No | — |
| `recipients` | `object[] \| null` | No | — |
| `fields` | `Record<string, any>[][] \| null` | No | — |
| `log` | `object[] \| null` | No | — |
| `meta` | `Record<string, any> \| any[] \| null` | No | — |

> [accordion] files full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   file_id?: string | null,
>   pages?: number | string | null
> }[] | null
> ```

> [accordion] signers full type
>
> ```ts theme={null}
> {
>   id?: number | string | null,
>   name?: string | null,
>   email?: string | null,
>   role?: string | null,
>   order?: number | string | null,
>   pin?: string | null,
>   signer_authentication_sms_enabled?: number | boolean | string | null,
>   signer_authentication_phone_number?: string | null,
>   message?: string | null,
>   signed?: number | boolean | string | null,
>   signed_timestamp?: number | string | null,
>   required?: number | boolean | string | null,
>   deliver_email?: number | boolean | string | null,
>   language?: string | null,
>   declined?: number | boolean | string | null,
>   removed?: number | boolean | string | null,
>   bounced?: number | boolean | string | null,
>   sent?: number | boolean | string | null,
>   viewed?: number | boolean | string | null,
>   embedded_signing_url?: string | null,
>   status?: string | null
> }[] | null
> ```

> [accordion] recipients full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   email?: string | null,
>   role?: string | null,
>   language?: string | null
> }[] | null
> ```

> [accordion] log full type
>
> ```ts theme={null}
> {
>   event?: string | null,
>   signer?: number | string | null,
>   timestamp?: number | string | null
> }[] | null
> ```

***

### list

`documents.list`

List documents by status: all, my\_action\_required, waiting\_for\_others, completed, drafts or cancelled.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.documents.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `type` | `all \| my_action_required \| waiting_for_others \| completed \| drafts \| cancelled` | No | Which documents. Defaults to "all". |
| `limit` | `number` | No | Items per page (default and max 500). |
| `page` | `number` | No | Page number, from 1. |

GET /document?type= with all, my\_action\_required, waiting\_for\_others, completed, drafts or cancelled. Up to 500 per page; page counts from 1.

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   document_hash: string,
>   requester_email?: string | null,
>   custom_requester_name?: string | null,
>   custom_requester_email?: string | null,
>   is_draft?: number | boolean | string | null,
>   is_template?: number | boolean | string | null,
>   is_completed?: number | boolean | string | null,
>   is_archived?: number | boolean | string | null,
>   is_deleted?: number | boolean | string | null,
>   is_trashed?: number | boolean | string | null,
>   is_cancelled?: number | boolean | string | null,
>   is_expired?: number | boolean | string | null,
>   embedded?: number | boolean | string | null,
>   in_person?: number | boolean | string | null,
>   embedded_signing_enabled?: number | boolean | string | null,
>   flexible_signing?: number | boolean | string | null,
>   permission?: string | number | null,
>   template_id?: string | null,
>   title?: string | null,
>   subject?: string | null,
>   message?: string | null,
>   use_signer_order?: number | boolean | string | null,
>   reminders?: number | boolean | string | null,
>   require_all_signers?: number | boolean | string | null,
>   redirect?: string | null,
>   redirect_decline?: string | null,
>   client?: string | null,
>   created?: number | string | null,
>   completed?: number | string | null,
>   expires?: number | string | null,
>   files?: {
>     name?: string | null,
>     file_id?: string | null,
>     pages?: number | string | null
>   }[] | null,
>   signers?: {
>     id?: number | string | null,
>     name?: string | null,
>     email?: string | null,
>     role?: string | null,
>     order?: number | string | null,
>     pin?: string | null,
>     signer_authentication_sms_enabled?: number | boolean | string | null,
>     signer_authentication_phone_number?: string | null,
>     message?: string | null,
>     signed?: number | boolean | string | null,
>     signed_timestamp?: number | string | null,
>     required?: number | boolean | string | null,
>     deliver_email?: number | boolean | string | null,
>     language?: string | null,
>     declined?: number | boolean | string | null,
>     removed?: number | boolean | string | null,
>     bounced?: number | boolean | string | null,
>     sent?: number | boolean | string | null,
>     viewed?: number | boolean | string | null,
>     embedded_signing_url?: string | null,
>     status?: string | null
>   }[] | null,
>   recipients?: {
>     name?: string | null,
>     email?: string | null,
>     role?: string | null,
>     language?: string | null
>   }[] | null,
>   fields?: Record<string, any>[][] | null,
>   log?: {
>     event?: string | null,
>     signer?: number | string | null,
>     timestamp?: number | string | null
>   }[] | null,
>   meta?: Record<string, any> | any[] | null
> }[]
> ```

***

### reassignSigner

`documents.reassignSigner`

Replace a signer; the owner, the old and the new signer are emailed.

**Risk:** `destructive`

```ts theme={null}
await corsair.eversign.api.documents.reassignSigner({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `documentHash` | `string` | Yes | The document or template hash (its id). |
| `signerId` | `number` | Yes | — |
| `newSignerName` | `string` | Yes | — |
| `newSignerEmail` | `string` | Yes | — |
| `reason` | `string` | No | — |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | — |

***

### sendReminder

`documents.sendReminder`

Email a signer a reminder.

**Risk:** `destructive`

```ts theme={null}
await corsair.eversign.api.documents.sendReminder({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `documentHash` | `string` | Yes | The document or template hash (its id). |
| `signerId` | `number` | Yes | The signer to remind. |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | — |

***

### trash

`documents.trash`

Move a document or template to the trash.

**Risk:** `destructive`

```ts theme={null}
await corsair.eversign.api.documents.trash({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `documentHash` | `string` | Yes | The document or template hash (its id). |

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `success` | `true` | Yes | — |

***

### useTemplate

`documents.useTemplate`

Create a document from a template and send it to the signers given for its roles.

**Risk:** `destructive`

```ts theme={null}
await corsair.eversign.api.documents.useTemplate({ templateId: 'j6yMcaF4gQBIIQ', sandbox: true, signers: [{ role: 'Client', name: 'Jane Doe', email: 'jane@example.com' }], fields: [{ identifier: 'plan', value: 'Pro' }] });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `sandbox` | `boolean` | No | Sandbox mode: not legally binding, title marked as a test. Default: the sandbox option. |
| `title` | `string` | No | — |
| `message` | `string` | No | Message shown to all signers. |
| `customRequesterName` | `string` | No | — |
| `customRequesterEmail` | `string` | No | Sender address; must be verified (see businessEmails). |
| `redirect` | `string` | No | URL after signing. |
| `redirectDecline` | `string` | No | URL after declining. |
| `client` | `string` | No | Your own reference. |
| `expires` | `number` | No | Expiry as a Unix timestamp. Default: the business setting. |
| `embeddedSigningEnabled` | `boolean` | No | Sign inside your page (iframe) via each signer embedded\_signing\_url; signers are not emailed unless deliverEmail. |
| `meta` | `Record<string, string>` | No | Your key-value data, returned with the document. |
| `templateId` | `string` | Yes | The template hash. |
| `signers` | `object[]` | Yes | One entry per signer role; every required role. |
| `recipients` | `object[]` | No | — |
| `fields` | `object[]` | No | Values for the template merge fields, by identifier. |

POST /document with template\_id. One signer entry per role, all required roles included; fields sets merge field values by identifier.

> [accordion] signers full type
>
> ```ts theme={null}
> {
>   role: string,
>   name?: string,
>   email?: string,
>   pin?: string,
>   smsAuthentication?: boolean,
>   phoneNumber?: string,
>   message?: string,
>   deliverEmail?: boolean,
>   language?: string
> }[]
> ```

> [accordion] recipients full type
>
> ```ts theme={null}
> {
>   role: string,
>   name: string,
>   email: string,
>   language?: string
> }[]
> ```

> [accordion] fields full type
>
> ```ts theme={null}
> {
>   identifier: string,
>   value: string | number
> }[]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `document_hash` | `string` | Yes | — |
| `requester_email` | `string \| null` | No | — |
| `custom_requester_name` | `string \| null` | No | — |
| `custom_requester_email` | `string \| null` | No | — |
| `is_draft` | `number \| boolean \| string \| null` | No | — |
| `is_template` | `number \| boolean \| string \| null` | No | — |
| `is_completed` | `number \| boolean \| string \| null` | No | — |
| `is_archived` | `number \| boolean \| string \| null` | No | — |
| `is_deleted` | `number \| boolean \| string \| null` | No | — |
| `is_trashed` | `number \| boolean \| string \| null` | No | — |
| `is_cancelled` | `number \| boolean \| string \| null` | No | — |
| `is_expired` | `number \| boolean \| string \| null` | No | — |
| `embedded` | `number \| boolean \| string \| null` | No | — |
| `in_person` | `number \| boolean \| string \| null` | No | — |
| `embedded_signing_enabled` | `number \| boolean \| string \| null` | No | — |
| `flexible_signing` | `number \| boolean \| string \| null` | No | — |
| `permission` | `string \| number \| null` | No | — |
| `template_id` | `string \| null` | No | — |
| `title` | `string \| null` | No | — |
| `subject` | `string \| null` | No | — |
| `message` | `string \| null` | No | — |
| `use_signer_order` | `number \| boolean \| string \| null` | No | — |
| `reminders` | `number \| boolean \| string \| null` | No | — |
| `require_all_signers` | `number \| boolean \| string \| null` | No | — |
| `redirect` | `string \| null` | No | — |
| `redirect_decline` | `string \| null` | No | — |
| `client` | `string \| null` | No | — |
| `created` | `number \| string \| null` | No | — |
| `completed` | `number \| string \| null` | No | — |
| `expires` | `number \| string \| null` | No | — |
| `files` | `object[] \| null` | No | — |
| `signers` | `object[] \| null` | No | — |
| `recipients` | `object[] \| null` | No | — |
| `fields` | `Record<string, any>[][] \| null` | No | — |
| `log` | `object[] \| null` | No | — |
| `meta` | `Record<string, any> \| any[] \| null` | No | — |

> [accordion] files full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   file_id?: string | null,
>   pages?: number | string | null
> }[] | null
> ```

> [accordion] signers full type
>
> ```ts theme={null}
> {
>   id?: number | string | null,
>   name?: string | null,
>   email?: string | null,
>   role?: string | null,
>   order?: number | string | null,
>   pin?: string | null,
>   signer_authentication_sms_enabled?: number | boolean | string | null,
>   signer_authentication_phone_number?: string | null,
>   message?: string | null,
>   signed?: number | boolean | string | null,
>   signed_timestamp?: number | string | null,
>   required?: number | boolean | string | null,
>   deliver_email?: number | boolean | string | null,
>   language?: string | null,
>   declined?: number | boolean | string | null,
>   removed?: number | boolean | string | null,
>   bounced?: number | boolean | string | null,
>   sent?: number | boolean | string | null,
>   viewed?: number | boolean | string | null,
>   embedded_signing_url?: string | null,
>   status?: string | null
> }[] | null
> ```

> [accordion] recipients full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   email?: string | null,
>   role?: string | null,
>   language?: string | null
> }[] | null
> ```

> [accordion] log full type
>
> ```ts theme={null}
> {
>   event?: string | null,
>   signer?: number | string | null,
>   timestamp?: number | string | null
> }[] | null
> ```

***

## Files

### upload

`files.upload`

Upload a file; its file\_id can be used in documents for 30 days.

**Risk:** `write`

```ts theme={null}
await corsair.eversign.api.files.upload({ file: 'https://example.com/contract.pdf' });
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `file` | `string \| object` | Yes | The PDF or office file: a public URL, or \{base64, filename}. |

POST /file as multipart with the file under "upload". Unused files are deleted after 30 days.

> [accordion] file full type
>
> ```ts theme={null}
> string | {
>   url: string,
>   filename?: string,
>   contentType?: string
> } | {
>   base64: string,
>   filename?: string,
>   contentType?: string
> }
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `file_id` | `string` | Yes | — |
| `total_pages` | `number \| string \| null` | No | — |

***

## Templates

### create

`templates.create`

Create a template with signer roles and fields.

**Risk:** `write`

```ts theme={null}
await corsair.eversign.api.templates.create({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `sandbox` | `boolean` | No | Sandbox mode: not legally binding, title marked as a test. Default: the sandbox option. |
| `isDraft` | `boolean` | No | — |
| `title` | `string` | No | — |
| `message` | `string` | No | — |
| `useSignerOrder` | `boolean` | No | — |
| `reminders` | `boolean` | No | — |
| `requireAllSigners` | `boolean` | No | — |
| `files` | `object[]` | Yes | — |
| `signers` | `object[]` | No | Signer roles. Without roles the template is an appendix. |
| `recipients` | `object[]` | No | — |
| `meta` | `Record<string, string>` | No | Your key-value data, returned with the document. |
| `fields` | `object[]` | No | — |

> [accordion] files full type
>
> ```ts theme={null}
> {
>   name: string,
>   fileId?: string,
>   fileUrl?: string,
>   fileBase64?: string
> }[]
> ```

> [accordion] signers full type
>
> ```ts theme={null}
> {
>   id: number,
>   role: string,
>   name?: string,
>   email?: string,
>   order?: number,
>   pin?: string,
>   message?: string,
>   language?: string,
>   required?: boolean
> }[]
> ```

> [accordion] recipients full type
>
> ```ts theme={null}
> {
>   role: string,
>   name?: string,
>   email?: string,
>   language?: string,
>   required?: boolean
> }[]
> ```

> [accordion] fields full type
>
> ```ts theme={null}
> {
>   type: signature | initials | date_signed | note | text | checkbox | radio | dropdown | attachment,
>   x: number,
>   y: number,
>   width?: number,
>   height?: number,
>   page: number,
>   signer?: number | OWNER,
>   name?: string,
>   identifier: string,
>   required?: boolean,
>   readonly?: boolean,
>   merge?: boolean,
>   validationType?: email_address | letters_only | numbers_only,
>   textStyle?: string,
>   textFont?: string,
>   textSize?: number,
>   textColor?: string,
>   value?: string | number,
>   options?: string[],
>   group?: number
> }[][]
> ```

**Output**

| Name | Type | Required | Description |
| - | - | - | - |
| `document_hash` | `string` | Yes | — |
| `requester_email` | `string \| null` | No | — |
| `custom_requester_name` | `string \| null` | No | — |
| `custom_requester_email` | `string \| null` | No | — |
| `is_draft` | `number \| boolean \| string \| null` | No | — |
| `is_template` | `number \| boolean \| string \| null` | No | — |
| `is_completed` | `number \| boolean \| string \| null` | No | — |
| `is_archived` | `number \| boolean \| string \| null` | No | — |
| `is_deleted` | `number \| boolean \| string \| null` | No | — |
| `is_trashed` | `number \| boolean \| string \| null` | No | — |
| `is_cancelled` | `number \| boolean \| string \| null` | No | — |
| `is_expired` | `number \| boolean \| string \| null` | No | — |
| `embedded` | `number \| boolean \| string \| null` | No | — |
| `in_person` | `number \| boolean \| string \| null` | No | — |
| `embedded_signing_enabled` | `number \| boolean \| string \| null` | No | — |
| `flexible_signing` | `number \| boolean \| string \| null` | No | — |
| `permission` | `string \| number \| null` | No | — |
| `template_id` | `string \| null` | No | — |
| `title` | `string \| null` | No | — |
| `subject` | `string \| null` | No | — |
| `message` | `string \| null` | No | — |
| `use_signer_order` | `number \| boolean \| string \| null` | No | — |
| `reminders` | `number \| boolean \| string \| null` | No | — |
| `require_all_signers` | `number \| boolean \| string \| null` | No | — |
| `redirect` | `string \| null` | No | — |
| `redirect_decline` | `string \| null` | No | — |
| `client` | `string \| null` | No | — |
| `created` | `number \| string \| null` | No | — |
| `completed` | `number \| string \| null` | No | — |
| `expires` | `number \| string \| null` | No | — |
| `files` | `object[] \| null` | No | — |
| `signers` | `object[] \| null` | No | — |
| `recipients` | `object[] \| null` | No | — |
| `fields` | `Record<string, any>[][] \| null` | No | — |
| `log` | `object[] \| null` | No | — |
| `meta` | `Record<string, any> \| any[] \| null` | No | — |

> [accordion] files full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   file_id?: string | null,
>   pages?: number | string | null
> }[] | null
> ```

> [accordion] signers full type
>
> ```ts theme={null}
> {
>   id?: number | string | null,
>   name?: string | null,
>   email?: string | null,
>   role?: string | null,
>   order?: number | string | null,
>   pin?: string | null,
>   signer_authentication_sms_enabled?: number | boolean | string | null,
>   signer_authentication_phone_number?: string | null,
>   message?: string | null,
>   signed?: number | boolean | string | null,
>   signed_timestamp?: number | string | null,
>   required?: number | boolean | string | null,
>   deliver_email?: number | boolean | string | null,
>   language?: string | null,
>   declined?: number | boolean | string | null,
>   removed?: number | boolean | string | null,
>   bounced?: number | boolean | string | null,
>   sent?: number | boolean | string | null,
>   viewed?: number | boolean | string | null,
>   embedded_signing_url?: string | null,
>   status?: string | null
> }[] | null
> ```

> [accordion] recipients full type
>
> ```ts theme={null}
> {
>   name?: string | null,
>   email?: string | null,
>   role?: string | null,
>   language?: string | null
> }[] | null
> ```

> [accordion] log full type
>
> ```ts theme={null}
> {
>   event?: string | null,
>   signer?: number | string | null,
>   timestamp?: number | string | null
> }[] | null
> ```

***

### list

`templates.list`

List templates, archived templates or drafts.

**Risk:** `read`

```ts theme={null}
await corsair.eversign.api.templates.list({});
```

**Input**

| Name | Type | Required | Description |
| - | - | - | - |
| `businessId` | `number` | No | Business to act in. Default: the businessId option, else the primary business. |
| `type` | `templates \| templates_archived \| template_drafts` | No | Defaults to "templates". |
| `limit` | `number` | No | Items per page (default and max 500). |
| `page` | `number` | No | Page number, from 1. |

**Output:** `object[]`

> [accordion] Output full type
>
> ```ts theme={null}
> {
>   document_hash: string,
>   requester_email?: string | null,
>   custom_requester_name?: string | null,
>   custom_requester_email?: string | null,
>   is_draft?: number | boolean | string | null,
>   is_template?: number | boolean | string | null,
>   is_completed?: number | boolean | string | null,
>   is_archived?: number | boolean | string | null,
>   is_deleted?: number | boolean | string | null,
>   is_trashed?: number | boolean | string | null,
>   is_cancelled?: number | boolean | string | null,
>   is_expired?: number | boolean | string | null,
>   embedded?: number | boolean | string | null,
>   in_person?: number | boolean | string | null,
>   embedded_signing_enabled?: number | boolean | string | null,
>   flexible_signing?: number | boolean | string | null,
>   permission?: string | number | null,
>   template_id?: string | null,
>   title?: string | null,
>   subject?: string | null,
>   message?: string | null,
>   use_signer_order?: number | boolean | string | null,
>   reminders?: number | boolean | string | null,
>   require_all_signers?: number | boolean | string | null,
>   redirect?: string | null,
>   redirect_decline?: string | null,
>   client?: string | null,
>   created?: number | string | null,
>   completed?: number | string | null,
>   expires?: number | string | null,
>   files?: {
>     name?: string | null,
>     file_id?: string | null,
>     pages?: number | string | null
>   }[] | null,
>   signers?: {
>     id?: number | string | null,
>     name?: string | null,
>     email?: string | null,
>     role?: string | null,
>     order?: number | string | null,
>     pin?: string | null,
>     signer_authentication_sms_enabled?: number | boolean | string | null,
>     signer_authentication_phone_number?: string | null,
>     message?: string | null,
>     signed?: number | boolean | string | null,
>     signed_timestamp?: number | string | null,
>     required?: number | boolean | string | null,
>     deliver_email?: number | boolean | string | null,
>     language?: string | null,
>     declined?: number | boolean | string | null,
>     removed?: number | boolean | string | null,
>     bounced?: number | boolean | string | null,
>     sent?: number | boolean | string | null,
>     viewed?: number | boolean | string | null,
>     embedded_signing_url?: string | null,
>     status?: string | null
>   }[] | null,
>   recipients?: {
>     name?: string | null,
>     email?: string | null,
>     role?: string | null,
>     language?: string | null
>   }[] | null,
>   fields?: Record<string, any>[][] | null,
>   log?: {
>     event?: string | null,
>     signer?: number | string | null,
>     timestamp?: number | string | null
>   }[] | null,
>   meta?: Record<string, any> | any[] | null
> }[]
> ```

***


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.