Envelope Restore
Markdown for LLMsRestores a draft envelope deleted with signatures-envelope-delete, returning it to Draft with its documents, recipients and fields as they were, so it can be updated and sent again. Send its id as envelopeId. The request body is optional and carries only externalContext, which is echoed back in the response.
Only a deleted envelope can be restored. Any other — a draft that is not deleted, or an envelope that has been sent, completed or canceled — is rejected with 400 ENVELOPE_RESTORE_NOT_DELETED and left unchanged. A canceled envelope cannot be brought back; create a new one instead.
JWT token to authenticate the request.
In: header
API key, sent as a request header.
In: header
Path Parameters
Id of the deleted draft envelope to restore, 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.
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
curl -X POST "https://example.com/signatures/envelope/6ae742b3-da9e-43bb-96a4-038b46f6b474/restore" \ -H "Content-Type: application/json" \ -d '{ "externalContext": { "id": "12345" } }'{ "result": { "statusCode": 200, "message": "OK", "data": { "envelope": { "id": "6ae742b3-da9e-43bb-96a4-038b46f6b474", "status": "Draft" } } }, "origin": "POST https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/restore", "dateTime": "2026-10-06T09:41:06.000Z", "externalContext": { "id": "12345" }, "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "717329421ddcbd256139b630d48ae631"}{ "error": { "statusCode": 400, "message": "Bad Request", "innerErrors": [ { "code": "ENVELOPE_RESTORE_NOT_DELETED", "message": "This envelope has not been deleted yet and can not be restored.", "userMessage": "This envelope has not been deleted yet and can not be restored." } ], "externalErrors": [] }, "externalContext": { "id": "12345" }, "origin": "POST https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/restore", "dateTime": "2026-10-16T07:12:43.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "f3c86a1d09e24b7f85d2a6c0e9b1374d"}{ "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": "POST https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/restore", "dateTime": "2026-10-01T09:41:06.000Z", "userId": "fbce11c2-b03a-4881-8d9b-b31e24e37755", "operationId": "c4e81a0f6b2d49e7a35f90d1b8e62c47"}{ "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": "3e7a1c5d-9b02-4d6f-8a3e-c5b1f7d2e094" } ], "externalErrors": [] }, "externalContext": { "id": "12345" }, "origin": "POST https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/restore", "dateTime": "2026-10-16T07:12:45.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "0b7d3e9a5c624f18a2e6d4b1f8c07395"}