Signatures

Envelope Audit Log Download

Markdown for LLMs
GET
/signatures/envelope/{envelopeId}/audit/download

Downloads an envelope's audit trail as a PDF — a formal record of its lifecycle for compliance and record keeping, holding the same entries signatures-envelope-audit-get returns as JSON. Send the envelope's id as envelopeId.

The response is the PDF itself, not the standard JSON envelope, with Content-Type application/octet-stream. It carries no Content-Disposition header, so name the file yourself.

The PDF exists once the envelope has been sent, and is rebuilt in the background after each recorded action. While it is being rebuilt — for a few seconds after the envelope completes, for example — the call fails with 500 FILE_NOT_EXISTS_IN_STORAGE; retry shortly. An envelope that has never been sent has no PDF: a draft fails with 500 PDF_PROCESSING_ERROR, and a deleted draft with FILE_NOT_EXISTS_IN_STORAGE.

Send a bearer token for a user with access to the envelope, such as its creator. Recipients cannot read it with their tid: a call without a bearer token is rejected at the gateway with 401 AUTHORIZATION_ERROR.

Authorization

AuthorizationBearer <token>

JWT token to authenticate the request.

In: header

X-Api-Key<token>

API key, sent as a request header.

In: header

Path Parameters

envelopeId*string

Id of the envelope whose audit trail to download, as returned by signatures-envelope-create in result.data.envelope.id. Must be a GUID: a value that is not one matches no route and returns a bodiless 404. A well-formed id that matches no envelope returns 400 ENVELOPE_ID_INVALID.

Formatuuid

Response Body

application/octet-stream

application/json

application/json

application/json

curl -X GET "https://example.com/signatures/envelope/74d31ca9-7b08-43f2-bf5d-3d36eb554c2c/audit/download"
Empty
{  "error": {    "statusCode": 400,    "message": "Bad Request",    "innerErrors": [      {        "code": "ENVELOPE_ID_INVALID",        "message": "Envelope with ID 74d31ca9-7b08-43f2-bf5d-3d36eb554c2c does not exist",        "userMessage": "Envelope with ID 74d31ca9-7b08-43f2-bf5d-3d36eb554c2c does not exist"      }    ],    "externalErrors": []  },  "origin": "GET https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/audit/download",  "dateTime": "2026-10-16T07:41:12.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "8195fb94c7a43a74990172db801590df"}
{  "error": {    "statusCode": 403,    "message": "Forbidden",    "innerErrors": [      {        "code": "ENVELOPE_ACCESS_DENIED",        "message": "Envelope access denied for envelope id 3f2b8c1e-7a4d-4e9b-9c21-5d6f0a8b1e47",        "userMessage": "You do not have permission to access envelope with id 3f2b8c1e-7a4d-4e9b-9c21-5d6f0a8b1e47"      }    ]  },  "origin": "GET https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/audit/download",  "dateTime": "2026-10-01T09:41:06.000Z",  "userId": "6b8ee8b0-c999-466d-b4b3-14a76749668b",  "operationId": "c4e81a0f6b2d49e7a35f90d1b8e62c47"}
Empty
{  "error": {    "statusCode": 500,    "message": "Internal Server Error",    "innerErrors": [      {        "code": "FILE_NOT_EXISTS_IN_STORAGE",        "message": "File with identifier 74d31ca9-7b08-43f2-bf5d-3d36eb554c2c/audit-74d31ca9-7b08-43f2-bf5d-3d36eb554c2c not found in storage.",        "userMessage": "File with identifier 74d31ca9-7b08-43f2-bf5d-3d36eb554c2c/audit-74d31ca9-7b08-43f2-bf5d-3d36eb554c2c not found in storage."      }    ],    "externalErrors": []  },  "origin": "GET https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/audit/download",  "dateTime": "2026-10-16T10:06:03.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "56e696ea31349620995396a211e9b373"}