Signatures

Template Delete

Markdown for LLMs
DELETE
/signatures/template/{templateId}/delete

Deletes an envelope template. Send the template's id as templateId, as returned by signatures-template-create or signatures-template-list.

After the delete, signatures-template-get and a repeated delete both answer the id with 400 TEMPLATE_ID_INVALID. Envelopes already created from the template with signatures-envelope-create-from-template are not affected: they keep their documents, recipients and fields.

Only a template the caller is permitted to access can be deleted; any other is rejected with 403 ENVELOPE_ACCESS_DENIED and left in place. templateId must be a template's id: an envelope's id fails with 500 DATABASE_ERROR and nothing is deleted. To delete an envelope, use signatures-envelope-delete.

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

templateId*string

Id of the envelope template to delete, as returned by signatures-template-create in result.data.template.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 template, including one already deleted, returns 400 TEMPLATE_ID_INVALID.

Formatuuid

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/signatures/template/3f2b8c1e-7a4d-4e9b-9c21-5d6f0a8b1e47/delete"
{  "result": {    "statusCode": 200,    "message": "Deleted"  },  "origin": "DELETE https://api.doctavian.com/v1/signatures/template/{templateId}/delete",  "dateTime": "2026-10-06T09:41:06.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "d3681d5481fffb5c9a3c3fcc706d16fd"}
{  "error": {    "statusCode": 400,    "message": "Bad Request",    "innerErrors": [      {        "code": "TEMPLATE_ID_INVALID",        "message": "Template with ID 3f2b8c1e-7a4d-4e9b-9c21-5d6f0a8b1e47 does not exist",        "userMessage": "Template with ID 3f2b8c1e-7a4d-4e9b-9c21-5d6f0a8b1e47 does not exist"      }    ],    "externalErrors": []  },  "origin": "DELETE https://api.doctavian.com/v1/signatures/template/{templateId}/delete",  "dateTime": "2026-10-13T08:32:08.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "3e9179e8209305fbca7cc03c35f21751"}
{  "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/template/{templateId}/delete",  "dateTime": "2026-10-01T09:41:06.000Z",  "userId": "1af48843-4cd5-4add-96b4-9bda6ec40648",  "operationId": "c4e81a0f6b2d49e7a35f90d1b8e62c47"}
Empty
{  "error": {    "statusCode": 500,    "message": "Internal Server Error",    "innerErrors": [      {        "code": "DATABASE_ERROR",        "message": "DATABASE_ERROR",        "userMessage": "DATABASE_ERROR",        "eventId": "2c6bddf4-d5b9-44de-93c2-aad94e0040e7"      }    ],    "externalErrors": []  },  "origin": "DELETE https://api.doctavian.com/v1/signatures/template/{templateId}/delete",  "dateTime": "2026-10-13T08:32:10.000Z",  "userId": "1fa93f1d-07e8-4e08-84e6-c0098f3b6ed5",  "operationId": "b52e0c9d7a1f4e3684c0d2a9f7e15b38"}