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

# document.failed delivered to your endpoint

`POST document.failed` (webhook)

InkSeal sends this request to every active subscription whose `events` array contains `document.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` 'document.failed', required: The event type.
  - `data` WebhookDocumentFailedPayload, required: An uploaded file could not be turned into a signable PDF. Terminal for that upload.
    - `documentId` string, required: Public id of the document.
    - `filename` string, required: The original uploaded filename.
    - `reason` 'password_protected' | 'corrupt_file' | 'file_too_large' | 'too_many_pages' | 'unsupported_file_type' | 'conversion_timed_out' | 'processing_timed_out' | 'internal_error', required: Why conversion failed.
    - `message` string, required: Human-readable detail for the specific failure.
    - `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)
