---
title: "envelope.send_failed delivered to your endpoint"
method: POST
path: "envelope.send_failed"
tags: ["Webhooks"]
---

# envelope.send_failed delivered to your endpoint

`POST envelope.send_failed` (webhook)

InkSeal sends this request to every active subscription whose `events` array contains `envelope.send_failed`, or whose `events` is `null`. Verify `X-InkSeal-Signature` against the raw body before doing anything else, and deduplicate on `id`.

## Headers

- `X-InkSeal-Event-Id` string, required
- `X-InkSeal-Signature` string, required
- `X-InkSeal-Timestamp` string, required

## Payload

- object
  - `id` string, required: Stable event id, derived from the transition rather than the clock. Every retry of this event carries the same value.
  - `type` 'envelope.send_failed', required: The event type.
  - `data` WebhookEnvelopeSendFailedPayload, required: A send accepted with 202 failed inside the queued job. The envelope was rolled back to draft.
    - `envelopeId` string, required: Public id of the envelope.
    - `documentId` string, required: Public id of the document.
    - `reason` 'insufficient_credits' | 'document_render_failed' | 'signer_notification_failed' | 'send_interrupted' | 'unknown_error', required: Why the send was rolled back.
    - `message` string, required: Human-readable detail for the specific failure.
    - `recoveredStatus` 'draft', required: The state the envelope was returned to, so a retry is unambiguous.
    - `creditRefunded` boolean, required: Whether the credit charged for the send was returned.
    - `failedAt` string, date-time, required: When the failure committed.
  - `timestamp` string, date-time, required: When the transition committed. Not the same as X-InkSeal-Timestamp, which is when this attempt was made.

## Acknowledgement `200`

Acknowledged. Return any 2xx, with or without a body, as soon as the event is stored; do your work afterwards. Anything that is not a 2xx, including a redirect (redirects are never followed) and a response slower than the 30 second timeout, counts as a failure and is retried with exponential backoff from 60 seconds, doubling per attempt and capped at 1 hour, for at most 6 attempts. After the sixth the event is terminal and only a manual retry through POST /webhooks/{webhookId}/events/{eventId}/retry will send it again.

---

[API](https://skmtc.dev/inkseal/apis/inkseal-api.md) · [All operations](https://skmtc.dev/inkseal/apis/inkseal-api/llms.txt) · [OpenAPI document](https://skmtc.dev/inkseal/apis/inkseal-api/revisions/c440c981d578?raw)
