Skip to content

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

Terminal window
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

FieldTypeDescription
id requiredstring

Body

application/json

FieldTypeDescription
urlstringUp to 2048 characters.
events"job.completed" | "job.failed" | "job.canceled"[]
descriptionstring | nullUp to 200 characters.
enabledboolean
conversionsstring[] | nullOnly jobs that run one of these conversions; null sends every job again
metadataobject (map) | nullOnly jobs whose metadata has every one of these values; null sends every job again
Example
{
"enabled": false
}

Responses

200 OK

The endpoint

FieldTypeDescription
idstring
urlstring
descriptionstring | null
events"job.completed" | "job.failed" | "job.canceled"[]
mode"live" | "test"
enabledboolean
disabled_reason"failing" | "user" | nullfailing: turned off after 24 hours of failed deliveries
failing_sincestring | null
previous_secret_expires_atstring | nullAfter a rotation, the old secret signs beside the new one until then
client"zapier" | "make" | "n8n" | nullThe 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
conversionsstring[] | nullOnly jobs that run one of these conversions are sent; null for every job
metadataobject (map) | nullOnly jobs whose metadata has every one of these values are sent; null for every job
created_atstring
updated_atstring
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"
}

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 plan has no API.
404not_foundNo webhook endpoint of this key’s mode has this ID.
429rate_limitedMore requests than the plan allows in 10 seconds: wait Retry-After seconds.