Doctavian's Digital Signatures API gives you full programmatic control over the document signing lifecycle. You assemble documents and recipients into an envelope, configure signing fields and rules, send it, and track every action through to completion.
Signatures produced through Doctavian are legally binding and backed by a tamper-evident audit trail, making the platform suitable for regulated industries and compliance-sensitive workflows in any sector.
Doctavian supports three levels of electronic signature assurance, aligned with the eIDAS regulation:
The most accessible signature type. An SES links electronic data to a signing action without requiring formal identity verification through a Certificate Authority. Suitable for low-risk documents where the parties already have an established relationship or where formal identity verification is not a legal requirement.
AES uses a Certificate Authority (CA) to identify and validate signers, and produces an audit trail with evidence about the signing transaction. Use AES when you need documented assurance across authenticity, identity, and integrity — for example, commercial contracts, HR agreements, or financial authorizations.
The highest assurance level. QES requires formal identity verification (via CA, in-person validation, or video), a PKI certificate issued with qualified technology, and produces documentation across all four assurance dimensions: authenticity, identity, integrity, and authentication. Required for the most legally sensitive document types in EU-regulated contexts.
When outputting signed documents as PDF, Doctavian applies PAdES (PDF Advanced Electronic Signatures) — the technical standard for embedding electronic signatures inside PDF documents. PAdES signatures are unique, secure, and verifiable by any compatible PDF application.
See the FAQ for common questions about signature types and legal validity.
A typical integration makes these calls, all against https://api.doctavian.com/v1 with your bearer token and API key:
POST /signatures/document/upload returns a storage id, valid for 24 hours and usable once.POST /signatures/envelope/create with documents (by storage id), recipients, fields and settings. The envelope is a Draft; nothing is sent. Or create it from an Envelope Template with POST /signatures/template/{templateId}/envelope/create.POST /signatures/envelope/{envelopeId}/send, optionally with an X-Client-Authorization header so Doctavian calls your service back on every status change.GET /signatures/envelope/{envelopeId}/get; when the envelope is Completed, download the signed documents and the audit trail.Ready to build? Create and Send Envelope walks through steps 1 to 5 with complete requests and responses.
An envelope is the central object in the Signatures API. It groups one or more documents, a set of recipients, and the signing fields assigned to each recipient into a single signing transaction, along with settings such as signing order, expiry and reminders. Every signing workflow starts with creating an envelope.
A document must be uploaded to Doctavian Storage before it can be included in an envelope. Once uploaded, it is referenced in the envelope by its storage id. .pdf and .docx are accepted; a .docx is converted to PDF, because signing operates on PDF. Documents also carry the signing fields — the placeholders that define where and how each recipient must interact with the document.
Recipients are the people assigned to an envelope to take a specific action — sign, sign in person, view, or receive a copy. You configure each recipient's role, their position in the signing order, whether their participation is mandatory, identity verification such as MFA, and the language of their signing pages. Sign groups let any one of several people act for a single position.
Once an envelope is sent, recipients receive personalised email notifications with a link to the signing session. The signing concept covers the full recipient experience — MFA, accepting the electronic record and signature disclosure, completing fields, attachments, comments, declining and reassigning.
Envelope Templates let you save an envelope configuration with placeholder roles and reuse it to create new envelopes on demand — useful for recurring signing workflows where the structure is fixed but the parties change between instances.
Every action taken on a sent envelope is recorded in a tamper-evident audit trail — from sending through every signing action to completion. The trail can be retrieved as JSON or downloaded as a PDF via API for compliance and legal purposes.
Envelopes move through a predictable set of states: Draft until sent, In Progress while recipients act, then Completed, Declined, Canceled, Expired or Failed. Drafts can be updated, deleted and restored; once sent, only the expiry can change, and an envelope still being signed can be canceled. Each transition from sending onwards is logged in the audit trail and can be delivered to your service as a status callback.
See the Envelope Lifecycle for the full status list, transition rules, and audit trail events.
Metered operations, such as creating or sending an envelope and creating a template, report what they counted against your subscription in the response's consumption array. Sending is metered by the envelope, its recipients and its fields.
Some features must be included in your subscription — MFA, the viewer and inpersonsigner roles, and attachment and digitalsignature fields. A request that uses one your plan doesn't include is rejected.
Signatures API requests accept an externalContext object that lets you pass correlation data from your own system. Its shape is up to you — it is never validated or interpreted. Where you put it determines what happens to it:
| Where | Behaviour |
|---|---|
| Request root | Echoed back unchanged in that call's response, on success and on error. Not stored. |
envelope.externalContext (or template.externalContext) | Stored with the envelope or template, returned by get and in status callbacks. |
documents[].externalContext | Stored with the document, returned by create, get, document get and status callbacks. |
recipients[].externalContext | Stored with the recipient, returned by create, get and status callbacks. |
{
"documents": [
{ "referenceDocumentId": 1, "name": "NDA", "loadMethod": "Storage",
"urn": "af567f07-cafa-4d5c-830c-0f24af7555df",
"externalContext": { "contractId": "NDA-2026-0187" } }
],
"envelope": {
"subject": "Please sign: NDA",
"externalContext": { "crmDealId": "D-20931" }
},
"externalContext": { "requestId": "req-7731" },
...
}Because create responses return server ids but not your referenceDocumentId / referenceSignerId, a stored externalContext is the easiest way to tie each returned document and recipient back to your own records. It has no effect on processing. Note that an envelope update replaces the envelope in full, so leaving envelope.externalContext out of an update clears it.