Account, keys and webhooks ›
Delete webhook
DELETE
/v1/webhooks/{id}Delete a webhook.
RequestTypeScript
- import { Agental } from "agental-sdk";
- const agental = new Agental();
- await agental.deleteWebhook("wh_3e8b0c5a9d2f7146");
Answer204 No Content
No body: the status says it was done.
Webhook deleted.
Path
idrequiredstring |
Headers
AuthorizationrequiredBearer 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.