Skip to content

Add an endpoint

POST /v1/webhooks

Add a webhook endpoint.

HTTPS only, on a public host name. Events of jobs made with keys of this key's mode are sent there, signed with the secret in the response (FormatJet-Signature); conversions and metadata limit it to some jobs. At most 10 endpoints per mode, and 100 more made by our Zapier, Make and n8n integrations (FormatJet-Client).

API key with the webhooks scope.

Request

Terminal window
curl -X POST "https://api.formatjet.com/v1/webhooks" \
-H "Authorization: Bearer $FORMATJET_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/formatjet/events",
"events": [
"job.completed",
"job.failed"
],
"description": "Production receiver"
}'

Headers

FieldTypeDescription
Idempotency-KeystringUp to 255 printable ASCII characters, such as a UUID. A repeat of the same request within 24 hours gets the first one’s successful answer again (Idempotent-Replayed: true); the same key with a different request is a 409.

Body

application/json

FieldTypeDescription
url requiredstringUp to 2048 characters.
events"job.completed" | "job.failed" | "job.canceled"[]Events to send; every event when left out
descriptionstringUp to 200 characters.
conversionsstring[]Only jobs with a step that runs one of these conversions (slugs from GET /v1/operations), up to 50; every job when left out
metadataobject (map)Only jobs whose metadata has every one of these values, up to 5 keys; every job when left out
Example
{
"url": "https://example.com/formatjet/events",
"events": [
"job.completed",
"job.failed"
],
"description": "Production receiver"
}

Responses

201 Created

The endpoint and its secret

FieldTypeDescription
Example
{
"id": "wh_01JBXA6K8M0P2R4S6T8V0W2X4Y",
"url": "https://example.com/formatjet/events",
"description": "Production receiver",
"events": [
"job.completed",
"job.failed",
"job.canceled"
],
"mode": "live",
"enabled": true,
"disabled_reason": null,
"failing_since": null,
"previous_secret_expires_at": null,
"client": null,
"conversions": null,
"metadata": null,
"created_at": "2026-10-24T09:12:40.000Z",
"updated_at": "2026-10-24T09:12:40.000Z",
"secret": "whsec_3fK8mQ2xV7nR1tY5wZ9bC4dG6hJ0kL2p"
}

Errors

Problem documents (application/problem+json); see Errors.

StatusCodeWhen
400invalid_requestThe body failed validation, or the URL is one we don’t send to. Or a conversion we don’t know.
401unauthorizedNo API key, or one that’s unknown or revoked.
403forbiddenThe key lacks the webhooks scope, or the mode has 10 endpoints already (100 made by integrations).
409idempotency_conflictThe Idempotency-Key was used for a different request in the last 24 hours, or its first request is still running.
429rate_limitedMore requests than the plan allows in 10 seconds: wait Retry-After seconds.