Webhooks

ToolREST endpointAnnotations
list_webhooksGET /v1/webhooksread-only, idempotent
get_webhookGET /v1/webhooks/{id}read-only, idempotent
create_webhookPOST /v1/webhookswrite
update_webhookPATCH /v1/webhooks/{id}write
delete_webhookDELETE /v1/webhooks/{id}destructive
list_webhook_eventsGET /v1/webhooks/eventsread-only, idempotent

list_webhook_events

No arguments. Returns the full catalog of allowed webhook events, grouped by category: conversation, message, client, whatsappFlow.

Call this tool first if you want to know which values are valid for the events[] field of create_webhook or update_webhook.


create_webhook

FieldTypeRequiredDescription
namestring (1-100)yesDescriptive name.
urlstring HTTPS URL (≤ 500)yesWebhook destination.
eventsstring[] (1-N)yesEvents to subscribe to. See list_webhook_events.
activebooleannoDefault true.
secretstring (≤ 255)noUsed to sign the payload.
headersRecord<string, string> (max 10)noExtra headers (key ≤ 100, value ≤ 500).
workspacestringif multi-ws

Example

{
  "name": "create_webhook",
  "arguments": {
    "name": "supabase-events",
    "url": "https://example.supabase.co/functions/v1/platica-webhook",
    "events": ["conversation.created", "message.created", "client.created"],
    "secret": "muy-secreto-y-largo",
    "headers": { "X-Custom-Tag": "produccion" }
  }
}

update_webhook

Same fields as create_webhook (all optional), plus webhookId.

get_webhook / delete_webhook

Only require webhookId (plus optional workspace for multi-ws on delete_webhook).