Signatures

Document Get

Markdown for LLMs
GET
/signatures/document/{documentId}/get

Retrieves the metadata of a single document that belongs to an envelope — its id, file name and stored externalContext. It returns JSON only; to download the file itself, use signatures-document-download.

The same call also resolves original documents — the source file of each document as it was supplied, before conversion to PDF, which signatures-envelope-get lists under originalDocuments. Every document has one, including a document supplied as a PDF. An original always returns externalContext as null, because the value is stored against the converted document rather than the source.

Either the envelope owner or one of its recipients may call this. An owner authenticates normally; a recipient supplies the tid issued for their envelope instead.

No bearer token is required. This operation is open to guest callers — a recipient with no Doctavian account, signing from the link in their email — who are identified by the tid from that link instead of a token. The API key is still required, as on every operation: send it in the X-Api-Key header or the x-api-key query parameter. When the call carries no bearer token, the caller is anonymous and the response carries no userId.

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

documentId*string

Id of the document to describe, as returned in documents[].id by signatures-envelope-create or signatures-envelope-get.

Formatuuid

Query Parameters

tid?string

Transaction token identifying one recipient-and-envelope pair, issued to that recipient. Supply it when calling as a recipient rather than as the envelope owner; the owner authenticates with the bearer token instead and does not need it.

Ignored when a bearer token is sent. Without one, a tid that is not a GUID, or a GUID that is not a transaction token for this document's envelope, is rejected with 401 INVALID_TRANSACTION_TOKEN, and a missing tid with 401 MISSING_TRANSACTION_TOKEN.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://example.com/signatures/document/b1348f98-dd61-4939-9c84-d6074cd80e6d/get?tid=7c2f5e91-3a84-4d06-b1c7-e5820f4a6d13"
{  "result": {    "statusCode": 200,    "message": "OK",    "data": {      "document": {        "id": "b1348f98-dd61-4939-9c84-d6074cd80e6d",        "name": "Sales-Agreement-DE",        "externalContext": ""      }    }  },  "origin": "GET https://api.doctavian.com/v1/signatures/document/{documentId}/get",  "dateTime": "2026-09-24T10:22:41.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "d41a9c5e7b3248f0a6c18e2d5f7b90c3"}
{  "error": {    "statusCode": 400,    "message": "Bad Request",    "innerErrors": [      {        "code": "DOCUMENT_ID_INVALID",        "message": "Document with ID 101d45c1-3a2c-4b13-931c-a7981bba7d48 does not exist",        "userMessage": "Document with ID 101d45c1-3a2c-4b13-931c-a7981bba7d48 does not exist"      }    ],    "externalErrors": []  },  "origin": "GET https://api.doctavian.com/v1/signatures/document/{documentId}/get",  "dateTime": "2026-10-09T10:38:21.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "141f0a5434130eb14059e3828cb397d3"}
{  "error": {    "statusCode": 401,    "message": "Unauthorized",    "innerErrors": [      {        "code": "INVALID_TRANSACTION_TOKEN",        "message": "Transaction token identifier is invalid or does not exist in the database.",        "userMessage": "Transaction token identifier is invalid. Please make sure that you are accessing this page via the link from your email."      }    ],    "externalErrors": []  },  "origin": "GET https://api.doctavian.com/v1/signatures/document/{documentId}/get",  "dateTime": "2026-10-09T10:38:21.000Z",  "userId": "",  "operationId": "a2c4e6f8b1d34f5a9c7e0b2d4f6a8c1e"}
Empty
{  "error": {    "statusCode": 500,    "message": "The document metadata could not be retrieved.",    "innerErrors": [      {        "code": "FUNCTION_EXECUTION_ERROR",        "message": "The document metadata could not be retrieved.",        "userMessage": "Something went wrong. Please try again or contact support."      }    ]  },  "origin": "GET https://api.doctavian.com/v1/signatures/document/{documentId}/get",  "dateTime": "2026-09-24T10:22:41.000Z",  "userId": "1a2b3c4d-5e6f-4a1b-8c2d-3e4f5a6b7c8d",  "operationId": "d41a9c5e7b3248f0a6c18e2d5f7b90c3"}