Delete a webhook
SDK platic.webhooks.delete()
Permanently delete the webhook and stop its notifications immediately. Its secrets remain in the workspace.
Example
curl -X DELETE https://api.platic.ai/v1/webhooks/$WEBHOOK_ID \
-H "Authorization: Bearer $PLATIC_API_KEY" await platic.webhooks.delete("webhook_123"); If your credential covers several workspaces, add ?workspace=<id> with the webhook's workspace (list workspaces); without it the answer is 400.
Path parameters
| Parameter | Type | Description | Required |
|---|---|---|---|
webhookId | string | Webhook id | ✓ |
Response
{
"status": "success",
"message": "Webhook deleted successfully",
"data": {
"id": "webhook_abc123",
"deleted": true,
"workspaceId": "ws_123"
}
} Response fields
| Field | Type | Description |
|---|---|---|
id | string | Id of the deleted webhook |
deleted | boolean | Always true |
workspaceId | string | Workspace it belonged to |
Errors
| Status | details.code | When |
|---|---|---|
400 | INVALID_REQUEST | Your credential covers several workspaces and you did not send ?workspace=, or you sent one it does not cover. details.available carries the IDs you can use |
401 | UNAUTHENTICATED | The credential is missing or invalid |
403 | FORBIDDEN | An OAuth token without the platica:write scope, the person does not have the Integrations module (the message is Missing integrations permission), or does not have permission to configure webhooks |
404 | NOT_FOUND | The webhook does not exist in the workspace |
409 | RESOURCE_CHANGED | The webhook changed while it was being deleted. Read it and repeat |
409 | REQUEST_ID_CONFLICT | You repeated an Idempotency-Key with a different body. Use a new key for a new operation |
{
"code": 404,
"error": "Not Found - The resource doesn't exist",
"details": {
"code": "NOT_FOUND",
"message": "Integración no encontrada."
}
} The general error format is in Errors.
Warning
To pause deliveries, use { "active": false } in update a webhook.