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 | CONVERSATION_START | CONVERSATION_STOP | CONVERSATION_DELETE | Key Points
Conversation lifecycle triggers notify you when conversations are created, ended, or deleted. These triggers help you track conversation sessions, manage conversation state, and perform cleanup or analytics when conversations conclude.
The three lifecycle triggers are:
CONVERSATION_START — New conversation initiatedCONVERSATION_STOP — Conversation ended/closedCONVERSATION_DELETE — Conversation deleted from system{
"app_id": "01H1234567...",
"accepted_time": "2024-06-15T14:20:00.123Z",
"project_id": "PROJECT123",
"conversation_start_notification": {
"conversation": {
"id": "01H5555555...",
"app_id": "01H1234567...",
"contact_id": "01H3333333...",
"last_received": "2024-06-15T14:20:00.000Z",
"active_channel": "WHATSAPP",
"active": true,
"metadata": "",
"active_channel_senders": [
{
"channel_identity": {
"channel": "WHATSAPP",
"identity": "46732001122"
}
}
]
}
}
}| Field | Description |
|---|---|
conversation.id | Unique conversation identifier |
conversation.contact_id | Contact participating in the conversation |
conversation.active_channel | Channel the conversation started on |
conversation.active | Always true for new conversations |
conversation.metadata | Custom metadata (if set) |
conversation.active_channel_senders | Active channel endpoints |
MESSAGE_INBOUND)PATCH /v1/projects/{project_id}/conversations/{conversation_id} with active: false)Note: Does not fire automatically when user stops messaging; you must explicitly stop the conversation.
{
"app_id": "01H1234567...",
"accepted_time": "2024-06-15T16:45:30.456Z",
"project_id": "PROJECT123",
"conversation_stop_notification": {
"conversation": {
"id": "01H5555555...",
"app_id": "01H1234567...",
"contact_id": "01H3333333...",
"last_received": "2024-06-15T16:30:00.000Z",
"active_channel": "WHATSAPP",
"active": false,
"metadata": "issue_resolved",
"active_channel_senders": [
{
"channel_identity": {
"channel": "WHATSAPP",
"identity": "46732001122"
}
}
]
}
}
}| Field | Description |
|---|---|
conversation.active | Always false for stopped conversations |
conversation.last_received | Timestamp of last message |
conversation.metadata | Use to store closure reason or resolution status |
DELETE /v1/projects/{project_id}/conversations/{conversation_id}){
"app_id": "01H1234567...",
"accepted_time": "2024-06-15T18:00:00.789Z",
"project_id": "PROJECT123",
"conversation_delete_notification": {
"conversation_id": "01H5555555..."
}
}| Field | Description |
|---|---|
conversation_id | ID of the deleted conversation |
Note: The callback only includes the conversation ID, not full conversation details, since the conversation is already deleted.
active_channel shows which channel initiated the conversationcontact_id; group conversations not supportedactive: true again (will fire CONVERSATION_START again)conversation.active to differentiate from CONVERSATION_START notificationsconversation_id; retrieve full conversation details before deletion if neededmetadata field to store conversation context (e.g., ticket ID, order number, closure reason)skills
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