Use the status and the error code in error.innerErrors[].code to find the header at fault. As a rule of thumb, a 401 means a credential is missing, expired or invalid; a 400 X_CLIENT_AUTH_ERROR means the client header is wrong; and a 403 means your credentials were accepted but you may not do this particular thing.
401 with AUTHORIZATION_ERROR or no operationId? It's the Authorization header. Check it's present and fresh.401 UNAUTHORIZED? It's the bearer token or the API key. Check both, starting with whether the key belongs to the API you're calling.X_CLIENT_AUTH_ERROR? It's X-Client-Authorization. Check it's present on async calls and sent exactly as POST /common/client/token returned it.tid belongs to this envelope and recipient.403? Your headers are fine. The user isn't entitled to the resource, or a usage limit was reached.| Symptom | Header | Fix |
|---|---|---|
401 UNAUTHORIZED | Authorization or X-Api-Key | Check both headers are present, that the key is the one issued for the API you are calling, and that the token hasn't expired. Re-acquire the token if in doubt. |
401 AUTHORIZATION_ERROR, "Authorization header is missing." | Authorization | Add Authorization: Bearer <token>, with a space after Bearer. |
401 AUTHORIZATION_ERROR, other message | Authorization | The token is expired or invalid. Re-acquire it, and refresh ahead of expiry in long-running integrations. |
400 X_CLIENT_AUTH_ERROR on an async operation | X-Client-Authorization | The header is missing. Build it and send it on /generate/async, /manage/async and /merge/async. |
400 X_CLIENT_AUTH_ERROR on envelope send | X-Client-Authorization | Send result.data.clientToken.token exactly as returned, or leave the header out if you don't need status callbacks. |
400 VALIDATION_ERROR on POST /common/client/token | (token request body) | Send the claims inside a clientToken object, with sub set to the connector_id value. See Client Header. |
| Async request accepted, callback never arrives | X-Client-Authorization | Check that connector_id names an existing connector under Self-service → Connectors, and that iss + dest is the URL your service listens on. See Receive Callbacks. |
401 MISSING_TRANSACTION_TOKEN, INVALID_TRANSACTION_TOKEN | tid query parameter | Send the recipient's own tid for this envelope, or a bearer token. |
401 MFA_SESSION_INVALID | tid query parameter | The recipient must pass multi-factor authentication first. See Signing. |
403 ENVELOPE_ACCESS_DENIED, FILE_ACCESS_DENIED | Identity | The user in the bearer token may not access this envelope or file. Check which user created it. |
403 LIMIT_BREACH | Subscription | A usage limit for the period has been reached. The message names the limit, current usage and period. |
When a credential is missing or invalid, the gateway answers before the request reaches Doctavian. That 401 uses the usual error envelope but has no operationId, so there is nothing for support to trace — fix the credential and retry.
Still stuck? Capture the exact status code and the full error body, including
operationIdand anyeventId. See Error Handling for what support needs.