Every call to the Doctavian API is authenticated with a small set of HTTP headers. Most platforms use a single API key or bearer token; Doctavian uses more than one because a request can carry three independent pieces of information: that your application may call the API (the API key), who is making the call (the bearer token), and, for some operations, where Doctavian should call you back (the client header).
Get those headers right and your call succeeds. This page explains each one and when it applies; the pages below it show how to build and debug them.
| Header | Required | Purpose |
|---|---|---|
X-Api-Key | Every operation | Your Doctavian API key, from Self-service → Developers in the Doctavian Portal. It can be sent as the x-api-key query parameter instead of a header. |
Authorization | Almost every operation | Bearer <token>: an OAuth 2.0 access token from your company Microsoft or Google account. Identifies who is calling. The exceptions are the recipient-facing signing operations described below. |
X-Client-Authorization | Async document operations; optional on envelope send | A signed and encrypted token that tells Doctavian where to deliver a callback and how to authenticate to your service. It never authenticates the request it is sent with. See Client Header. |
A typical request looks like this:
GET https://api.doctavian.com/v1/documents/document/list
Authorization: Bearer <token>
x-api-key: <api-key>The API key is checked on every operation, including those a guest recipient calls without a bearer token. Keep it server-side: anyone holding it can reach the API surface it unlocks. If it is missing or invalid, the request fails with 401 before it reaches Doctavian.
Keys are issued per API and environment in the portal. If a key works for one API but not another, check that you are using the key issued for the API you are calling.
Doctavian is a B2B platform: the bearer token comes from the company Microsoft or Google account linked to your Doctavian subscription. The user it identifies is the caller for every purpose. It decides which subscription the call is counted against, which resources you can see, and it is returned as userId in every response.
How you obtain the token depends on your setup:
A missing, expired or invalid token fails with 401. See Troubleshooting.
Envelope recipients usually have no Doctavian account. The recipient-facing signing operations (opening, accepting, signing, declining, commenting and downloading an envelope's documents) accept a transaction token in place of a bearer token. It is passed as the tid query parameter, and it reaches the recipient in the link of their notification email.
tid is unique per recipient, not per envelope, and limits the caller to that one envelope.You only need this if you build your own signing experience. See Signing.
| Operations | X-Api-Key | Authorization | X-Client-Authorization |
|---|---|---|---|
| Documents and Signatures management: uploads, generation, templates, data sources, solutions, envelopes | Required | Required | — |
POST /documents/document/generate/async, POST /documents/document/manage/async, POST /documents/document/merge/async | Required | Required | Required |
POST /signatures/envelope/{envelopeId}/send | Required | Required (creator only) | Optional, for status callbacks |
Recipient signing operations, such as POST /signatures/envelope/sign | Required | Optional: send tid instead | — |
X-Client-Authorization and receive callbacks.