Webhooks

Delete a webhook

Changed on

Delete a webhook by its ID.

400 is returned when the webhook still has active agent subscriptions: "Cannot delete webhook: It is currently assigned to one or more agents. Please remove all agent assignments first." Call DELETE /agent/{agentId}/webhook-subscriptions for each assigned agent before deleting.

400 is also returned for an invalid webhook ID format: "The provided Webhook ID is invalid."

delete/webhook/{id}

Request

  • Base URL
    https://api.smallest.ai/atoms/v1
  • URL
    https://api.smallest.ai/atoms/v1/webhook/{id}
  • Auth
    HTTP bearer

Path parameters

idstring required

The ID of the webhook to delete

Response

Webhook deleted successfully

statusboolean
datastring

Success message

Example response

{
  "status": true,
  "data": "Webhook deleted successfully"
}

Changes