Skip to content

List conversations

Request

This operation lists all conversations that are associated with an app and/or a contact. Note that either app_id or contact_id is required in order for the operation to function correctly.

Security
Basic or oAuth2
Path
project_idstringrequired

The unique ID of the project. You can find this on the Sinch Dashboard.

Query
app_idstring

The ID of the app involved in the conversations.

contact_idstring

Resource name (ID) of the contact.

only_activeboolean

Set to true to list only active conversations. Set to false to list only inactive conversations.

page_sizeinteger, (int32)

The maximum number of conversations to fetch. Defaults to 10 and the maximum is 20.

page_tokenstring

Next page token previously returned if any.

active_channelstring(Channel Identifier)

Only fetch conversations from the active_channel

Enum ValueDescription
SMS

The SMS channel.

RCS

The RCS channel.

WHATSAPP

The WhatsApp channel.

MMS

The MMS channel.

KAKAOTALK

The KakaoTalk channel.

KAKAOTALKCHAT

The KakaoTalk chat channel (used primarily in ConsultationTalk).

VIBERBM

The Viber Business Messages channel.

LINE

The LINE channel.

INSTAGRAM

The Instagram channel.

MESSENGER

The Facebook Messenger channel.

WECHAT

The WeChat channel.

TELEGRAM

The Telegram channel.

APPLEBC

The Apple Messages for Business channel.

Example:active_channel=WHATSAPP
curl -i -X GET \
  -u '<username>:<password>' \
  'https://us.conversation.api.sinch.com/v1/projects/{project_id}/conversations?app_id=string&contact_id=string&only_active=true&page_size=0&page_token=string&active_channel=WHATSAPP'

Responses

A successful response.

Bodyapplication/json
conversationsArray of objects(Conversation)read-only

List of conversations matching the search query.

next_page_tokenstring

Token that should be included in the next request to fetch the next page.

total_sizeinteger, (int32)
Response
{ "conversations": [ { … } ], "next_page_token": "string", "total_size": 0 }