From sinch-claude-plugin
Updates an existing Sinch webhook by ID with optional new target URL (--target), triggers (--triggers), or secret (--secret). Validates inputs, calls API, reports changes.
How this command is triggered — by the user, by Claude, or both
Slash command
/sinch-claude-plugin:update --id=<webhook-id> [--target=<url>] [--triggers=<trigger1,trigger2,...>] [--secret=<secret>]api/webhooks/This command is limited to the following tools:
The summary Claude sees in its command listing — used to decide when to auto-load this command
# Update Webhook Update an existing webhook's configuration including target URL, triggers, or secret. ## Input - `--id`: Webhook ID to update - required - `--target` / `-t`: New webhook target URL (must be HTTPS) - optional - `--triggers` / `-tr`: New comma-separated list of webhook triggers - optional - `--secret` / `-s`: New secret for webhook signature verification - optional $ARGUMENTS ## Instructions 1. Parse and validate arguments from $ARGUMENTS: - Validate that `--id` is provided and non-empty - If `--target` is provided, validate it's a valid HTTPS URL (must start wit...
Update an existing webhook's configuration including target URL, triggers, or secret.
--id: Webhook ID to update - required--target / -t: New webhook target URL (must be HTTPS) - optional--triggers / -tr: New comma-separated list of webhook triggers - optional--secret / -s: New secret for webhook signature verification - optional$ARGUMENTS
Parse and validate arguments from $ARGUMENTS:
--id is provided and non-empty--target is provided, validate it's a valid HTTPS URL (must start with https://)--triggers is provided:
--secret is provided, ensure it's at least 16 characters long--target, --triggers, or --secret is provided for the updateCall mcp__sinch__sinch-mcp-configuration to get the current configuration.
Verify the webhook exists:
Update the webhook using the Sinch Conversation API:
PATCH https://{region}.conversation.api.sinch.com/v1/projects/{projectId}/webhooks/{webhookId}{
"target": "<new_target_url>",
"triggers": ["<TRIGGER1>", "<TRIGGER2>"],
"secret": "<new_secret>"
}
Report the result:
Handle errors gracefully:
/sinch-claude-plugin:sinch-mcp-setup to see setup instructions."Update webhook target URL:
/sinch-claude-plugin:api:webhooks:update --id=01E9DQJFPWGZ4N9XQ3FZ8Z8Z8Z --target=https://new-endpoint.com/webhook
Update webhook triggers:
/sinch-claude-plugin:api:webhooks:update --id=01E9DQJFPWGZ4N9XQ3FZ8Z8Z8Z --triggers=MESSAGE_INBOUND,MESSAGE_DELIVERY,MESSAGE_SUBMIT
Update webhook secret:
/sinch-claude-plugin:api:webhooks:update --id=01E9DQJFPWGZ4N9XQ3FZ8Z8Z8Z --secret=new-secret-key-123456
Update multiple fields at once:
/sinch-claude-plugin:api:webhooks:update --id=01E9DQJFPWGZ4N9XQ3FZ8Z8Z8Z --target=https://new-endpoint.com/webhook --triggers=MESSAGE_INBOUND
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 eventsBATCH_STATUS_UPDATE - Batch operation status updatesSMART_CONVERSATION - Smart conversation eventsRECORD_NOTIFICATION - Record notification eventsUNSUPPORTED - Unsupported eventsPATCH /v1/projects/{projectId}/webhooks/{webhookId}{
"target": "https://new-endpoint.com/webhook",
"triggers": ["MESSAGE_INBOUND", "MESSAGE_DELIVERY"],
"secret": "new-webhook-secret"
}
x-sinch-webhook-signature, x-sinch-webhook-signature-timestamp, x-sinch-webhook-signature-nonce, x-sinch-webhook-signature-algorithm. Signature format: HMAC-SHA256(rawBody + '.' + nonce + '.' + timestamp, secret)npx claudepluginhub sinch/sinch-plugins --plugin sinch-claude-plugin/webhookDesigns, implements, and secures inbound/outbound webhook systems with retries, HMAC verification, DLQ, subscriptions; produces DB schemas, event catalogs, OpenAPI specs, docs, monitoring configs, validation reports. Supports provider configs (e.g., Stripe) and audits.
/create-webhook-handlerGenerates secure webhook endpoints with signature verification, idempotency, retry handling, event processors, middleware, routes, schemas, config, and tests.
/google-chat-messagesSends messages to Google Chat via webhook. Provide [webhook-url] [message]; guides through webhook setup if arguments missing.
/configView or modify heartbeat daemon settings including enable/disable, interval, prompt, Telegram forwarding, security, Web UI, and cron jobs. Supports subcommands like show, on/off, interval <minutes>.
/updateUpdates beads issue fields: status, priority, assignee, title, or description. Accepts [issue-id] [value]; prompts interactively if missing. Applies via tool and shows updated issue.
/updateUpdates GSD to the latest version with changelog display and user confirmation. Also supports --sync, --reapply, and --next/--rc flags for advanced workflows.