Skip to main content
DELETE

Overview

Permanently delete a webhook from your organization. It stops in every campaign that uses it at once: calls that end afterwards are not sent to it. Deliveries already queued before the deletion, including scheduled retries, can still be sent.

Prerequisites

  • An API key for your workspace
  • The webhook’s ID (_id from Get Webhooks)

Request

string
required
Your workspace API key. Create one from the profile menu in the dashboard → API Keys.
string
required
ID of the webhook to delete.

Response

boolean
required
true when the webhook was deleted.
string
required
Webhook deleted successfully.

Error Handling

Errors return status: false, with the reason in errorMessage.
  • 400 Bad Request – webhookId isn’t a valid ID.
  • 401 Unauthorized – Missing or invalid API key.
  • 404 Not Found – Webhook not found or unauthorized: the webhook doesn’t exist in your organization.
  • 500 Internal Server Error – Unexpected server error.
This can’t be undone. To stop a webhook in only one campaign, remove it from that campaign’s pushingCrms with Update Campaign instead.