> ## 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) plugin

> Xodo Sign (formerly Eversign) e-signature documents and templates, embedded signing links, reminders, signer reassignment, PDF downloads, audit logs, file uploads, bulk sending and custom requester emails, with signed document webhooks.

Use **Eversign (Xodo Sign)** through Corsair: one client, typed API calls, local DB sync, and incoming webhooks.

Find the API access key under Developer in your Xodo Sign account (the free API Sandbox plan has one). It is sent as the access\_key query parameter. Each call acts in one business: give businessId, set the businessId option, or the plugin uses the account's primary business (looked up once).

Sandbox mode: set the plugin's sandbox option (or sandbox on a call) and documents and templates are created as tests: not legally binding and titled "\[test-only-not-binding] ...". The free sandbox plan allows unlimited sandbox documents, 2 production documents a month, and templates.

Xodo Sign reports most failures with HTTP 200 and \{"success": false, "error": \{"type": ...}}. The plugin turns these into an ApiError: invalid or missing key → 401, permission problems → 403, not found → 404, anything else → 400, with the type (or Xodo Sign's sentence) as the message. A list with nothing in it comes back as the error "no\_result"; documents.list and templates.list return an empty list instead.

Creating a document emails its signers unless it is a draft or uses embedded signing (each signer then gets an embedded\_signing\_url and is only emailed with deliverEmail). Reminders, reassignment and business email verification also send email.

Webhooks: set a Webhook URL on the Developer page. Each event carries event\_hash, HMAC-SHA256 of event\_time followed by event\_type keyed with the API key; the plugin checks it with the connection's key and refuses events more than 25 hours old (Xodo Sign retries for 24 hours). The hash does not cover the document hash or the signer, so confirm a document's state with documents.get before acting on an event. Handlers get the event with the document, business, user and app ids and the signer's id, role and order; the signer's name and email are left out. The database keeps documents by hash with their state and signer counts, and businesses; signer names, emails, phone numbers and files are not stored. OAuth app connections are not covered.

**What you get:**

* 29 typed API operations
* 2 synced entities (`businesses`, `documents`) for fast `.search()` / `.list()`
* 13 incoming webhook event types

## Setup

**1. Install**

```bash npm theme={null}
npm install corsair @corsair-dev/eversign better-sqlite3
npm install --save-dev @types/better-sqlite3
```

```bash yarn theme={null}
yarn add corsair @corsair-dev/eversign better-sqlite3
yarn add --dev @types/better-sqlite3
```

```bash pnpm theme={null}
pnpm install corsair @corsair-dev/eversign better-sqlite3
pnpm install --save-dev @types/better-sqlite3
```

```bash bun theme={null}
bun add corsair @corsair-dev/eversign better-sqlite3
bun add --dev @types/better-sqlite3
```

**2. Add the plugin**

```ts corsair.ts theme={null}
import Database from 'better-sqlite3';
import { createCorsair } from 'corsair';
import { eversign } from '@corsair-dev/eversign';

export const corsair = createCorsair({
	plugins: [
		eversign(),
	],
	database: new Database('corsair.db'),
	kek: process.env.CORSAIR_KEK!,
	multiTenancy: true,
	hub: {
		projectApiKey: process.env.CORSAIR_API_KEY!,
		signingSecret: process.env.CORSAIR_SIGNING_SECRET!,
	},
});
```

With `multiTenancy: true`, scope calls with `corsair.withTenant(id)`. See [Quick start](https://docs.corsair.dev/quick-start.md) for KEK + Hub keys, and [Multi-tenancy](https://docs.corsair.dev/concepts/multi-tenancy.md) for account isolation.

**3. Choose authentication**

> [tab] API Key (Recommended)
>
> Store the Eversign (Xodo Sign) API key before the first call: `pnpm corsair setup --plugin=eversign --tenant=acme api_key=<your-key>` (leave out `--tenant` without `multiTenancy`), or pass it as `key` in the plugin options. With Hub, each tenant enters their own key on the connect page. See [API key auth](https://docs.corsair.dev/concepts/api-key).
>
> ```ts theme={null}
> eversign()
> ```
>
> More: [API Key](https://docs.corsair.dev/concepts/api-key)

**4. Connect a tenant**

Mint a connect link and send the tenant to it. Hub hosts the page and delivers the result to your app — see [Connect / OAuth](https://docs.corsair.dev/management/connect).

```ts theme={null}
const { connectUrl } = await corsair.manage.connect.createLink({
	plugin: 'eversign',
	tenantId: 'acme',
});
// redirect the user's browser to connectUrl
```

## Example API calls

**Documents waiting for others to sign**

```ts theme={null}
const tenant = corsair.withTenant('acme');
await tenant.eversign.api.documents.list({ type: 'waiting_for_others', limit: 20 });
```

**Send a PDF for signature (sandbox, embedded signing)**

```ts theme={null}
const tenant = corsair.withTenant('acme');
await tenant.eversign.api.documents.create({
	sandbox: true,
	title: 'Service agreement',
	embeddedSigningEnabled: true,
	files: [{ name: 'agreement.pdf', fileUrl: 'https://example.com/agreement.pdf' }],
	signers: [{ id: 1, name: 'Jane Doe', email: 'jane@example.com' }],
});
```

See the full list on the [API](https://docs.corsair.dev/plugins/eversign/api.md) page.

## Query synced data

Synced entities support `tenant.eversign.db.<entity>.search()` and `.list()`: `businesses`, `documents`.

See [Database](https://docs.corsair.dev/plugins/eversign/database.md) for filters and operators.

## Webhooks

This plugin registers **13** webhook event types. Configure the provider to POST to your Corsair HTTP handler, then use `webhookHooks` on the plugin factory.

See [Webhooks](https://docs.corsair.dev/plugins/eversign/webhooks.md) for every event path and payload shape, and [Webhooks concept](https://docs.corsair.dev/concepts/webhooks.md) for routing.

## What's next

> [card] [API reference](https://docs.corsair.dev/plugins/eversign/api.md)
>
> Every `eversign.api.*` operation with input and output types.

> [card] [Database](https://docs.corsair.dev/plugins/eversign/database.md)
>
> Synced entities, search filters, and operators.

> [card] [Webhooks](https://docs.corsair.dev/plugins/eversign/webhooks.md)
>
> Event paths, payloads, and `webhookHooks` examples.

> [card] [Connect / OAuth](https://docs.corsair.dev/management/connect)
>
> createLink, Hub delivery, and tenant connect flows.

> [card] [Use with agents](https://docs.corsair.dev/mcp-adapters/mcp-adapters)
>
> Expose this plugin's operations as MCP tools.


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