Sinch
App · 14 actions
Send messages and manage contacts and conversations in the Sinch Conversation API.
Actions
| Action | What it does |
|---|---|
| Create contact | Create contact. |
| Create conversation | Create conversation. |
| Delete contact | Delete contact. |
| Delete conversation | Delete conversation. |
| Get app | Get app. |
| Get contact | Get contact. |
| Get conversation | Get conversation. |
| Get message | Get message. |
| List apps | List apps. |
| List contacts | List contacts. |
| List conversations | List conversations. |
| List messages | List messages. |
| Send text message | Send text message. |
| Update contact | Update contact. |
Create contact
Create contact.
Inputs
- Identities
identitieslistRequired - Each entry contains a channel and the contact’s identity on it.
- Language
languagetextRequired - Language used for the contact.One of:
AF,SQ,AR,AZ,BN,BG,CA,ZH,ZH_CN(Zh cn),ZH_HK(Zh hk), and 60 more. - Display name
display_nametext - Name shown for the contact.
- Email
emailtext - Email address.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {
"display_name": "example",
"id": "example"
}
}Create conversation
Create conversation.
Inputs
- App
app_idtextRequired - Choose the app or enter its ID.
- Contact ID
contact_idtextRequired - Contact ID from List contacts.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {
"id": "example"
}
}Delete contact
Delete contact.
Inputs
- Contact ID
contact_idtextRequired - Contact ID to delete.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {}
}Delete conversation
Delete conversation.
Inputs
- Conversation ID
conversation_idtextRequired - Conversation ID to delete.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {}
}Get app
Get app.
Inputs
- App
app_idtextRequired - Choose the app or enter its ID.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {
"display_name": "example",
"id": "example"
}
}Get contact
Get contact.
Inputs
- Contact ID
contact_idtextRequired - Contact ID from List contacts.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {
"display_name": "example",
"id": "example"
}
}Get conversation
Get conversation.
Inputs
- Conversation ID
conversation_idtextRequired - Conversation ID from List conversations.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {
"id": "example"
}
}Get message
Get message.
Inputs
- Message ID
message_idtextRequired - Message ID from List messages.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {
"id": "example"
}
}List apps
List apps.
Inputs
None.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {
"apps": [
{
"display_name": "example",
"id": "example"
}
]
}
}List contacts
List contacts.
Inputs
- Page size
page_sizenumber - Maximum records per page.From 1 to 100.
- Page token
page_tokentext - Next page token from the preceding response.
- External ID
external_idtext - Find a contact by your external identifier.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {
"contacts": [
{
"display_name": "example",
"id": "example"
}
],
"next_page_token": "example"
}
}List conversations
List conversations.
Inputs
- Page size
page_sizenumber - Maximum records per page.From 1 to 100.
- Page token
page_tokentext - Next page token from the preceding response.
- App
app_idtext - Choose an app or use its ID.
- Contact ID
contact_idtext - Filter by contact ID.
- Only active
only_activetrue/false - Return only active conversations.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {
"conversations": [
{
"id": "example"
}
],
"next_page_token": "example",
"total_size": 1
}
}List messages
List messages.
Inputs
- Page size
page_sizenumber - Maximum records per page.From 1 to 100.
- Page token
page_tokentext - Next page token from the preceding response.
- App
app_idtext - Choose an app or use its ID.
- Conversation ID
conversation_idtext - Filter by conversation ID.
- Contact ID
contact_idtext - Filter by contact ID.
- Direction
directiontext - Filter by message direction.One of:
TO_APP(To app),TO_CONTACT(To contact). - Start time
start_timedate and time - Earliest message time.
- End time
end_timedate and time - Latest message time.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {
"messages": [
{
"id": "example"
}
],
"next_page_token": "example"
}
}Send text message
Send text message.
Inputs
- App
app_idtextRequired - Choose the app to send the message.
- Contact ID
contact_idtextRequired - ID of the recipient’s Sinch contact.
- Text
texttextRequired - Text of the message.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {
"accepted_time": "example",
"message_id": "example"
}
}Update contact
Update contact.
Inputs
- Contact ID
contact_idtextRequired - Contact ID from List contacts.
- Display name
display_nametextRequired - New display name.
Outputs
dataobject- The response from Sinch.
Example output
{
"data": {
"display_name": "example",
"id": "example"
}
}