Delete Webhook
Delete a webhook by its ID. This endpoint supports both API key and Bearer token authentication.
Endpoint
DELETE /api/webhooks/:webhookId
Headers
X-API-Key: your-api-key
Alternative (Bearer Token):
Authorization: Bearer your-access-token
Parameters
Path:
webhookId(string, required) - The webhook ID (format:wh_followed by 32 hex characters)
Response
{
"status": true,
"message": "Webhook deleted successfully"
}
Errors
| Status | Message |
|---|---|
400 | Validation failed / Invalid webhook ID format |
401 | Invalid API key / Authentication required |
404 | Webhook not found |
Example
curl -X DELETE "https://api.reeng.xyz/api/webhooks/wh_a1b2c3d4e5f6789012345678901234ab" \
-H "X-API-Key: your-api-key"
Notes
- When using API key authentication, the webhook must belong to the application associated with your API key
- When using Bearer token authentication, you must be the owner of the webhook
- Webhook ID format:
wh_followed by 32 hexadecimal characters - This action cannot be undone