Delete Alert Webhook | Genlogs API Docs

Authentication

Permissions

The external-api-delete-alert-webhook-endpoint permission is required to access this endpoint.

Endpoint

Headers

Path Params

Request Example:

curl --location --request DELETE 'https://api.genlogs.io/alerts/webhook/{webhook_id}' \
--header 'access-token: <your-api-access-token>' \
--header 'x-api-key: <your-x-api-key>' 

Response:

Response Body:

200 OK – Webhook Deleted Successfully

{
    "id": "0a7f4670-aeed-491a-91ae-af7e88b397b3",
    "webhook_url": "https://example.domain/webhooks/genlogs-alerts",
    "description": "test-to-be-deleted",
    "created_at": "2026-02-20T18:58:19.132530",
    "deleted": true
}

400 Bad Request

Returned when:

{
    "message": "Invalid webhook ID format.",
    "error_code": "VALIDATION_ERROR"
}

401 Unauthorized

{
    "detail": "Token is missing!"
}
{
    "detail": "Token is expired!"
}

403 Forbidden

{
    "detail": "User not allowed to access this endpoint"
}

404 Not Found

{
    "message": "Webhook 0a7f4670-aeed-491a-91ae-af7e88b397b3 not found or does not belong to customer",
    "error_type": "WebhookNotFoundError",
    "error_code": "WEBHOOK_NOT_FOUND"
}

Delete alert webhook

delete/alerts/webhook/{webhook_id}

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.

Path parameters

webhook_id string · uuid Required

UUID of the webhook to delete

Header parameters

Access-Token string Required

JWT access token for authentication

X-Api-Key string Required

API key for authentication

Responses

DELETE /alerts/webhook/{webhook_id} HTTP/1.1
Access-Token: text
X-Api-Key: text
Accept: */*

200: Webhook deleted successfully; returns deleted webhook data

{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "webhook_url": "https://example.com/webhook",
  "description": "Sample webhook",
  "created_at": "2024-01-15T10:30:00Z",
  "deleted": true
}