- Real sends.
contracts.createsends the sign request to every signer by email or SMS. Passsave_as_draft: 'yes'to create the contract without sending, thencontracts.sendDraftwhen it is ready. - Demo contracts. Pass
test: 'yes'to mark a contract as a demo; demo contracts are not charged sending credits. metadatais a string. It is echoed in the contract payload and in webhook events, so a single string is what you get back, not a JSON object.- PDF URLs expire.
contract_pdf_urlon a signed contract is kept for 3 days after each request that returns it; request the contract again for a fresh URL. - Withdrawing.
contracts.withdrawstops a sent contract from being signed. Signed contracts cannot be withdrawn, and a withdrawn contract stays withdrawn. - Signers.
contracts.addSignerjoins a signer to a contract but sends nothing;contracts.resendToSignersends the sign request. Both need the signer’sidfrom the contract’ssigners(add returns no signer object, so re-read the contract). - Rate limits. eSignatures applies adaptive rate limits and warns that frequent polling of
contracts.getcan lead to blocked requests. The plugin backs off and retries a 429 up to three times, honoringRetry-Afterwhen present. Prefer webhooks for status changes. - Webhooks. The plugin does not receive webhooks; eSignatures sends them to the HTTPS endpoint configured on the same API panel.
- 12 typed API operations
Setup
1
Install
2
Add the plugin
corsair.ts
multiTenancy: true to get corsair.withTenant(id); without it the client is single-tenant. See Quick start for KEK + Hub keys, and Multi-tenancy for account isolation.3
Choose authentication
- API Key (Recommended)
No setup in code. The first call as a tenant with no stored key throws More: API Key
AuthMissingError, which may carry a connectUrl; mint a connect link to collect the Secret Token from the tenant.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.
Example API calls
Read a contractWhat’s next
API reference
Every
esignatures.api.* operation with input and output types.Connect / OAuth
createLink, Hub delivery, and tenant connect flows.
Use with agents
Expose this plugin’s operations as MCP tools.