Conversation API//Events
Events
Conversation API | Sinch
Overview
Messages
Apps
Contacts
Conversations
Transcode
Capability
Consents
Projects
Webhooks
Managing templates
Template Management API
Overview
Templates V2
Overview
Conversation API - Batch API | Sinch
Messages
Contacts
Consents
Conversation API callbacks
Webhook routing
Consent management
Metadata guide
Conversation OAS in JSON format
Templates OAS in JSON format
Batch OAS in JSON format
Sends an event to the referenced contact from the referenced app. Note that this operation enqueues the event in a queue so a successful response only indicates that the event has been queued.
Security
Basic or oAuth2
The unique ID of the project. You can find this on the Sinch Dashboard.
The event to be sent.
One of:
Identifies the recipient. If Dispatch Mode is used, you must use the identified_by field.
eventComposing (object) or Composing End Event Type (object) or Read Message Event Type (object) or Comment Reply Event Type (object) or Agent Joined Event Type (object) or Agent Left Event Type (object) or Generic Type (object)(AppEventField)required
One of:
Overwrites the default callback url for delivery receipts for this message The REST URL should be of the form: http://host[:port]/path
Optional. A single element array that dictates on what channel should the Conversation API try to send the event. It overrides any default set on the contact. Providing more than one option has no effect.
- https://us.conversation.api.sinch.comhttps://us.conversation.api.sinch.com/v1/projects/{project_id}/events:send
curl -i -X POST \
-u '<username>:<password>' \
'https://us.conversation.api.sinch.com/v1/projects/{project_id}/events:send' \
-H 'Content-Type: application/json' \
-d '{
"app_id": "string",
"callback_url": "string",
"channel_priority_order": [
"WHATSAPP"
],
"event": {
"composing_event": {}
},
"event_metadata": "string",
"queue": "NORMAL_PRIORITY",
"recipient": {
"identified_by": {
"channel_identities": [
{
"channel": "WHATSAPP",
"identity": "string"
}
]
}
}
}'Response
{ "accepted_time": "2019-08-24T14:15:22Z", "event_id": "string" }