Skip to main content
DELETE
/
public
/
v1
/
webhooks
/
{id}
Delete Webhook
curl --request DELETE \
  --url https://api.pro.daya.co/public/v1/webhooks/{id} \
  --header 'X-Api-Key: <x-api-key>'
{
  "success": true,
  "message": "Webhook deleted successfully",
  "data": null,
  "timestamp": "2024-01-15T12:00:00Z"
}

Overview

Delete a webhook endpoint. This also deletes all delivery logs associated with the webhook. This action cannot be undone.

Authentication

X-Api-Key
string
required
Your API key with Write scope
X-Api-Key: daya_sk_YOUR_API_KEY

Path Parameters

id
string
required
Webhook ID (UUID)Example: 770e8400-e29b-41d4-a716-446655440000

Request Examples

curl --request DELETE \
  --url 'https://api.pro.daya.co/public/v1/webhooks/770e8400-e29b-41d4-a716-446655440000' \
  --header 'X-Api-Key: daya_sk_YOUR_API_KEY'

Response

success
boolean
required
Indicates if the request was successful
message
string
required
Human-readable response message

Success Response

{
  "success": true,
  "message": "Webhook deleted successfully",
  "data": null,
  "timestamp": "2024-01-15T12:00:00Z"
}

Error Responses

{
  "success": false,
  "message": "Validation error",
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "Invalid webhook ID format"
  }
}
This action is permanent. All delivery logs for this webhook will be deleted and cannot be recovered.

Rate Limits

  • 100 requests per minute per API key

Next Steps

Create Webhook

Create a new webhook

List Webhooks

View all webhooks