Delete webhook
const url = 'https://reignitor.com/api/webhooks/hooks/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request DELETE \ --url https://reignitor.com/api/webhooks/hooks/example \ --header 'Authorization: Bearer <token>'Removes the webhook. Deliveries stop straight away.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters”The webhook’s id.
Responses
Section titled “ Responses ”Deleted.
object
Example
{ "deleted": true}The key is missing, malformed, unknown or revoked.
Every error has a human-readable error. Most also have a machine-readable code.
object
A message you can show to a person.
A stable code to branch on. Not every error has one.
Extra context for some codes, such as retryAfter or usage figures.
Seconds to wait before retrying. Present on some RATE_LIMITED errors.
Examples
No key, or not an emp_ key
{ "error": "Unauthorized", "code": "NO_API_KEY"}Unknown or revoked key
{ "error": "Invalid or revoked API key", "code": "INVALID_API_KEY"}No webhook with this ID on your account.
Every error has a human-readable error. Most also have a machine-readable code.
object
A message you can show to a person.
A stable code to branch on. Not every error has one.
Extra context for some codes, such as retryAfter or usage figures.
Seconds to wait before retrying. Present on some RATE_LIMITED errors.
Example
{ "error": "Hook not found"}Something went wrong on our side.
Every error has a human-readable error. Most also have a machine-readable code.
object
A message you can show to a person.
A stable code to branch on. Not every error has one.
Extra context for some codes, such as retryAfter or usage figures.
Seconds to wait before retrying. Present on some RATE_LIMITED errors.
Example
{ "error": "Something went wrong handling that request."}