An envelope is the core object in the Doctavian Signatures API. It brings together documents, recipients, sign groups and signing fields into a single signing transaction, and defines the rules governing how and when each party signs. Every signing workflow starts with creating an envelope.
An envelope is created in one call — POST /signatures/envelope/create — with its documents, recipients, sign groups, fields and settings all in the request body. Documents are referenced by the storage id returned by POST /signatures/document/upload, so uploading always comes first. The new envelope is a Draft: nothing is sent until you call POST /signatures/envelope/{envelopeId}/send. Envelopes can also be created from a stored Envelope Template.
| Section | Holds | Read more |
|---|---|---|
documents[] | The files to sign, by storage id | Documents |
recipients[] | The people who act on the envelope, their role, order and verification | Recipients |
signGroups[] | Positions that any one of several recipients can fill | Configure Signing Order |
fields[] | What each recipient completes, and where | Signature Fields Reference |
envelope | The settings for the envelope as a whole | below |
externalContext | A request-level object echoed back in the response (not stored) | External context |
The sections are linked by integer reference ids you choose — referenceDocumentId, referenceSignerId, referenceSignGroupId — unique within the request. The response returns a server-generated id for every object; it does not echo the reference ids, so match returned entries by the externalContext you set on each document and recipient, and by the unique name of each field and sign group.
The envelope object controls the communication and behaviour of the signing transaction. Its settings are optional and cover:
isSignOrder off, everyone is emailed at send; with it on, recipients act in sequence and each is notified once the one before has signed. See Configure Signing Order.externalContext: your own object, stored with the envelope and returned by get and in status callbacks.Every property, with its type, default and limits, is in the API Reference.
An envelope is a Draft until it is sent, In Progress while recipients act, and then ends as Completed, Declined, Canceled, Expired or Failed. A draft can be deleted (Deleted) and restored. Every action from sending onwards is recorded in the Audit Trail.
For every status, transition and the operations each status allows, see Envelope Lifecycle.
An update takes the same body as create and replaces the draft entirely: documents, recipients, sign groups, fields and settings are overwritten, not merged. Because each storage id is single-use, replacing the document list means uploading every document again and referencing the new ids. Only drafts can be updated.
Send sends the draft as it currently stands and moves it to In Progress. Only the envelope's creator can send it, and only once.
Once sent, the envelope's documents, recipients and fields are fixed. Only the expiry settings can change, through PUT /signatures/envelope/{envelopeId}/edit.
Resending a notification and reassigning a recipient are recipient actions, called with the recipient's transaction token — see Signing.
Draft with its documents, recipients and fields as they were.GET /signatures/envelope/{envelopeId}/get returns the envelope in full: its settings, documents, recipients and sign groups with their current status, and every field with its current value. It is the way to see who has signed, who's next and what's outstanding.
Right after the last signature, while the final documents are processed, get returns
409ENVELOPE_DOCUMENTS_PROCESSING. Retry shortly.
The envelope's signing settings, as snapshotted when it was created, are returned only when you ask for them with includeSettings; see Signing Settings Reference.
GET /signatures/envelope/list returns one page of envelopes from one view, such as inbox, sent, drafts or completed. GET /signatures/envelope/count returns the totals for every view in one call.
One envelope can appear more than once in a list: the list returns one entry per recipient position the caller holds. De-duplicate on
idif you want envelopes rather than positions.
Instead of polling, you can have Doctavian call your service as the envelope progresses. To turn callbacks on, send the envelope with an X-Client-Authorization header (see Create and Send Envelope).
The header doesn't authenticate the send — Authorization does that. It tells Doctavian where to call back and which external connector to authenticate with. Generate it as described in Client Header. Without the header, no callbacks are made.
Doctavian then sends a POST to your service once when the envelope is sent, each time a recipient's status changes, and each time the envelope's status changes. The callback carries the envelope's id and status, each document and recipient with its status, the values recipients entered in fields, and the externalContext objects stored with the envelope, its documents and its recipients, so you can match the callback to your own records:
{
"envelope": {
"id": "61914d53-50ec-44a9-a64f-ed473f2c82cf",
"status": "Completed",
…
},
"documents": [
{
"id": "eff65b7a-3b81-4e41-8b2e-70ed15b645bf",
"name": "NDA Agreement",
"externalContext": { "contractId": "NDA-2026-0187" },
…
}
],
"recipients": [ … ],
"fields": [ … ],
"externalContext": { "crmDealId": "D-20931" },
…
}On a Completed callback, download the signed documents with GET /signatures/envelope/{envelopeId}/document/{documentId}/download using documents[].id. See Receive Callbacks for setting up your endpoint, retrying downloads while the final documents are processed, and falling back to polling.
Ready to put this into practice? See Create and Send Envelope for a complete step-by-step walkthrough.
See every envelope endpoint under Envelope in the API Reference.