Envelopes
Cancel an envelope
Cancel an in-progress envelope to permanently halt the signing process
Cancels an envelope, immediately halting all signing activity. Once canceled, recipients can no longer access the signing ceremony.
in_progress can be canceled. An envelope in processing can’t be canceled yet: wait until its status is in_progress, then cancel it.Path parameters
The unique identifier of the envelope, in UUID format.
Body parameters
An optional explanation for why the envelope was canceled. This is for internal use only and is not shown to recipients. The reason is included in the envelope.canceled webhook event payload. Maximum 2,000 characters.
Returns
Returns a 200 OK status code along with an envelope object on success, or an error otherwise. The envelope’s status is canceled, and an envelope.canceled event is emitted.
Errors
| Status | Type | When |
|---|---|---|
404 | not-found | No envelope with this ID exists in the account and mode of your API key. |
409 | cannot-cancel | The envelope is not in_progress: it is still processing, it is being finalized after the last recipient completed, or it is already completed, failed or canceled. The detail says which. |
422 | validation-error | reason is empty or longer than 2,000 characters. |
For errors every endpoint can return, such as authentication and rate limits, see Errors.
POST /v1/envelopes/688d2c9f-5dbe-4bc4-bd0b-2e0459016be8/cancel HTTP/1.1
Host: api.signatureapi.com
X-API-Key: YOUR_API_KEY
Content-Type: application/json
{
"reason": "Offer withdrawn because the role was closed."
}npx signatureapi envelopes cancel 688d2c9f-5dbe-4bc4-bd0b-2e0459016be8 --reason 'Offer withdrawn because the role was closed.'{
"name": "cancel_envelope",
"arguments": {
"envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
"reason": "Offer withdrawn because the role was closed."
}
}POST /v1/envelopes/688d2c9f-5dbe-4bc4-bd0b-2e0459016be8/cancel HTTP/1.1
Host: api.signatureapi.com
X-API-Key: YOUR_API_KEYnpx signatureapi envelopes cancel 688d2c9f-5dbe-4bc4-bd0b-2e0459016be8{
"name": "cancel_envelope",
"arguments": {
"envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8"
}
}{
"id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
"title": "Offer Letter",
"label": "Offer Letter for Maria Garcia",
"message": "Welcome to Acme Corp! Please review and sign your offer letter.",
"status": "canceled",
"mode": "test",
"routing": "sequential",
"language": "en",
"timezone": "America/New_York",
"timestamp_format": "MM/DD/YYYY HH:mm:ss",
"attestation": "none",
"branding": {
"logo": "https://api.signatureapi.com/v1/uploads/upl_42NTdNnkg6dGLx8jR1X1wm",
"accent_color": "#9810fa",
"email": {
"from": "noreply@signatureapi.com",
"footer": "**Confidential:** this email is intended only for the named recipient.",
"logo_position": "left"
}
},
"sender": {
"name": "Acme Corp Legal",
"email": "legal@acme.example",
"organization": "Acme Corp"
},
"topics": [
"hr",
"onboarding"
],
"metadata": {
"candidate_ref": "hr-2210"
},
"documents": [
{
"id": "doc_0Pwd2LsJXeWGOJQwRctqC1",
"envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
"key": "offer_letter",
"title": "Offer Letter",
"page_count": 1,
"url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/acme-offer-letter-template.docx",
"format": "docx",
"data": {
"candidateName": "Maria Garcia",
"position": "Product Designer",
"startDate": "December 1, 2026",
"salary": "$92,000"
},
"fixed_positions": [],
"places": [
{
"key": "candidate_signs_here",
"type": "signature",
"recipient_key": "candidate",
"height": 60
}
]
}
],
"recipients": [
{
"id": "re_1mdt9PluVuu4QIhYYe8R1P",
"envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
"type": "approver",
"key": "hiring_manager",
"name": "Alex Chen",
"email": "alex.chen@example.com",
"status": "completed",
"ceremony": {
"authentication": [
{
"type": "email_link",
"subject_override": null,
"message_override": null
}
],
"redirect_url": null,
"redirect_delay": 3,
"embeddable_in": [],
"url_variant": "standard",
"url": null
},
"delivery_type": "email",
"ceremony_creation": "automatic",
"completed_at": "2026-11-02T16:42:10.000Z",
"status_updated_at": "2026-11-02T16:42:10.000Z"
},
{
"id": "re_2f0wBwlt2te0kjU5QeL3Nl",
"envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
"type": "signer",
"key": "candidate",
"name": "Maria Garcia",
"email": "maria.garcia@example.com",
"status": "sent",
"ceremony": {
"authentication": [
{
"type": "email_code"
}
],
"redirect_url": null,
"redirect_delay": 3,
"embeddable_in": [],
"url_variant": "standard",
"url": null
},
"delivery_type": "email",
"ceremony_creation": "automatic",
"signature_options": [
"typed",
"drawn"
],
"completed_at": null,
"status_updated_at": "2026-11-02T16:42:12.000Z"
}
],
"deliverable": {
"id": "del_4l3fQxvjRTltbPbzIbOlmK",
"name": null,
"envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
"type": "standard",
"status": "pending",
"url": null,
"language": "en",
"timezone": "America/New_York",
"timestamp_format": "MM/DD/YYYY HH:mm:ss",
"included_documents": [
"offer_letter"
],
"password": null,
"created_at": "2026-11-02T16:30:00.000Z",
"generated_at": null
},
"captures": {},
"snapshot_url": null,
"created_at": "2026-11-02T16:30:00.000Z",
"completed_at": null
}{
"type": "https://signatureapi.com/docs/v1/errors/not-found",
"title": "Not Found",
"status": 404,
"detail": "The envelope was not found."
}{
"type": "https://signatureapi.com/docs/v1/errors/cannot-cancel",
"title": "Could Not Cancel Envelope",
"status": 409,
"detail": "This envelope is already completed and can't be canceled. Only envelopes that are in_progress can be canceled."
}{
"type": "https://signatureapi.com/docs/v1/errors/validation-error",
"title": "Validation Error",
"status": 422,
"detail": "The request body contains validation errors.",
"errors": [
"reason must be shorter than or equal to 2000 characters"
]
}{
"id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
"title": "Offer Letter",
"label": "Offer Letter for Maria Garcia",
"message": "Welcome to Acme Corp! Please review and sign your offer letter.",
"status": "canceled",
"mode": "test",
"routing": "sequential",
"language": "en",
"timezone": "America/New_York",
"timestamp_format": "MM/DD/YYYY HH:mm:ss",
"attestation": "none",
"branding": {
"logo": "https://api.signatureapi.com/v1/uploads/upl_42NTdNnkg6dGLx8jR1X1wm",
"accent_color": "#9810fa",
"email": {
"from": "noreply@signatureapi.com",
"footer": "**Confidential:** this email is intended only for the named recipient.",
"logo_position": "left"
}
},
"sender": {
"name": "Acme Corp Legal",
"email": "legal@acme.example",
"organization": "Acme Corp"
},
"topics": [
"hr",
"onboarding"
],
"metadata": {
"candidate_ref": "hr-2210"
},
"documents": [
{
"id": "doc_0Pwd2LsJXeWGOJQwRctqC1",
"envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
"key": "offer_letter",
"title": "Offer Letter",
"page_count": 1,
"url": "https://pub-9cb75390636c4a8a83a6f76da33d7f45.r2.dev/docs-samples/acme-offer-letter-template.docx",
"format": "docx",
"data": {
"candidateName": "Maria Garcia",
"position": "Product Designer",
"startDate": "December 1, 2026",
"salary": "$92,000"
},
"fixed_positions": [],
"places": [
{
"key": "candidate_signs_here",
"type": "signature",
"recipient_key": "candidate",
"height": 60
}
]
}
],
"recipients": [
{
"id": "re_1mdt9PluVuu4QIhYYe8R1P",
"envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
"type": "approver",
"key": "hiring_manager",
"name": "Alex Chen",
"email": "alex.chen@example.com",
"status": "completed",
"ceremony": {
"authentication": [
{
"type": "email_link",
"subject_override": null,
"message_override": null
}
],
"redirect_url": null,
"redirect_delay": 3,
"embeddable_in": [],
"url_variant": "standard",
"url": null
},
"delivery_type": "email",
"ceremony_creation": "automatic",
"completed_at": "2026-11-02T16:42:10.000Z",
"status_updated_at": "2026-11-02T16:42:10.000Z"
},
{
"id": "re_2f0wBwlt2te0kjU5QeL3Nl",
"envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
"type": "signer",
"key": "candidate",
"name": "Maria Garcia",
"email": "maria.garcia@example.com",
"status": "sent",
"ceremony": {
"authentication": [
{
"type": "email_code"
}
],
"redirect_url": null,
"redirect_delay": 3,
"embeddable_in": [],
"url_variant": "standard",
"url": null
},
"delivery_type": "email",
"ceremony_creation": "automatic",
"signature_options": [
"typed",
"drawn"
],
"completed_at": null,
"status_updated_at": "2026-11-02T16:42:12.000Z"
}
],
"deliverable": {
"id": "del_4l3fQxvjRTltbPbzIbOlmK",
"name": null,
"envelope_id": "688d2c9f-5dbe-4bc4-bd0b-2e0459016be8",
"type": "standard",
"status": "pending",
"url": null,
"language": "en",
"timezone": "America/New_York",
"timestamp_format": "MM/DD/YYYY HH:mm:ss",
"included_documents": [
"offer_letter"
],
"password": null,
"created_at": "2026-11-02T16:30:00.000Z",
"generated_at": null
},
"captures": {},
"snapshot_url": null,
"created_at": "2026-11-02T16:30:00.000Z",
"completed_at": null
}Errors every call can return are in Errors and Authentication.