Signatures

Envelope Audit Log Download

GET
/signatures/envelope/{envelopeId}/audit/download

Retrieves the audit trail for a specific envelope as a downloadable file.

  • The file provides a formal record of the envelope's lifecycle for compliance, auditing, or record-keeping purposes.
  • The envelope is identified using the envelopeId path parameter.
  • The request returns the audit trail as a binary stream (application/octet-stream). Response is NOT wrapped in the standard result envelope - raw PDF bytes are returned directly, but with Content-Type application/octet-stream (not application/pdf) as actually set by the server.

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

The ID of the envelope where the attachment will be added.

Response Body

application/octet-stream

application/json

application/json

curl -X GET "https://example.com/signatures/envelope/string/audit/download"
Empty
{  "error": {    "message": "Envelope not found.",    "statusCode": 400,    "innerErrors": [      {        "code": "ENVELOPE_ID_INVALID",        "message": "Envelope not found.",        "userMessage": "Envelope not found."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/audit/download",  "dateTime": "2026-07-20T12:00:00.000Z",  "userId": "6b8ee8b0-c999-466d-b4b3-14a76749668b",  "operationId": "8195fb94c7a43a74990172db801590df"}
{  "error": {    "message": "Envelope not found.",    "statusCode": 500,    "innerErrors": [      {        "code": "ENVELOPE_ID_INVALID",        "message": "Envelope not found.",        "userMessage": "Envelope not found."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/audit/download",  "dateTime": "2026-07-20T12:00:00.000Z",  "userId": "5a16948f-321c-431b-8b77-70155ff3d631",  "operationId": "56e696ea31349620995396a211e9b373"}