DocuDetectDocs
Reference

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.

FieldTypeRequiredDescription
urlstringyes
expiresAtstring (date-time)yesISO 8601 date-time (UTC).
originstringyes

Me

The account and key making the call.

FieldTypeRequiredDescription
accountobjectyes
account.namestringyes
keyobjectyes
key.namestringyes
key.displayPrefixstringyes
key.scopesarray of one of documents:read, documents:write, documents:send, templates:read, webhooks:manage, embedding:sessionsyes

Signer

A person who signs. A one-signer document has one, with id s1. Never carries a signing link: people get theirs by email.

FieldTypeRequiredDescription
idstringyes
labelstring or nullyesThe role, on several-signer documents ("Buyer").
namestringyes
emailstringyes
stepintegeryesSigners in one step sign together; the next step starts when they all have.
statusone of waiting, active, opened, signed, declinedyeswaiting: their step hasn't started (or the document is a draft). active: emailed. opened: they opened it. signed, declined.
emailBouncedbooleanyesTheir latest signing request could not be delivered.
emailRefusedstring or nullyesWhy their signing request was not emailed when the account's sending checks refused it (held_for_review, new_account_limit, email_unverified, ...); null otherwise.
viewedAtstring (date-time) or nullyes
signedAtstring (date-time) or nullyes

CopyPerson

Someone who gets a copy when everyone has signed.

FieldTypeRequiredDescription
namestringyes
emailstringyes

Document

A document: a PDF with fields, its signers and where it stands.

FieldTypeRequiredDescription
idstringyes
titlestringyes
statusone of draft, sent, completed, canceledyessent means waiting for signatures.
expiredbooleanyesSent, and the signing links expired before everyone signed.
heldForReviewbooleanyesA draft our abuse guard stopped at send; nothing was emailed.
revisionintegeryesChanges with every edit and send.
pageCountintegeryes
fieldCountintegeryes
signersarray of Signeryes
copiesarray of CopyPersonyes
currentStepinteger or nullyes
folderIdstring or nullyes
templateIdstring or nullyesThe template it was made from.
createdWithApiKeyobject or nullyesThe API key that made it, by its name.
declinedobject or nullyes
createdAtstring (date-time)yesISO 8601 date-time (UTC).
updatedAtstring (date-time)yesISO 8601 date-time (UTC).
sentAtstring (date-time) or nullyes
expiresAtstring (date-time) or nullyes
completedAtstring (date-time) or nullyes
canceledAtstring (date-time) or nullyes

DocumentPage

One page of documents. Pass nextCursor back as cursor until it is null.

FieldTypeRequiredDescription
itemsarray of Documentyes
nextCursorstring or nullyes

DocumentEvent

Something that happened to a document. Thin: ids and types, never answers or field values.

FieldTypeRequiredDescription
idstringyes
typestringyesdocument.created, document.sent, document.viewed, document.signed, document.completed, document.canceled, ...
atstring (date-time)yesISO 8601 date-time (UTC).
actorobjectyes
actor.typestringyes
actor.signerIdstringno
dataobjectyes

DocumentEvents

A document's history, oldest first (at most 500).

FieldTypeRequiredDescription
itemsarray of DocumentEventyes

TemplateSigner

A signer of a template: a role and its step. Name the person for each when you use the template.

FieldTypeRequiredDescription
idstringyes
labelstringyes
stepintegeryes

TemplateSummary

A saved document you can send again with new people.

FieldTypeRequiredDescription
idstringyes
titlestringyes
pageCountintegeryes
fieldCountintegeryes
signersarray of TemplateSigneryes
readybooleanyesWhether it can be used now (every field has a signer, every signer signs).
folderIdstring or nullyes
useCountintegeryes
lastUsedAtstring (date-time) or nullyes
createdAtstring (date-time)yesISO 8601 date-time (UTC).
updatedAtstring (date-time)yesISO 8601 date-time (UTC).

Template

A template with the fields you fill before sending.

FieldTypeRequiredDescription
idstringyes
titlestringyes
pageCountintegeryes
fieldCountintegeryes
signersarray of TemplateSigneryes
readybooleanyesWhether it can be used now (every field has a signer, every signer signs).
folderIdstring or nullyes
useCountintegeryes
lastUsedAtstring (date-time) or nullyes
createdAtstring (date-time)yesISO 8601 date-time (UTC).
updatedAtstring (date-time)yesISO 8601 date-time (UTC).
senderFieldsarray of objectyesFields you fill before sending (values when you use it).
senderFields[].idstringyes
senderFields[].labelstring or nullyes
senderFields[].typestringyes

TemplatePage

One page of templates (not archived), most recently edited first.

FieldTypeRequiredDescription
itemsarray of TemplateSummaryyes
nextCursorstring or nullyes

Error

Every failure. code is stable; message is for people.

FieldTypeRequiredDescription
successfalseyes
statusintegeryes
messagestringyes
codestringyesinvalid_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.

FieldTypeRequiredDescription
idstringyes
urlstringyes
descriptionstringno
eventsarray of stringyes
statusone of enabled, disabledyes
disabledReasonone of owner, failing, gone, key_revokedno
secretPrefixstringno
createdViaone of settings, apiyes
apiKeyNamestringno
managedbooleanyesWhether this key may delete it: it made it, or a key that is now revoked or expired did.
lastSuccessAtstring (date-time)noISO 8601 date-time (UTC).
createdAtstring (date-time)noISO 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.

FieldTypeRequiredDescription
idstringyes
urlstringyes
descriptionstringno
eventsarray of stringyes
statusone of enabled, disabledyes
disabledReasonone of owner, failing, gone, key_revokedno
secretPrefixstringno
createdViaone of settings, apiyes
apiKeyNamestringno
managedbooleanyesWhether this key may delete it: it made it, or a key that is now revoked or expired did.
lastSuccessAtstring (date-time)noISO 8601 date-time (UTC).
createdAtstring (date-time)noISO 8601 date-time (UTC).
secretstringyes

WebhookEndpointList

Every webhook endpoint of the account.

FieldTypeRequiredDescription
itemsarray of WebhookEndpointyes

WebhookEndpointDeleted

The endpoint is gone; nothing more is sent to it.

FieldTypeRequiredDescription
idstringyes
deletedtrueyes