Create a new webhook for the Sinch Conversation API app
Creates a webhook for Sinch Conversation API to receive real-time events.
/plugin marketplace add sinch/sinch-plugins/plugin install sinch-claude-plugin@sinch--target=<url> --triggers=<trigger1,trigger2,...> [--secret=<secret>]api/webhooks/Create a new webhook to receive real-time events from the Sinch Conversation API.
--target / -t: Webhook target URL (must be HTTPS) - required--triggers / -tr: Comma-separated list of webhook triggers - required--secret / -s: Secret for webhook signature verification - optional$ARGUMENTS
Parse and validate arguments from $ARGUMENTS:
--target is provided and is a valid HTTPS URL (must start with https://)--triggers is provided and non-empty--secret is provided, ensure it's at least 16 characters longCall mcp__sinch__sinch-mcp-configuration to get the current configuration.
Check for duplicate webhooks:
Create the webhook using the Sinch Conversation API:
POST https://{region}.conversation.api.sinch.com/v1/projects/{projectId}/webhooks{
"target": "<target_url>",
"target_type": "HTTP",
"triggers": ["<TRIGGER1>", "<TRIGGER2>"],
"secret": "<optional_secret>",
"app_id": "<appId>"
}
Report the result:
Handle errors gracefully:
/sinch-claude-plugin:sinch-mcp-setup to see setup instructions."Create a webhook for inbound messages:
/sinch-claude-plugin:api:webhooks:create --target=https://example.com/webhook --triggers=MESSAGE_INBOUND
Create a webhook with multiple triggers:
/sinch-claude-plugin:api:webhooks:create --target=https://example.com/webhook --triggers=MESSAGE_INBOUND,MESSAGE_DELIVERY --secret=my-secret-key-12345
Create a webhook with message-related triggers:
/sinch-claude-plugin:api:webhooks:create -t https://example.com/webhook -tr MESSAGE_INBOUND,MESSAGE_DELIVERY,MESSAGE_SUBMIT
Message-related triggers:
MESSAGE_DELIVERY - Delivery receipts for sent messagesMESSAGE_INBOUND - Inbound messages from end usersMESSAGE_SUBMIT - Message submission eventsMESSAGE_INBOUND_SMART_CONVERSATION_REDACTION - Smart conversation redaction eventsOther triggers:
EVENT_DELIVERY - Event delivery receiptsEVENT_INBOUND - Inbound events from end usersCONVERSATION_START - New conversation startedCONVERSATION_STOP - Conversation stoppedCONVERSATION_DELETE - Conversation deletedCONTACT_CREATE - Contact createdCONTACT_DELETE - Contact deletedCONTACT_MERGE - Contacts mergedCONTACT_UPDATE - Contact updatedCONTACT_IDENTITIES_DUPLICATION - Duplicate contact identitiesOPT_IN - User opted inOPT_OUT - User opted outCAPABILITY - Channel capability changesCHANNEL_EVENT - Channel-specific eventsSMART_CONVERSATION - Smart conversation eventsRECORD_NOTIFICATION - Record notification eventsUNSUPPORTED - Unsupported eventsPOST /v1/projects/{projectId}/webhooks{
"target": "https://example.com/webhook",
"target_type": "HTTP",
"triggers": ["MESSAGE_INBOUND", "MESSAGE_DELIVERY"],
"secret": "your-webhook-secret",
"app_id": "01E9DQJFPWGZ4N9XQ3FZ8Z8Z8Z"
}