Delete Alert Webhook
Delete an existent Alert Webhook configured for the requester user customer ID
Authentication
Include your
Access-Tokenin the header of your requests.Include your
x-api-keyThe API key provided by GenLogs. This header must be included in the request.
Permissions
The external-api-delete-alert-webhook-endpoint permission is required to access this endpoint.
Endpoint
URL:
https://api.genlogs.io/alerts/webhook/{webhook_id}Method:
DELETE
Headers
Access-Token: (string, required): Access token obtained from the "Create Access Token" endpoint.
X-Api-Key (string, required): The API key provided by GenLogs.
Path Params
webhook_id (string, UUID format, required): Existent webhook ID, to be deleted.
Request Example:
Response:
200 OK: A JSON object containing the information of the deleted alert webhook.
400 Bad Request: If webhook id is malformed or missing.
401 Unauthorized: If the authentication credentials (Access-Token) is missing or incorrect.
403 Forbidden: If the permission has not been added to your user.
404 Not Found: If the provided
webhook_iddoesn't exist or not belongs to the customer.500 Internal Server Error: If there is an issue on the server that prevents processing the request.
Response Body:
200 OK – Webhook Deleted Successfully
400 Bad Request
Returned when:
The provided webhook id is malformed or missing
401 Unauthorized
When access-token is missing or expired
403 Forbidden
404 Not Found
When the webhook is is not found or does not belong to customer
Delete an alert webhook by ID. Requires ownership for the authenticated customer. Returns the deleted webhook data (id, webhook_url, description, created_at). Requires admin or external-api-delete-alert-webhook-endpoint.
UUID of the webhook to delete
JWT access token for authentication
API key for authentication
Webhook deleted successfully; returns deleted webhook data
Deleted webhook data returned on successful DELETE (secret and enabled excluded)
Always true for delete response
Bad Request – invalid webhook ID format
Unauthorized – missing or invalid token
Forbidden – insufficient permissions
Not Found – webhook does not exist or does not belong to customer
Internal Server Error
DELETE /alerts/webhook/{webhook_id} HTTP/1.1
Access-Token: text
X-API-Key: text
Accept: */*
{
"id": "550e8400-e29b-41d4-a716-446655440000",
"webhook_url": "https://example.com/webhook",
"description": "Sample webhook",
"created_at": "2024-01-15T10:30:00Z",
"deleted": true
}Last updated