Delete a webhook

SDK platic.webhooks.delete()

Permanently delete the webhook and stop its notifications immediately. Its secrets remain in the workspace.

Example

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

ParameterTypeDescriptionRequired
webhookIdstringWebhook id✓

Response

{
  "status": "success",
  "message": "Webhook deleted successfully",
  "data": {
    "id": "webhook_abc123",
    "deleted": true,
    "workspaceId": "ws_123"
  }
}

Response fields

FieldTypeDescription
idstringId of the deleted webhook
deletedbooleanAlways true
workspaceIdstringWorkspace it belonged to

Errors

Statusdetails.codeWhen
400INVALID_REQUESTYour 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
401UNAUTHENTICATEDThe credential is missing or invalid
403FORBIDDENAn 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
404NOT_FOUNDThe webhook does not exist in the workspace
409RESOURCE_CHANGEDThe webhook changed while it was being deleted. Read it and repeat
409REQUEST_ID_CONFLICTYou 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.