Schemas
The objects the REST API returns, generated from the OpenAPI document.
Source: apps/api/openapi/public-v1.json.
EmbeddedSession
A one-time signing link to show in a frame on origin. It opens once, within 5 minutes; the signer then has 60 minutes to sign.
| Field | Type | Required | Description |
|---|---|---|---|
url | string | yes | |
expiresAt | string (date-time) | yes | ISO 8601 date-time (UTC). |
origin | string | yes |
Me
The account and key making the call.
| Field | Type | Required | Description |
|---|---|---|---|
account | object | yes | |
account.name | string | yes | |
key | object | yes | |
key.name | string | yes | |
key.displayPrefix | string | yes | |
key.scopes | array of one of documents:read, documents:write, documents:send, templates:read, webhooks:manage, embedding:sessions | yes |
Signer
A person who signs. A one-signer document has one, with id s1. Never carries a signing link: people get theirs by email.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
label | string or null | yes | The role, on several-signer documents ("Buyer"). |
name | string | yes | |
email | string | yes | |
step | integer | yes | Signers in one step sign together; the next step starts when they all have. |
status | one of waiting, active, opened, signed, declined | yes | waiting: their step hasn't started (or the document is a draft). active: emailed. opened: they opened it. signed, declined. |
emailBounced | boolean | yes | Their latest signing request could not be delivered. |
emailRefused | string or null | yes | Why their signing request was not emailed when the account's sending checks refused it (held_for_review, new_account_limit, email_unverified, ...); null otherwise. |
viewedAt | string (date-time) or null | yes | |
signedAt | string (date-time) or null | yes |
CopyPerson
Someone who gets a copy when everyone has signed.
| Field | Type | Required | Description |
|---|---|---|---|
name | string | yes | |
email | string | yes |
Document
A document: a PDF with fields, its signers and where it stands.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
title | string | yes | |
status | one of draft, sent, completed, canceled | yes | sent means waiting for signatures. |
expired | boolean | yes | Sent, and the signing links expired before everyone signed. |
heldForReview | boolean | yes | A draft our abuse guard stopped at send; nothing was emailed. |
revision | integer | yes | Changes with every edit and send. |
pageCount | integer | yes | |
fieldCount | integer | yes | |
signers | array of Signer | yes | |
copies | array of CopyPerson | yes | |
currentStep | integer or null | yes | |
folderId | string or null | yes | |
templateId | string or null | yes | The template it was made from. |
createdWithApiKey | object or null | yes | The API key that made it, by its name. |
declined | object or null | yes | |
createdAt | string (date-time) | yes | ISO 8601 date-time (UTC). |
updatedAt | string (date-time) | yes | ISO 8601 date-time (UTC). |
sentAt | string (date-time) or null | yes | |
expiresAt | string (date-time) or null | yes | |
completedAt | string (date-time) or null | yes | |
canceledAt | string (date-time) or null | yes |
DocumentPage
One page of documents. Pass nextCursor back as cursor until it is null.
| Field | Type | Required | Description |
|---|---|---|---|
items | array of Document | yes | |
nextCursor | string or null | yes |
DocumentEvent
Something that happened to a document. Thin: ids and types, never answers or field values.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
type | string | yes | document.created, document.sent, document.viewed, document.signed, document.completed, document.canceled, ... |
at | string (date-time) | yes | ISO 8601 date-time (UTC). |
actor | object | yes | |
actor.type | string | yes | |
actor.signerId | string | no | |
data | object | yes |
DocumentEvents
A document's history, oldest first (at most 500).
| Field | Type | Required | Description |
|---|---|---|---|
items | array of DocumentEvent | yes |
TemplateSigner
A signer of a template: a role and its step. Name the person for each when you use the template.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
label | string | yes | |
step | integer | yes |
TemplateSummary
A saved document you can send again with new people.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
title | string | yes | |
pageCount | integer | yes | |
fieldCount | integer | yes | |
signers | array of TemplateSigner | yes | |
ready | boolean | yes | Whether it can be used now (every field has a signer, every signer signs). |
folderId | string or null | yes | |
useCount | integer | yes | |
lastUsedAt | string (date-time) or null | yes | |
createdAt | string (date-time) | yes | ISO 8601 date-time (UTC). |
updatedAt | string (date-time) | yes | ISO 8601 date-time (UTC). |
Template
A template with the fields you fill before sending.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
title | string | yes | |
pageCount | integer | yes | |
fieldCount | integer | yes | |
signers | array of TemplateSigner | yes | |
ready | boolean | yes | Whether it can be used now (every field has a signer, every signer signs). |
folderId | string or null | yes | |
useCount | integer | yes | |
lastUsedAt | string (date-time) or null | yes | |
createdAt | string (date-time) | yes | ISO 8601 date-time (UTC). |
updatedAt | string (date-time) | yes | ISO 8601 date-time (UTC). |
senderFields | array of object | yes | Fields you fill before sending (values when you use it). |
senderFields[].id | string | yes | |
senderFields[].label | string or null | yes | |
senderFields[].type | string | yes |
TemplatePage
One page of templates (not archived), most recently edited first.
| Field | Type | Required | Description |
|---|---|---|---|
items | array of TemplateSummary | yes | |
nextCursor | string or null | yes |
Error
Every failure. code is stable; message is for people.
| Field | Type | Required | Description |
|---|---|---|---|
success | false | yes | |
status | integer | yes | |
message | string | yes | |
code | string | yes | invalid_request, invalid_api_key, insufficient_scope, account_suspended, not_found, conflict, too_large, rate_limited, unavailable, internal, the idempotency codes, or a documents code such as held_for_review, email_unverified, new_account_limit, limit_apiKeys. |
WebhookEndpoint
A webhook endpoint. Endpoints this key made are shown in full (managed: true); others only with a masked address.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
url | string | yes | |
description | string | no | |
events | array of string | yes | |
status | one of enabled, disabled | yes | |
disabledReason | one of owner, failing, gone, key_revoked | no | |
secretPrefix | string | no | |
createdVia | one of settings, api | yes | |
apiKeyName | string | no | |
managed | boolean | yes | Whether this key may delete it: it made it, or a key that is now revoked or expired did. |
lastSuccessAt | string (date-time) | no | ISO 8601 date-time (UTC). |
createdAt | string (date-time) | no | ISO 8601 date-time (UTC). |
WebhookEndpointCreated
The new endpoint and its signing secret. The secret is shown only here: store it to check the DocuDetect-Signature header.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
url | string | yes | |
description | string | no | |
events | array of string | yes | |
status | one of enabled, disabled | yes | |
disabledReason | one of owner, failing, gone, key_revoked | no | |
secretPrefix | string | no | |
createdVia | one of settings, api | yes | |
apiKeyName | string | no | |
managed | boolean | yes | Whether this key may delete it: it made it, or a key that is now revoked or expired did. |
lastSuccessAt | string (date-time) | no | ISO 8601 date-time (UTC). |
createdAt | string (date-time) | no | ISO 8601 date-time (UTC). |
secret | string | yes |
WebhookEndpointList
Every webhook endpoint of the account.
| Field | Type | Required | Description |
|---|---|---|---|
items | array of WebhookEndpoint | yes |
WebhookEndpointDeleted
The endpoint is gone; nothing more is sent to it.
| Field | Type | Required | Description |
|---|---|---|---|
id | string | yes | |
deleted | true | yes |