Change an endpoint
PATCH /v1/webhooks/{id}
Change a webhook endpoint, or turn it off and on.
Turning on an endpoint that was turned off after 24 hours of failures clears its failure. Events that ended while it was off aren’t sent; replay them from its deliveries.
API key with the webhooks scope.
Request
curl -X PATCH "https://api.formatjet.com/v1/webhooks/wh_01JBXA6K8M0P2R4S6T8V0W2X4Y" \ -H "Authorization: Bearer $FORMATJET_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "enabled": false }'Path parameters
| Field | Type | Description |
|---|---|---|
id required | string |
Body
application/json
| Field | Type | Description |
|---|---|---|
url | string | Up to 2048 characters. |
events | "job.completed" | "job.failed" | "job.canceled"[] | |
description | string | null | Up to 200 characters. |
enabled | boolean | |
conversions | string[] | null | Only jobs that run one of these conversions; null sends every job again |
metadata | object (map) | null | Only jobs whose metadata has every one of these values; null sends every job again |
{ "enabled": false}Responses
200 OK
The endpoint
| Field | Type | Description |
|---|---|---|
id | string | |
url | string | |
description | string | null | |
events | "job.completed" | "job.failed" | "job.canceled"[] | |
mode | "live" | "test" | |
enabled | boolean | |
disabled_reason | "failing" | "user" | null | failing: turned off after 24 hours of failed deliveries |
failing_since | string | null | |
previous_secret_expires_at | string | null | After a rotation, the old secret signs beside the new one until then |
client | "zapier" | "make" | "n8n" | null | The integration whose trigger made it: FormatJet-Client named it, and the URL is that platform's own webhook address. Counted against their 100 endpoints per mode instead of the 10. Null for any other endpoint |
conversions | string[] | null | Only jobs that run one of these conversions are sent; null for every job |
metadata | object (map) | null | Only jobs whose metadata has every one of these values are sent; null for every job |
created_at | string | |
updated_at | string |
{ "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"}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 plan has no API. |
| 404 | not_found | No webhook endpoint of this key’s mode has this ID. |
| 429 | rate_limited | More requests than the plan allows in 10 seconds: wait Retry-After seconds. |