Every envelope, recipient and sign group in the Doctavian Signatures API moves through a defined set of statuses. This page explains each status, what moves an envelope from one to the next, and what is written to the audit trail along the way.
Status values are returned as display strings (note the space in In Progress) by envelope get and list, and in the status callbacks Doctavian sends to your service.
| Status | Description |
|---|---|
Draft | Created but not yet sent. The only status in which the envelope's documents, recipients, sign groups and fields can be changed. Nothing has been sent to recipients. |
In Progress | Sent, and recipients are still acting: at least one mandatory recipient or sign group has not finished. |
Completed | Every mandatory recipient and sign group has finished, and the signed documents have been processed. Non-mandatory recipients are ignored for completion. |
Declined | A mandatory recipient declined. The other recipients are canceled and the envelope can no longer be opened. |
Canceled | The sender canceled the envelope. |
Expired | The envelope reached its expiry date (expireInDays after sending) without completing. |
Failed | The envelope's documents could not be processed after the last signature, so no further action can be taken on it. |
Deleted | A draft that was deleted. It is in the trash and can still be read, but not changed or sent until it is restored. |
Completed, Declined, Canceled, Expired and Failed are terminal: nothing moves an envelope out of them.
Delivery problems are not an envelope status. When a notification email cannot be delivered, the audit trail records an
Envelope delivery failedentry for that recipient. See Audit trail actions.
| Transition | Triggered by |
|---|---|
— → Draft | Envelope create, or envelope create from a template. |
Draft → Draft | Envelope update, which replaces the draft's contents in full. |
Draft → In Progress | Envelope send. Only the envelope's creator can send, and an envelope can be sent once. |
Draft → Deleted | Envelope delete, which moves the draft to the trash. |
Deleted → Draft | Envelope restore, which returns the draft with its documents, recipients and fields as they were. |
In Progress → Completed | The last mandatory recipient or sign group signs, and the documents are then processed in the background. |
In Progress → Failed | Processing the documents after the last signature fails. |
In Progress → Declined | A mandatory recipient declines. A non-mandatory recipient declining leaves the envelope In Progress. |
In Progress → Canceled | The sender cancels the envelope. |
In Progress → Expired | The expireInDays period elapses without completion. 0 means the envelope never expires. The period can be changed after sending with envelope edit. |
Right after the last signature, while the signed documents are processed, envelope get and document download return
409ENVELOPE_DOCUMENTS_PROCESSING. Retry after a short wait.
Update, send and delete work only on a Draft; on any other status they fail with 400 DRAFT_ID_INVALID. Restore works only on a Deleted envelope. Cancel, and a recipient opening the envelope, work only while it is In Progress. Expiry can be edited only after the envelope has been sent. Envelope get works in any status, including Deleted. The audit trail is empty until the envelope is sent.
Each recipient carries its own status, returned in recipients[].status by envelope get and in status callbacks.
| Status | Description |
|---|---|
In Progress | The recipient has not acted yet. A recipient starts here as soon as the envelope is created, while the envelope itself is still Draft. |
Completed | The recipient signed, or reassigned their position to someone else, in which case they stay on the envelope as a cc. |
Declined | The recipient declined. |
Canceled | The envelope ended before the recipient acted; for example, a mandatory recipient declined, which cancels the other recipients. |
Sign groups carry a status of their own in signGroups[].status. A group starts at In Progress when the envelope is created and reflects the group as a whole: once one member signs, the group's requirement is met.
If the envelope was sent with an X-Client-Authorization header, Doctavian also posts a status callback when the envelope is sent, when a recipient's status changes, and when the envelope reaches a final status. See Status callbacks.
Every meaningful action on a sent envelope is logged as an entry in its audit trail. The action value of each entry is one of the following:
| Action | Logged when |
|---|---|
Envelope created | The envelope was created. Written at send time, together with Envelope sent. |
Envelope sent | The envelope was sent to its recipients. A reassignment adds a second entry for the new recipient. |
Envelope received confirmation | Delivery of the envelope to a recipient was confirmed. |
Envelope delivery failed | Delivery to a recipient failed. |
Email opened | A recipient opened the notification email. |
Envelope viewed | A recipient opened the envelope for the first time. |
Accepted legal terms | A recipient accepted the electronic record and signature disclosure. |
2FA authenticated | A recipient passed multi-factor authentication. |
Comment created | A recipient commented on a document. |
Envelope signed | A recipient signed. |
Envelope sign group completed | A sign group's signing requirement was met. |
Envelope declined | A recipient declined. |
Envelope reassigned | A recipient passed their position to someone else. |
Token expired | A recipient's signing link expired. |
Envelope expiration changed | The expiry was changed after sending. |
Envelope expired | The envelope passed its expiry date without completing. |
Envelope canceled | The sender canceled the envelope. |
The trail starts when the envelope is sent: a draft has an empty trail, and deleting or restoring a draft adds no entry.
actionandadditionalInfoare display text, so don't parse them as stable values. See Audit Trail for how to retrieve the trail and what evidenceadditionalInfocarries.