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
Sections: Overview | CHANNEL_EVENT | BATCH_STATUS_UPDATE | RECORD_NOTIFICATION | UNSUPPORTED | Key Points
System event triggers deliver notifications about channel-level events, batch processing completion, recording notifications, and unsupported channel callbacks. These triggers provide visibility into system-level operations and channel-specific notifications that don't fit into standard message or event categories.
The four system triggers are:
CHANNEL_EVENT — Channel-specific notifications (e.g., WhatsApp quality rating)BATCH_STATUS_UPDATE — Batch message processing completion/failureRECORD_NOTIFICATION — Recording availability notifications (Voice)UNSUPPORTED — Raw channel callbacks not mapped to Conversation APIDelivers channel-specific notifications that are unique to particular messaging channels, such as WhatsApp Business quality rating changes or phone number status updates.
{
"app_id": "01H1234567...",
"accepted_time": "2024-06-15T14:30:00.123Z",
"project_id": "PROJECT123",
"channel_event": {
"channel_identity": {
"channel": "WHATSAPP",
"identity": "46732001122",
"app_id": "01H1234567..."
},
"event_type": "QUALITY_UPDATE",
"additional_data": {
"quality_rating": "YELLOW",
"previous_rating": "GREEN"
}
}
}WhatsApp Quality Rating:
quality_rating: GREEN, YELLOW, REDRED rating can lead to restricted messaging limitsWhatsApp Phone Number Status:
See Callback Structure above for the canonical format. event_type and additional_data vary by channel.
Notifies when batch message processing completes or fails. Batch sends allow sending messages to multiple recipients in a single API call, and this trigger provides status updates for the entire batch operation.
{
"app_id": "01H1234567...",
"accepted_time": "2024-06-15T16:00:00.789Z",
"project_id": "PROJECT123",
"batch_status_update": {
"batch_id": "01H9876543...",
"status": "COMPLETED",
"total_messages": 1000,
"successful_messages": 985,
"failed_messages": 15,
"processing_time_ms": 45000
}
}| Status | Description |
|---|---|
COMPLETED | Batch fully processed (may include some failures) |
FAILED | Batch processing failed entirely |
PARTIAL | Some messages processed, some failed |
Notifies when call recordings are available for download. Used with Sinch Voice API when call recording is enabled. The notification includes a URL to download the recording file.
{
"app_id": "01H1234567...",
"accepted_time": "2024-06-15T18:00:00.123Z",
"project_id": "PROJECT123",
"record_notification": {
"call_id": "abc123def456",
"recording_id": "rec_789xyz",
"recording_url": "https://storage.sinch.com/recordings/rec_789xyz.mp3",
"duration_seconds": 180,
"format": "mp3"
}
}Delivers raw channel callbacks that are not mapped to standard Conversation API triggers. This is a catch-all trigger for channel-specific events that don't fit into other trigger categories. Useful for debugging and accessing channel-native features not yet abstracted by Conversation API.
{
"app_id": "01H1234567...",
"accepted_time": "2024-06-15T19:00:00.789Z",
"project_id": "PROJECT123",
"unsupported": {
"channel": "WHATSAPP",
"payload": {
// Raw channel-specific payload
"type": "new_feature_notification",
"data": {
// Channel-native structure
}
}
}
}RED rating can severely limit messaging; YELLOW is a warningCOMPLETED status can include failed messages; check failed_messages countfailure_reasons to understand why messages failed in the batchprocessing_time_ms helps optimize batch sizes and timingUNSUPPORTED to dedicated triggersskills
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