Skip to content

Terminal document notification

POST

Status: planned. Contract v1.0.0; this endpoint is not deployed. Sent by Sonic Docs to your endpoint; authenticate it with the webhook signature.

Service calls the client’s configured endpoint using Standard Webhooks signatures.

webhook-id
required
string
>= 1 characters
webhook-timestamp
required
string
/^[0-9]+$/
webhook-signature
required
string
>= 1 characters
Media typeapplication/json
object
type
required
Allowed values: document.succeeded document.failed
document_id
required
string
/^[a-z0-9-]+~[a-zA-Z0-9_-]+$/
delivery_id
required
string
>= 1 characters
sequence
required
integer
>= 1
occurred_at
required
string format: date-time
status_url
required
string format: uri
/^https:///
result_url
required
One of:
string format: uri
/^https:///
failure
required
One of:
object
stage
required
Allowed values: chunking queue ocr combine export
code
required
string
>= 1 characters
message
required
string
range
required
One of:
object
first_page
required
integer
>= 1
last_page
required
integer
>= 1

Receiver acknowledges this delivery. An empty body is sufficient.

Delivery attempt failed.