List available webhook triggers (message-related only)
Lists available message-related webhook triggers for Sinch Conversation API in JSON or table format.
/plugin marketplace add sinch/sinch-plugins/plugin install sinch-claude-plugin@sinch--format=json|tableapi/webhooks/List all available message-related webhook triggers for the Sinch Conversation API.
--format / -f: Output format (json or table) - optional, defaults to table$ARGUMENTS
Parse and validate arguments from $ARGUMENTS:
--format is not provided, default to "table"Display the message-related webhook triggers based on the requested format.
For table format, display a formatted table with columns:
For json format, display the triggers as a JSON array with objects containing:
trigger: The trigger namelabel: Human-readable namedescription: Detailed descriptioncategory: "message"The following triggers are related to message operations:
List message triggers in table format:
/sinch-claude-plugin:api:webhooks:triggers
List message triggers in JSON format:
/sinch-claude-plugin:api:webhooks:triggers --format=json
Message-Related Webhook Triggers
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Trigger Label Description
─────────────────────────────────────────────────────────────────────────────────────────────────────────
MESSAGE_INBOUND Message Inbound Inbound messages from end users
MESSAGE_DELIVERY Message Delivery Delivery receipts for sent messages
MESSAGE_SUBMIT Message Submit Message submission events
MESSAGE_INBOUND_SMART_CONVERSATION_REDACTION Smart Conversation Redaction Smart conversation redaction events
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
{
"triggers": [
{
"trigger": "MESSAGE_INBOUND",
"label": "Message Inbound",
"description": "Subscribe to inbound messages from end users on the underlying channels. Fires when a contact sends a message to your app.",
"category": "message",
"payload_example": {
"message": {
"id": "01E9DQJFPWGZ4N9XQ3FZ8Z8Z8Z",
"direction": "TO_APP",
"contact_message": {
"text_message": {
"text": "Hello from customer"
}
}
},
"conversation_id": "01E9DQJFPWGZ4N9XQ3FZ8Z8Z8Z",
"contact_id": "01E9DQJFPWGZ4N9XQ3FZ8Z8Z8Z",
"channel_identity": {
"channel": "SMS",
"identity": "+14155551234",
"app_id": "01E9DQJFPWGZ4N9XQ3FZ8Z8Z8Z"
}
}
},
{
"trigger": "MESSAGE_DELIVERY",
"label": "Message Delivery",
"description": "Subscribe to delivery receipts for messages sent. Fires when message delivery status changes.",
"category": "message",
"payload_example": {
"message_id": "01E9DQJFPWGZ4N9XQ3FZ8Z8Z8Z",
"conversation_id": "01E9DQJFPWGZ4N9XQ3FZ8Z8Z8Z",
"channel_identity": {
"channel": "SMS",
"identity": "+14155551234",
"app_id": "01E9DQJFPWGZ4N9XQ3FZ8Z8Z8Z"
},
"contact_id": "01E9DQJFPWGZ4N9XQ3FZ8Z8Z8Z",
"delivery_report": {
"status": "DELIVERED",
"code": 0,
"comment": "Message delivered successfully",
"timestamp": "2023-10-15T14:30:00Z"
}
}
},
{
"trigger": "MESSAGE_SUBMIT",
"label": "Message Submit",
"description": "Subscribe to message submission events. Fires when a message is submitted for delivery.",
"category": "message"
},
{
"trigger": "MESSAGE_INBOUND_SMART_CONVERSATION_REDACTION",
"label": "Smart Conversation Redaction",
"description": "Subscribe to smart conversation redaction events for inbound messages. Fires when sensitive data is detected and redacted.",
"category": "message"
}
]
}
These triggers can be used with the webhook create and update commands:
# Create webhook with message triggers
/sinch-claude-plugin:api:webhooks:create --target=https://example.com/webhook --triggers=MESSAGE_INBOUND,MESSAGE_DELIVERY
# Update webhook to include message submit trigger
/sinch-claude-plugin:api:webhooks:update --id=01E9... --triggers=MESSAGE_INBOUND,MESSAGE_DELIVERY,MESSAGE_SUBMIT