Skip to main content
WEBHOOK
See Webhooks for delivery rules and how to write the handler.

Authorizations

Authorization
string
header
required

Your API key from the dashboard, sent as Authorization: Bearer <api key>.

Headers

Importly-Signature
string
required

t=<unix seconds>,v1=<signature>. t is when the request was sent; v1 is the hex HMAC-SHA256 of <t>.<raw request body>, keyed with your webhook signing secret (whsec_…, on the dashboard's API key page). For 24 hours after you rotate the secret there is a second v1, signed with the old one. Accept the request if any v1 matches and t is within 300 seconds of now. See Verify signatures.

Importly-Webhook-Id
string
required

<jobId>.completed or <jobId>.failed, the same on every delivery of a job's outcome. Skip IDs you have already handled.

Importly-Webhook-Attempt
integer
required

1 for the first delivery of a job's outcome, 2 for the first retry, and so on up to 7. A delivery that times out (10 seconds), can't connect, or gets a 408, 429 or 5xx is retried after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours. Any other response, including other 4xx, ends it.

Required range: 1 <= x <= 7

Body

application/json
success
boolean
required

Always true on completed-job webhooks; see jobFailed for failures.

data
object
required

Response

200

Return any 2xx quickly; do heavy work asynchronously.