Docs
Account, keys and webhooks ›

Delete webhook

DELETE/v1/webhooks/{id}

Delete a webhook.

RequestTypeScript
  1. import { Agental } from "agental-sdk";
  2. const agental = new Agental();
  3. await agental.deleteWebhook("wh_3e8b0c5a9d2f7146");
Answer204 No Content

No body: the status says it was done.

Webhook deleted.

Path

idrequired
string

Headers

Authorizationrequired
Bearer key
An API key that may make this call.

Returns

204 Webhook deleted.

Errors and other answers

404 Not found.

Every error answers { "error": { "code", "message" } }; a key without the action a call needs answers 403 key_action_forbidden, naming it.