Envelope Open
Markdown for LLMsOpens an envelope for the recipient a tid identifies and returns everything a signing interface needs to present it: the envelope, its documents, recipients, sign groups and fields, the comments left on it, any attachments, the recipient's own id as signer, the saved signatures of the user the recipient's email address belongs to, and the settings that apply in the anonymous signing context.
The recipient must have accepted the legal terms with signatures-envelope-accept first, or the call is rejected with LEGAL_TERMS_NOT_ACCEPTED. A recipient whose isMfaEnabled is true must also have verified a multi-factor authentication code (401 MFA_SESSION_INVALID otherwise). A declined envelope is rejected with ENVELOPE_DECLINED, and one whose documents failed to process with ENVELOPE_FAILED.
Build the signatures-envelope-sign request from the fields returned here: each field's id is what sign takes. Download a document with signatures-envelope-document-download using its documents[].id.
The request body is optional and carries only externalContext.
No bearer token is required. This operation is open to guest callers — a recipient with no Doctavian account, acting 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.
JWT token to authenticate the request.
In: header
API key, sent as a request header.
In: header
Query Parameters
Transaction token identifying one recipient position on one envelope. It reaches the recipient in the link of their notification email — or, for an inpersonsigner, reaches the host named in hostEmail — and signatures-envelope-list returns it as transactionTokenId on entries for positions the caller holds.
Mandatory, and checked even when the call also carries a bearer token. A value that is not a GUID, or a GUID that matches no token, is rejected with 401 INVALID_TRANSACTION_TOKEN, and an empty value (?tid=) with 401 MISSING_TRANSACTION_TOKEN. Leaving the parameter out matches no operation and is answered with 404 NOT_FOUND from the gateway.
uuidRequest Body
application/json
Optional. The only property read is externalContext, which is echoed back unchanged in the response; send no body, or {}, when there is no context to pass.
TypeScript Definitions
Use the request body type in TypeScript.
Optional request body for an operation that takes no input of its own beyond its path and query parameters. The only property read is externalContext, which is echoed back in the response. Send {}, or no body at all, when there is no context to pass.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/signatures/envelope/open?tid=6c82c35c-ded7-4b49-83a1-e5fed49a0e69" \ -H "Content-Type: application/json" \ -d '{ "externalContext": { "id": "12345" } }'{ "result": { "statusCode": 200, "message": "OK", "data": { "envelope": { "id": "407a5449-8e45-48c5-bfee-9642c17a0d3d", "createdBy": { "id": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "name": "Jane Doe", "email": "name@example.com" }, "subject": "Master Services Agreement for signature", "message": "Please review and sign the attached agreement.", "senderName": "Contracts Team", "senderEmail": "name@example.com", "status": "In Progress", "notifyWhenOpened": true, "notifyWhenSigned": true, "isSignOrder": false, "expireInDays": 5, "uploadDate": "2026-10-15T09:51:04.000Z", "sendDate": "2026-10-15T09:51:04.000Z", "locale": "en-GB", "timeZone": "Europe/London" }, "documents": [ { "id": "f5d32692-685d-4190-9b6f-0ec1c40d2030", "name": "Master Services Agreement" } ], "recipients": [ { "id": "2bdacd57-662d-49da-be4b-e876b8b12ea1", "name": "John Smith", "email": "name@example.com", "role": "signer", "status": "In Progress", "signDate": "", "signOrder": 0, "signGroupId": "", "userId": "e9fa41a5-5cb1-4c73-9235-b4b4b10c725d", "mandatory": true, "hostEmail": "", "language": "es" } ], "signGroups": [], "fields": [ { "id": "1f970361-4db0-4b3d-96ba-a1ecf45c217c", "name": "mds_signature_customer", "recipientId": "2bdacd57-662d-49da-be4b-e876b8b12ea1", "signGroupId": "", "documentId": "f5d32692-685d-4190-9b6f-0ec1c40d2030", "type": "signature", "value": "", "page": 1, "height": 48, "width": 180, "positionX": 72, "positionY": 640, "tooltip": "Sign here to accept the agreement.", "isRequired": true, "properties": "", "signerInfo": "" }, { "id": "01c27964-6b11-4356-ad1d-90a12eeafbdb", "name": "mds_customer_reference", "recipientId": "2bdacd57-662d-49da-be4b-e876b8b12ea1", "signGroupId": "", "documentId": "f5d32692-685d-4190-9b6f-0ec1c40d2030", "type": "text", "value": "", "page": 1, "height": 24, "width": 220, "positionX": 72, "positionY": 580, "tooltip": "Your internal purchase order number.", "isRequired": false, "properties": { "fontFamily": "Arial", "fontSize": 11, "color": "#1f2937", "textAlign": "left", "placeholder": "PO number", "fieldTitle": "PO number" }, "signerInfo": "" } ], "signer": "2bdacd57-662d-49da-be4b-e876b8b12ea1", "attachments": [], "comments": {}, "savedSignatures": [ { "id": "41bffc7c-1661-466d-a7bd-c5bf198c0fbe", "data": "iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mNkYPhfDwAChwGA60e6kgAAAABJRU5ErkJggg==", "isDefault": true } ], "settings": [ { "settingKey": "DECLINE_REASON_REQUIRED", "label": "Decline Reason Required", "type": "Boolean", "application": "MDS", "category": "Signing Settings", "subCategory": "Recipient Experience", "value": "false", "isAnonymousSetting": true, "preserve": true, "group": "Signing Flow" }, { "settingKey": "ALLOWED_SIGNATURE_INPUT_METHOD", "label": "", "type": "Select", "application": "MDS", "category": "Signing Settings", "subCategory": "Recipient Experience", "value": "Drawn,Typed,Imported", "isAnonymousSetting": true, "preserve": true, "group": "Signature Input" }, { "settingKey": "MFA_CHANNEL", "label": "Channel through which MFA codes are sent to recipients", "type": "List", "application": "MDS", "category": "Signing Settings", "subCategory": "Authentication", "value": "Email", "isAnonymousSetting": true, "preserve": true, "group": "" } ] } }, "externalContext": { "id": "12345" }, "origin": "POST https://api.doctavian.com/v1/signatures/envelope/open", "dateTime": "2026-10-15T09:51:05.000Z", "operationId": "9fb624e5548f67ed95d1afc66dda1bae"}{ "error": { "statusCode": 400, "message": "Bad Request", "innerErrors": [ { "code": "LEGAL_TERMS_NOT_ACCEPTED", "message": "Legal terms have not been accepted.", "userMessage": "Legal terms have not been accepted. To open the envelope and perform signer actions you are required to accept the legal terms." } ], "externalErrors": [] }, "externalContext": { "id": "12345" }, "origin": "POST https://api.doctavian.com/v1/signatures/envelope/open", "dateTime": "2026-10-15T09:51:05.000Z", "operationId": "cb47f0a72c92657db0c1d7621ed547c2"}{ "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": "POST https://api.doctavian.com/v1/signatures/envelope/open", "dateTime": "2026-10-15T09:51:05.000Z", "operationId": "b06ad9b4638682e3aabe72da36f7a47e"}{ "error": { "statusCode": 404, "message": "Not Found", "innerErrors": [ { "code": "NOT_FOUND", "message": "OperationNotFound", "userMessage": "Unable to match incoming request to an operation." } ] }, "origin": "", "dateTime": "2026-10-16T07:34:38.000Z"}{ "error": { "statusCode": 500, "message": "Internal Server Error", "innerErrors": [ { "code": "FUNCTION_EXECUTION_ERROR", "message": "An error occurred during function execution.", "userMessage": "An error occurred during function execution.", "eventId": "3914bcfd-fb75-47fe-a94d-40bf22bf02d3" } ], "externalErrors": [] }, "origin": "POST https://api.doctavian.com/v1/signatures/envelope/open", "dateTime": "2026-10-20T10:41:27.000Z", "operationId": "7b3d0a2d409fb31652fb3917cab4b83d"}