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
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
| Field | Type | Description |
|---|---|---|
Idempotency-Key | string | Up 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
| Field | Type | Description |
|---|---|---|
url required | string | Up to 2048 characters. |
events | "job.completed" | "job.failed" | "job.canceled"[] | Events to send; every event when left out |
description | string | Up to 200 characters. |
conversions | string[] | Only jobs with a step that runs one of these conversions (slugs from GET /v1/operations), up to 50; every job when left out |
metadata | object (map) | Only jobs whose metadata has every one of these values, up to 5 keys; every job when left out |
{ "url": "https://example.com/formatjet/events", "events": [ "job.completed", "job.failed" ], "description": "Production receiver"}Responses
201 Created
The endpoint and its secret
| Field | Type | Description |
|---|
{ "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.
| Status | Code | When |
|---|---|---|
| 400 | invalid_request | The body failed validation, or the URL is one we don’t send to. Or a conversion we don’t know. |
| 401 | unauthorized | No API key, or one that’s unknown or revoked. |
| 403 | forbidden | The key lacks the webhooks scope, or the mode has 10 endpoints already (100 made by integrations). |
| 409 | idempotency_conflict | The Idempotency-Key was used for a different request in the last 24 hours, or its first request is still running. |
| 429 | rate_limited | More requests than the plan allows in 10 seconds: wait Retry-After seconds. |