Envelope Delete
Markdown for LLMsDeletes a draft envelope — one that has never been sent. Send its id as envelopeId, as returned by signatures-envelope-create in result.data.envelope.id.
Only an envelope in Draft status can be deleted. Any other — sent, completed, canceled, or a draft already deleted — is rejected with 400 DRAFT_ID_INVALID and left unchanged. To stop an envelope that has been sent, use signatures-envelope-cancel.
A delete can be undone: signatures-envelope-restore returns the envelope to Draft with its documents, recipients and fields as they were. Until then the envelope cannot be changed or sent: signatures-envelope-send, signatures-envelope-update and a repeated delete answer 400 DRAFT_ID_INVALID. It can still be read: it appears in the trash view of signatures-envelope-list, and signatures-envelope-get returns it with status Deleted.
JWT token to authenticate the request.
In: header
API key, sent as a request header.
In: header
Path Parameters
Id of the draft envelope to delete, 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 draft envelope — an unknown id, or an envelope that is not in Draft status — returns 400 DRAFT_ID_INVALID.
uuidResponse Body
application/json
application/json
application/json
application/json
curl -X DELETE "https://example.com/signatures/envelope/4c7e1b92-0a5d-4f38-b6e9-2d81f0c3a7e5/delete"{ "result": { "statusCode": 200, "message": "Deleted" }, "origin": "DELETE https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/delete", "dateTime": "2026-10-06T09:41:06.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "e8156750784465c07fdc2c35e06dc097"}{ "error": { "statusCode": 400, "message": "Bad Request", "innerErrors": [ { "code": "DRAFT_ID_INVALID", "message": "Envelope draft with ID 4c7e1b92-0a5d-4f38-b6e9-2d81f0c3a7e5 does not exist", "userMessage": "Envelope draft with ID 4c7e1b92-0a5d-4f38-b6e9-2d81f0c3a7e5 does not exist" } ], "externalErrors": [] }, "origin": "DELETE https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/delete", "dateTime": "2026-10-16T07:12:53.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "2d9b4f17e60a4c85b3a1f9e0c7d26b48"}{ "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": "DELETE https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/delete", "dateTime": "2026-10-01T09:41:06.000Z", "userId": "01162c01-3a0c-4e3e-9cff-e5e9987c4e86", "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": "9c3e5a1b-7d20-4f6e-b8a4-0e2d6c9f1b73" } ], "externalErrors": [] }, "origin": "DELETE https://api.doctavian.com/v1/signatures/envelope/{envelopeId}/delete", "dateTime": "2026-10-16T07:12:55.000Z", "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5", "operationId": "8e4a0c3f71b94d2ea6f5c18b9d07e3a2"}