Skip to content

Delete an endpoint

DELETE /v1/webhooks/{id}

Delete a webhook endpoint and its deliveries.

API key with the webhooks scope.

Request

Terminal window
curl -X DELETE "https://api.formatjet.com/v1/webhooks/wh_01JBXA6K8M0P2R4S6T8V0W2X4Y" \
-H "Authorization: Bearer $FORMATJET_API_KEY"

Path parameters

FieldTypeDescription
id requiredstring

Responses

204 No content

Deleted

Errors

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

StatusCodeWhen
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.