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.
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
The event to be sent.
app_id required | string The ID of the app sending the event. |
required | Contact ID (object) or Channel Identities (object) (RecipientRequest) Identifies the recipient. If Dispatch Mode is used, you must use the |
required | object (App Event Type) |
callback_url | string Overwrites the default callback url for delivery receipts for this message
The REST URL should be of the form: |
channel_priority_order | Array of strings (Channel Identifier) 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. |
event_metadata | string Optional. Eventual metadata that should be associated to the event. |
queue | string (MessageQueue) Default: "NORMAL_PRIORITY" Select the priority type for the message |
A successful response.
Malformed request. See common error responses for more information.
Incorrect credentials. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Something went wrong on our end, try again with exponential back-off. See common error responses for more information.
{- "app_id": "string",
- "event": { },
- "recipient": { }
}
{- "accepted_time": "2019-08-24T14:15:22Z",
- "event_id": "string"
}
Get event from ID
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
event_id required | string The unique ID of the event. |
A successful response.
id required | string The ID of the event. | ||||||
required | object (Channel Identity) A unique identity of message recipient on a particular channel. For example, the channel identity on SMS, WHATSAPP or VIBERBM is a MSISDN phone number. | ||||||
processing_mode required | string (ProcessingMode) Default: "CONVERSATION" Whether or not Conversation API should store contacts and conversations for the app. For more information, see Processing Modes.
| ||||||
direction | string (ConversationDirection) Default: "UNDEFINED_DIRECTION" Enum: "UNDEFINED_DIRECTION" "TO_APP" "TO_CONTACT" | ||||||
App Event Type (object) or Contact Event Type (object) or Contact Message Event Type (object) The content of the events. | |||||||
conversation_id | string Optional. The ID of the event's conversation. Will not be present for apps in Dispatch Mode. | ||||||
contact_id | string Optional. The ID of the contact. Will not be present for apps in Dispatch Mode. | ||||||
accept_time | string <date-time> |
Malformed request. See common error responses for more information.
Incorrect credentials. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Something went wrong on our end, try again with exponential back-off. See common error responses for more information.
{- "direction": "UNDEFINED_DIRECTION",
- "event": {
- "app_event": {
- "composing_event": { }
}
}, - "id": "string",
- "conversation_id": "string",
- "contact_id": "string",
- "channel_identity": {
- "app_id": "string",
- "channel": "WHATSAPP",
- "identity": "string"
}, - "accept_time": "2019-08-24T14:15:22Z",
- "processing_mode": "CONVERSATION"
}
Delete a specific event by its ID.
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
event_id required | string The unique ID of the event. |
A successful response.
Malformed request. See common error responses for more information.
Incorrect credentials. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Something went wrong on our end, try again with exponential back-off. See common error responses for more information.
{- "code": 400,
- "message": "Malformed request",
- "status": "INVALID_REQUEST",
- "details": [ ]
}
List all events in a project
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
A successful response.
Malformed request. See common error responses for more information.
Incorrect credentials. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Correct credentials but you don't have access to the requested resource. See common error responses for more information.
Something went wrong on our end, try again with exponential back-off. See common error responses for more information.
{- "events": [
- {
- "direction": "UNDEFINED_DIRECTION",
- "event": {
- "app_event": {
- "composing_event": { }
}
}, - "id": "string",
- "conversation_id": "string",
- "contact_id": "string",
- "channel_identity": {
- "app_id": "string",
- "channel": "WHATSAPP",
- "identity": "string"
}, - "accept_time": "2019-08-24T14:15:22Z",
- "processing_mode": "CONVERSATION"
}
], - "next_page_token": "string"
}