Signatures

Envelope Audit Log Get

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

Returns an envelope's audit trail as JSON: one entry per recorded action — who did it, when and from which IP address — oldest first. Send the envelope's id as envelopeId.

The trail starts when the envelope is sent, so a draft returns an empty auditTrails array. Entries name a Doctavian user for the sender's actions, a recipient for a recipient's and a signGroup when a group completes; action and additionalInfo are display text. signatures-envelope-audit-download returns the same trail as a PDF.

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 read, 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/json

application/json

application/json

application/json

curl -X GET "https://example.com/signatures/envelope/74d31ca9-7b08-43f2-bf5d-3d36eb554c2c/audit/get"
{  "result": {    "statusCode": 200,    "message": "OK",    "data": {      "auditTrails": [        {          "id": "6aef9ae7-753e-4e84-beea-2f70801d2ce7",          "user": {            "id": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",            "name": "John Doe",            "email": "john.doe@example.com"          },          "recipient": "",          "signGroup": "",          "action": "Envelope created",          "timestamp": "2026-10-16T10:05:55.000Z",          "ipAddress": "203.0.113.42",          "additionalInfo": ""        },        {          "id": "c28611b3-9113-476b-bfb5-0e240d5d7041",          "user": {            "id": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",            "name": "John Doe",            "email": "john.doe@example.com"          },          "recipient": "",          "signGroup": "",          "action": "Envelope sent",          "timestamp": "2026-10-16T10:05:55.000Z",          "ipAddress": "",          "additionalInfo": "jane.doe@example.com, alice@example.com"        },        {          "id": "136c03c9-7730-497e-b07b-1f92be0bc7ee",          "user": "",          "recipient": {            "id": "444db295-6f53-4b70-a1f5-b7c47bc818f2",            "name": "Jane Doe",            "email": "jane.doe@example.com"          },          "signGroup": "",          "action": "Accepted legal terms",          "timestamp": "2026-10-16T10:05:57.000Z",          "ipAddress": "198.51.100.7",          "additionalInfo": ""        },        {          "id": "c8ece458-f474-48b5-b2b4-915954251390",          "user": "",          "recipient": {            "id": "444db295-6f53-4b70-a1f5-b7c47bc818f2",            "name": "Jane Doe",            "email": "jane.doe@example.com"          },          "signGroup": "",          "action": "Envelope signed",          "timestamp": "2026-10-16T10:05:58.000Z",          "ipAddress": "198.51.100.7",          "additionalInfo": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg=="        },        {          "id": "8a27e5d9-a03c-4a81-93a8-6d21f106fc53",          "user": "",          "recipient": "",          "signGroup": {            "id": "5afc68ad-193e-444d-af82-b2b8eb42651b",            "name": "Legal review"          },          "action": "Envelope sign group completed",          "timestamp": "2026-10-16T10:05:58.000Z",          "ipAddress": "",          "additionalInfo": "Jane Doe(jane.doe@example.com);Alice Nguyen(alice@example.com)"        }      ]    }  },  "origin": "GET https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/audit/get",  "dateTime": "2026-10-16T10:06:03.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "3cb86a49be496b72ed511590fb897b90"}
{  "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/get",  "dateTime": "2026-10-16T07:41:12.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "d1f88469f507fc2d2fe1e6f50e901bfd"}
{  "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/get",  "dateTime": "2026-10-01T09:41:06.000Z",  "userId": "a1cf8df9-edd8-4157-b7db-dda5c6123064",  "operationId": "c4e81a0f6b2d49e7a35f90d1b8e62c47"}
Empty
{  "error": {    "statusCode": 500,    "message": "Internal Server Error",    "innerErrors": [      {        "code": "FUNCTION_EXECUTION_ERROR",        "message": "An error ocurred during function execution",        "userMessage": "An error ocurred during function execution",        "eventId": "2f8c6a1e-0b4d-4e93-a7c5-9d3e1f6b0a28"      }    ],    "externalErrors": []  },  "origin": "GET https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/audit/get",  "dateTime": "2026-10-16T07:41:14.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "c04c2b5c2ccd1f84923cbe1c6c80b839"}