Official Sinch API skills for AI coding agents — SMS, Voice, Verification, Numbers, Mailgun email, and more.
71
89%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Advisory
Suggest reviewing before use
← Back to Conversation API SKILL.md
The EVENT_INBOUND trigger fires when your Conversation API app receives an inbound event from a contact on a channel. Events are non-message interactions such as typing indicators, composing notifications, payment status updates, and shortlink activations. Unlike messages, events typically don't require a direct response but provide context about user activity.
The webhook callback contains an event object with these key fields:
| Field | Type | Description |
|---|---|---|
id | string | Unique event identifier |
conversation_id | string | Conversation this event belongs to |
contact_id | string | Contact who triggered the event |
channel | string | Channel the event came from (e.g., WHATSAPP, RCS) |
direction | string | Always TO_APP for inbound events |
contact_event | object | The event payload (for events initiated by contact) |
contact_message_event | object | Message-related event payload (for events about messages) |
accept_time | timestamp | When Sinch received the event |
channel_identity | object | Channel-specific sender information |
Composing Events (Typing Indicators):
{
"contact_event": {
"composing_event": {}
}
}Payment Status Events:
{
"contact_message_event": {
"generic_event": {
"payload": {
"payment_status": "PENDING"
}
},
"message_id": "01HXXX..."
}
}Shortlink Activation Events:
{
"contact_message_event": {
"generic_event": {
"payload": {
"shortlink_id": "abc123xyz"
}
},
"message_id": "01HXXX..."
}
}{
"app_id": "01H1234567...",
"accepted_time": "2024-06-15T14:30:45.123Z",
"event_time": "2024-06-15T14:30:44.890Z",
"project_id": "PROJECT123",
"event": {
"id": "01H9876543...",
"conversation_id": "01H5555555...",
"contact_id": "01H3333333...",
"channel": "WHATSAPP",
"direction": "TO_APP",
"contact_event": {
"composing_event": {}
},
"channel_identity": {
"channel": "WHATSAPP",
"identity": "46732001122",
"app_id": "01H1234567..."
},
"accept_time": "2024-06-15T14:30:45.123Z"
}
}Other event types (payment status, shortlink activation) use contact_message_event.generic_event.payload with channel-specific data. Structure follows the same top-level envelope.
event top-level field, not message; check contact_event or contact_message_event for payloadgeneric_event with a flexible payload object containing channel-specific dataskills
sinch-10dlc
references
sinch-authentication
sinch-conversation-api
sinch-elastic-sip-trunking
references
sinch-fax-api
sinch-imported-numbers-hosting-orders
references
sinch-in-app-calling
sinch-mailgun
references
sinch-mailgun-inspect
references
sinch-mailgun-optimize
references
sinch-mailgun-validate
sinch-number-lookup-api
sinch-number-order-api
sinch-numbers-api
references
sinch-porting-api
sinch-provisioning-api
sinch-sdks
sinch-verification-api