Skip to content

Overview

Send and receive messages globally over SMS, RCS, WhatsApp, Viber Business, Facebook messenger and other popular channels using the Sinch Conversation API.

Note:

If you would like help setting up your Conversation API solution, and want to quickly get started sending and receiving messages, review our Getting Started guide.

The Conversation API endpoint uses built-in transcoding to give you the power of conversation across all supported channels and, if required, full control over channel specific features.

Download the OpenAPI specification here.

Authentication

OAuth2.0 authentication

Achieve more secure API authentication with OAuth 2.0 access tokens.

Access tokens are short lived. Typically, they will only last one hour. This is done to keep your data (and ours) safer.

In exchanging credentials, you'll get a long string called an access token. This access token will serve as your bearer token in the authorization header of API calls.

Find your credentials in the Sinch Build Dashboard.

There are two pieces of information needed to obtain an access token: the key ID and key secret corresponding to your project ID.

To get an access token, do the following:

  1. Login to the Sinch Build Dashboard to get your access keys.

  2. Click on Create Access Key and when prompted, enter a display name, then click Confirm.

    Does it have to be a new key?

    Not at all. If you have existing credentials saved, feel free to use them.

  3. A Key ID and Key Secret will display. Save the project ID, key ID, and key secret someplace safe.

    Important!

    The key secret is only viewable at the time of initial creation.

    If you accidentally misplace they key secret, no worries! Create a new key.

  4. Using the following curl command, get your access token using the key ID and key secret.

    curl https://auth.sinch.com/oauth2/token \
    -d grant_type=client_credentials \
    -u YOUR_Key_ID:YOUR_Key_Secret
  5. You'll see your new access token in the response. Now you're ready to use this token on calls to the API. The access token will be useable for one hour.

Short lived

The access token is meant to be short lived for enhanced security. Generate one as often as it is necessary.

Basic authentication

HTTP Basic authentication works on all Sinch REST APIs. Basic auth is often the preferred option for testing because it is simple and easy to use.

Important!

Basic authentication is intended for test purposes only, and should only be used for experimenting with APIs and building prototypes. API calls using basic authentication are heavily rate limited, and these limits may change at any time without warning. Production systems should use OAuth access tokens instead.

Basic authentication is sent in the authorization header with each call.

No matter the programming language, there are three main components for successful basic authentication in a request:

  • The designation of authorization type, which is basic
  • The username, which in Sinch's case is YOUR_Key_ID, corresponding to your project
  • The password, which is YOUR_Key_Secret, again, corresponding to the project

You can view and manage your API credentials here.

Need help?

Check out this article for a walk-through on finding your key and secret.

To use basic auth in an API call, do the following:

  1. First, create a new access key in the Sinch Build Dashboard by clicking Create Access Key.

  2. Copy your project ID, key ID, and key secret.

    Important!

    Keep your key secret somewhere safe as it is only viewable upon initial project creation. The project ID and key ID are always readily available in the Sinch Build Dashboard. If you misplace your key secret, simply generate a new key!

  3. Use your key ID as the username (sometimes called the client_id) and your key secret as the password (can be referred to as the client_secret) in every call made to a Sinch API.

Base URL

The following URLs can be used when making calls to the Conversation API (or Template Management API, which is used in coordination with the Conversation API). The Conversation Batch API endpoints, which are available for beta testing, are also listed.

ServerURL
Conversation API (US Production)https://us.conversation.api.sinch.com
Conversation API (EU Production)https://eu.conversation.api.sinch.com
Conversation API (BR Production)https://br.conversation.api.sinch.com
Template Management API (US Production)https://us.template.api.sinch.com
Template Management API (EU Production)https://eu.template.api.sinch.com
Template Management API (BR Production)https://br.template.api.sinch.com
Conversation Batch API (Beta) (US)https://us.conversationbatch.api.sinch.com
Conversation Batch API (Beta) (EU)https://eu.conversationbatch.api.sinch.com
Conversation Batch API (Beta) (BR)https://br.conversationbatch.api.sinch.com

Note that, when making a call to the Conversation API or Template Management API, you must target the regional server that corresponds to the region in which you created your Conversation API app.

Postman collection

Sinch offers a Postman collection for easy setup and testing during development. For ease of use, follow the next link Postman Collection, into a Firefox browser or, use the Import option in Postman.

After importing the collection, fill in the following variables:

VariableValue
PROJECTYour PROJECT ID
APPYour app ID
CLIENT_IDYour CLIENT_ID
CLIENT_SECRETYour client secret

For testing purposes, fill the WEBHOOK_URL by visiting https://webhook.site/ and use the generated link - the one under the Your unique URL label.

Caution:

The https://webhook.site/ URL given above should only be used for testing purposes. Using the Conversation API can generate high volumes of callbacks, which can easily exceed the TPS limits of certain webhook services. Additionally, sensitive information may be included in the callback, including message content and contact information. Ensure that you use a scalable and secure callback/webhook processor after your initial testing is complete.

Values for other variables can be obtained by calling corresponding requests:

  • CONTACT - ID of contact created by calling Create contact request.
  • WEBHOOK_ID - ID of webhook created by calling Create webhook request.
  • CONVERSATION - a Conversation is created automatically when sending a new message. For example, with a Text Message request, send a message, then call List conversations to get the ID of the conversation for this variable.

Errors

When requests are erroneous, the Sinch Conversation API will respond with standard HTTP status codes, such as 4xx for client errors. All responses include a JSON body of the form:

{
  "error": {
    "code": 401,
    "message": "Request had invalid credentials.",
    "status": "UNAUTHENTICATED",
    "details": [{
      "@type": "type.googleapis.com/google.rpc.RetryInfo",
      ...
    }]
  }
}

The table below describes the fields of the error object:

NameDescriptionJSON Type
CodeHTTP status codeNumber
MessageA developer-facing error messageString
StatusResponse status nameString
DetailsList of detailed error descriptionsArray of objects

Common error responses

StatusDescription
400Malformed request. For example, the message body of a request made to the message/send endpoint does not contain the app_id field, which is required. Alternatively, this error may be triggered if required fields are included, but populated incorrectly. For example, the app_id field is included in a message/send request, but the value is not a ULID (and, therefore, fails a basic form check).
401Incorrect credentials. For example, you may get this error if you provide incorrect client_id and client_secret values when using basic authentication. You may also get this error if you provide a bearer token generated using incorrect basic authentication credentials or if you provide an expired token (generated using the OAuth2.0 client credentials flow).
403Correct credentials but you don't have access to the requested resource. This typically occurs paired with an UNAUTHORIZED message when the provided client_id and client_secret are not associated with the project_id required for most Conversation API calls. Starting February 19, 2025, this error may also be paired with a BILLING_CREDIT_LIMIT_BREACHED message. If paired with BILLING_CREDIT_LIMIT_BREACHED message, the project is blocked due to credit reasons. In this case, check your project's billing configuration and balance.
404The resources provided for the call are insufficient to complete the call, or the server cannot locate the required resources. For example, if the app_id provided in the call doesn't match a Conversation API app contained within the corresponding project, or the region in which the app was created does not match the regional server targeted by the call. Additionally, this error occurs if you provide designate Conversation API endpoint that doesn't actually exist.
429See Rate Limits.
500Something went wrong on our end, try again with exponential back-off
501Something went wrong on our end, try again with exponential back-off
503Something went wrong on our end, try again with exponential back-off

Rate Limits

The Conversation API has two kinds of rate limits that may result in status 429 Too Many Requests:

  • Conversation API apps have a maximum MT ingress queue size of 500000 messages, which are drained towards the channel at a rate of 20 messages per second by default (this rate may be higher if the channel has been purchased with a higher capacity).
  • Projects are limited to 800 requests per second across all apps and most endpoints. Making over 800 requests per second over an extended period of time may saturate the app-specific ingress queue, resulting in rate limiting.

In addition to project and app level limitations, each channel also has rate limitations that can affect performance, and may return a 429 Too Many Requests error. In some cases (for example, the SMS channel), these rate limits can be adjusted. In others (for example, the Instagram channel), they can't be adjusted. For more information about raising project, app, or channel rate limits, contact your Sinch account manager.

Download OpenAPI description
Overview
support at sinch

support@sinch.com

License

MIT

Languages
Servers
The {region} variable must be set to us, eu, or br, and it must match the region in which you created your Conversation API app.

https://{region}.conversation.api.sinch.com/

Messages

To start sending messages you must have a Conversation API app. The app holds information about the channel credentials and registered webhooks to which the API delivers callbacks such as message delivery receipts and contact messages. If you don't already have an app please follow the instructions in the getting started guide available in the Sinch Dashboard to create one.

Operations

App

Apps are created and configured through the Sinch Dashboard, are tied to the API user and come with a set of channel credentials for each underlying connected channel. The app has a list of conversations between itself and different contacts which share the same project.

Webhooks, which the app is attached to, defines the destination for various events coming from the Conversation API. An app has the following configurable properties:

FieldDescription
Display nameThe name visible in the Sinch Dashboard.
Conversation metadata reportSpecifies the amount of conversationmetadata that's returned as part of each callback.
Retention PolicyThe retention policy specifies how long messages, sent to or from an app, are stored by the Conversation API.
Operations

Request

Get a list of all apps in the specified project.

Security
Basic or oAuth2
Path
project_idstringrequired

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

curl -i -X GET \
  -u <username>:<password> \
  'https://us.conversation.api.sinch.com/v1/projects/{project_id}/apps'

Responses

A successful response.

Bodyapplication/json
appsArray of objects(Conversation API app)

List of apps belonging to a specific project ID.

Response
application/json
{ "apps": [ {} ] }

Request

You can create a new Conversation API app using the API. You can create an app for one or more channels at once. The ID of the app is generated at creation and will be returned in the response.

Security
Basic or oAuth2
Path
project_idstringrequired

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

Bodyapplication/jsonrequired

The app to create.

display_namestringrequired

The display name for the app.

Example: "Sinch Conversation API Demo App 001"
channel_credentialsArray of Static Bearer Authentication (object) or Static Token Authentication (object) or MMS (object) or KakaoTalk (object) or Telegram (object) or LINE (object) or LINE Enterprise (object) or WeChat (object) or Instagram (object) or Apple Business Chat (object) or KakaoTalkChat (object)(ConversationChannelCredentials)required

An array of channel credentials. The order of the credentials defines the app channel priority.

One of:

Enables access to the underlying messaging channel.

channel_credentials[].​static_bearerobject(Static Bearer Credentials)

This object is required for channels which use a bearer-type of credential for authentication.

channel_credentials[].​callback_secretstring(password)

The secret used to verify the channel callbacks for channels which support callback verification. The callback verification is not needed for Sinch-managed channels because the callbacks are not leaving Sinch internal networks. Max length is 256 characters. Note: leaving channel_callback_secret empty for channels with callback verification will disable the verification.

channel_credentials[].​channelstring(Channel Identifier)

The identifier of the channel you want to include. Must be one of the enum values.

Enum ValueDescription
WHATSAPP

The WhatsApp channel.

RCS

The RCS channel.

SMS

The SMS channel.

MESSENGER

The Facebook Messenger channel.

VIBERBM

The Viber Business Messages channel.

MMS

The MMS channel.

INSTAGRAM

The Instagram channel.

TELEGRAM

The Telegram channel.

KAKAOTALK

The KakaoTalk channel.

KAKAOTALKCHAT

The KakaoTalk chat channel (used primarily in ConsultationTalk).

Example: "WHATSAPP"
channel_credentials[].​credential_ordinal_numberinteger[ 0 .. 255 ]

The ordinal number of the credential. This field is used when the application supports multiple credential integrations per channel. Currently, this is only applicable to the LINE channel. For other channels, this value will always be set to 0. In the case in which there are multiple credential integrations per channel on a single app, this field must have a unique value for each multi-credential channel entry.

Default 0
conversation_metadata_report_viewstring(ConversationMetadataReportView)

NONE - Omit metadata. FULL - Include all metadata assigned to the conversation.

Default "NONE"
Enum ValueDescription
NONE

Omit metadata.

FULL

Include all metadata assigned to the conversation.

retention_policyobject(Retention policy for messages and conversations)

The retention policy configured for the app. For more information about retention policies, see Retention Policy.

dispatch_retention_policyobject(DispatchRetentionPolicy)

The retention policy configured for messages in Dispatch Mode. Currently only MESSAGE_EXPIRE_POLICY is available. For more information about retention policies, see Retention Policy.

processing_modestring(ProcessingMode)

Whether or not Conversation API should store contacts and conversations for the app. For more information, see Processing Modes.

Default "DISPATCH"
Enum ValueDescription
CONVERSATION

Creates contacts and conversations automatically when a message is sent or received and there's no existing contact or active conversation.

DISPATCH

The default Processing Mode. Does not associate messages with contacts and conversations. This processing mode is mostly intended for unidirectional high volume SMS use cases. The lack of contacts and conversations limits some API features as related data won't be queryable in the Contact and Conversation APIs.

smart_conversationobject(SmartConversation)

This object is required for apps that subscribe to Smart Conversations features.

callback_settingsobject(CallbackSettings)

This object contains additional settings related to callback processing.

message_retry_settingsobject(MessageRetrySettings)

This object contains settings related to message retry mechanism.

delivery_report_based_fallbackobject(DeliveryReportBasedFallback)

This object contains additional settings related to delivery report based fallback. Note that this paid functionality is available for open beta testing.

curl -i -X POST \
  -u <username>:<password> \
  'https://us.conversation.api.sinch.com/v1/projects/{project_id}/apps' \
  -H 'Content-Type: application/json' \
  -d '{
    "channel_credentials": [
      {
        "channel": "MESSENGER",
        "static_token": {
          "token": "{Facebook_Token}"
        }
      }
    ],
    "display_name": "Demo Facebook App"
  }'

Responses

A successful response.

Bodyapplication/json
channel_credentialsArray of Static Bearer Authentication (object) or Static Token Authentication (object) or MMS (object) or KakaoTalk (object) or Telegram (object) or LINE (object) or LINE Enterprise (object) or WeChat (object) or Instagram (object) or Apple Business Chat (object) or KakaoTalkChat (object)(ConversationChannelCredentials)
conversation_metadata_report_viewstring(ConversationMetadataReportView)

NONE - Omit metadata. FULL - Include all metadata assigned to the conversation.

Default "NONE"
Enum ValueDescription
NONE

Omit metadata.

FULL

Include all metadata assigned to the conversation.

display_namestring

The display name for the app.

Example: "Sinch Conversation API Demo App 001"
idstring

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

Example: "{APP_ID}"
rate_limitsobject(RateLimits)
retention_policyobject(Retention policy for messages and conversations)

The retention policy configured for the app. For more information about retention policies, see Retention Policy.

dispatch_retention_policyobject(DispatchRetentionPolicy)

The retention policy configured for messages in Dispatch Mode. Currently only MESSAGE_EXPIRE_POLICY is available. For more information about retention policies, see Retention Policy.

processing_modestring(ProcessingMode)

Whether or not Conversation API should store contacts and conversations for the app. For more information, see Processing Modes.

Default "DISPATCH"
Enum ValueDescription
CONVERSATION

Creates contacts and conversations automatically when a message is sent or received and there's no existing contact or active conversation.

DISPATCH

The default Processing Mode. Does not associate messages with contacts and conversations. This processing mode is mostly intended for unidirectional high volume SMS use cases. The lack of contacts and conversations limits some API features as related data won't be queryable in the Contact and Conversation APIs.

smart_conversationobject(SmartConversation)

This object is required for apps that subscribe to Smart Conversations features.

queue_statsobject(QueueStats)
callback_settingsobject(CallbackSettings)

This object contains additional settings related to callback processing.

delivery_report_based_fallbackobject(DeliveryReportBasedFallback)

This object contains additional settings related to delivery report based fallback. Note that this paid functionality is available for open beta testing.

message_retry_settingsobject(MessageRetrySettings)

This object contains settings related to message retry mechanism.

Response
application/json
{ "channel_credentials": [ {} ], "conversation_metadata_report_view": "NONE", "display_name": "Sinch Conversation API Demo App 001", "id": "{APP_ID}", "rate_limits": { "inbound": 0, "outbound": 0, "webhooks": 0 }, "retention_policy": { "retention_type": "MESSAGE_EXPIRE_POLICY", "ttl_days": 180 }, "dispatch_retention_policy": { "retention_type": "MESSAGE_EXPIRE_POLICY", "ttl_days": 0 }, "processing_mode": "CONVERSATION", "smart_conversation": { "enabled": false }, "queue_stats": { "outbound_size": 0, "outbound_limit": 0 }, "callback_settings": { "secret_for_overridden_callback_urls": "pa$$word" }, "delivery_report_based_fallback": { "enabled": false, "delivery_report_waiting_time": 0 }, "message_retry_settings": { "retry_duration": 3600 } }

Request

Returns a particular app as specified by the App ID.

Security
Basic or oAuth2
Path
project_idstringrequired

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

app_idstringrequired

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

curl -i -X GET \
  -u <username>:<password> \
  'https://us.conversation.api.sinch.com/v1/projects/{project_id}/apps/{app_id}'

Responses

A successful response.

Bodyapplication/json
channel_credentialsArray of Static Bearer Authentication (object) or Static Token Authentication (object) or MMS (object) or KakaoTalk (object) or Telegram (object) or LINE (object) or LINE Enterprise (object) or WeChat (object) or Instagram (object) or Apple Business Chat (object) or KakaoTalkChat (object)(ConversationChannelCredentials)
conversation_metadata_report_viewstring(ConversationMetadataReportView)

NONE - Omit metadata. FULL - Include all metadata assigned to the conversation.

Default "NONE"
Enum ValueDescription
NONE

Omit metadata.

FULL

Include all metadata assigned to the conversation.

display_namestring

The display name for the app.

Example: "Sinch Conversation API Demo App 001"
idstring

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

Example: "{APP_ID}"
rate_limitsobject(RateLimits)
retention_policyobject(Retention policy for messages and conversations)

The retention policy configured for the app. For more information about retention policies, see Retention Policy.

dispatch_retention_policyobject(DispatchRetentionPolicy)

The retention policy configured for messages in Dispatch Mode. Currently only MESSAGE_EXPIRE_POLICY is available. For more information about retention policies, see Retention Policy.

processing_modestring(ProcessingMode)

Whether or not Conversation API should store contacts and conversations for the app. For more information, see Processing Modes.

Default "DISPATCH"
Enum ValueDescription
CONVERSATION

Creates contacts and conversations automatically when a message is sent or received and there's no existing contact or active conversation.

DISPATCH

The default Processing Mode. Does not associate messages with contacts and conversations. This processing mode is mostly intended for unidirectional high volume SMS use cases. The lack of contacts and conversations limits some API features as related data won't be queryable in the Contact and Conversation APIs.

smart_conversationobject(SmartConversation)

This object is required for apps that subscribe to Smart Conversations features.

queue_statsobject(QueueStats)
callback_settingsobject(CallbackSettings)

This object contains additional settings related to callback processing.

delivery_report_based_fallbackobject(DeliveryReportBasedFallback)

This object contains additional settings related to delivery report based fallback. Note that this paid functionality is available for open beta testing.

message_retry_settingsobject(MessageRetrySettings)

This object contains settings related to message retry mechanism.

Response
application/json
{ "channel_credentials": [ {} ], "conversation_metadata_report_view": "NONE", "display_name": "Sinch Conversation API Demo App 001", "id": "{APP_ID}", "rate_limits": { "inbound": 0, "outbound": 0, "webhooks": 0 }, "retention_policy": { "retention_type": "MESSAGE_EXPIRE_POLICY", "ttl_days": 180 }, "dispatch_retention_policy": { "retention_type": "MESSAGE_EXPIRE_POLICY", "ttl_days": 0 }, "processing_mode": "CONVERSATION", "smart_conversation": { "enabled": false }, "queue_stats": { "outbound_size": 0, "outbound_limit": 0 }, "callback_settings": { "secret_for_overridden_callback_urls": "pa$$word" }, "delivery_report_based_fallback": { "enabled": false, "delivery_report_waiting_time": 0 }, "message_retry_settings": { "retry_duration": 3600 } }

Request

Deletes the app specified by the App ID. Note that this operation will not delete contacts (which are stored at the project level) nor any channel-specific resources (for example, WhatsApp Sender Identities will not be deleted).

Security
Basic or oAuth2
Path
project_idstringrequired

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

app_idstringrequired

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

curl -i -X DELETE \
  -u <username>:<password> \
  'https://us.conversation.api.sinch.com/v1/projects/{project_id}/apps/{app_id}'

Responses

A successful response.

Response
No content

Request

Updates a particular app as specified by the App ID. Note that this is a PATCH operation, so any specified field values will replace existing values. Therefore, if you'd like to add additional configurations to an existing Conversation API app, ensure that you include existing values AND new values in the call. For example, if you'd like to add new channel_credentials, you can get your existing Conversation API app, extract the existing channel_credentials list, append your new configuration to that list, and include the updated channel_credentials list in this update call.

Security
Basic or oAuth2
Path
project_idstringrequired

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

app_idstringrequired

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

Query
update_maskArray of strings

The set of field mask paths.

Bodyapplication/jsonrequired

The updated app.

channel_credentialsArray of Static Bearer Authentication (object) or Static Token Authentication (object) or MMS (object) or KakaoTalk (object) or Telegram (object) or LINE (object) or LINE Enterprise (object) or WeChat (object) or Instagram (object) or Apple Business Chat (object) or KakaoTalkChat (object)(ConversationChannelCredentials)

An array of channel credentials. The order of the credentials defines the app channel priority.

conversation_metadata_report_viewstring(ConversationMetadataReportView)

NONE - Omit metadata. FULL - Include all metadata assigned to the conversation.

Default "NONE"
Enum ValueDescription
NONE

Omit metadata.

FULL

Include all metadata assigned to the conversation.

display_namestring

The display name for the app.

Example: "Sinch Conversation API Demo App 001"
retention_policyobject(Retention policy for messages and conversations)

The retention policy configured for the app. For more information about retention policies, see Retention Policy.

dispatch_retention_policyobject(DispatchRetentionPolicy)

The retention policy configured for messages in Dispatch Mode. Currently only MESSAGE_EXPIRE_POLICY is available. For more information about retention policies, see Retention Policy.

processing_modestring(ProcessingMode)

Whether or not Conversation API should store contacts and conversations for the app. For more information, see Processing Modes.

Default "DISPATCH"
Enum ValueDescription
CONVERSATION

Creates contacts and conversations automatically when a message is sent or received and there's no existing contact or active conversation.

DISPATCH

The default Processing Mode. Does not associate messages with contacts and conversations. This processing mode is mostly intended for unidirectional high volume SMS use cases. The lack of contacts and conversations limits some API features as related data won't be queryable in the Contact and Conversation APIs.

smart_conversationobject(SmartConversation)

This object is required for apps that subscribe to Smart Conversations features.

callback_settingsobject(CallbackSettings)

This object contains additional settings related to callback processing.

message_retry_settingsobject(MessageRetrySettings)

This object contains settings related to message retry mechanism.

delivery_report_based_fallbackobject(DeliveryReportBasedFallback)

This object contains additional settings related to delivery report based fallback. Note that this paid functionality is available for open beta testing.

curl -i -X PATCH \
  -u <username>:<password> \
  'https://us.conversation.api.sinch.com/v1/projects/{project_id}/apps/{app_id}?update_mask=string' \
  -H 'Content-Type: application/json' \
  -d '{
    "channel_credentials": [
      {
        "channel": "WHATSAPP",
        "static_bearer": {
          "claimed_identity": "{{WhatsApp_Sender_Id}}",
          "token": "{{WhatsApp_Bearer_Token}}"
        },
        "callback_secret": "{{Callback_Secret_1}}"
      },
      {
        "channel": "MESSENGER",
        "static_token": {
          "token": "{{Facebook_Token}}"
        },
        "callback_secret": "{{Callback_Secret_2}}"
      },
      {
        "channel": "SMS",
        "static_bearer": {
          "claimed_identity": "{{Service_Plan_Id}}",
          "token": "{{API_Token}}"
        }
      }
    ],
    "display_name": "New App Display Name"
  }'

Responses

A successful response.

Bodyapplication/json
channel_credentialsArray of Static Bearer Authentication (object) or Static Token Authentication (object) or MMS (object) or KakaoTalk (object) or Telegram (object) or LINE (object) or LINE Enterprise (object) or WeChat (object) or Instagram (object) or Apple Business Chat (object) or KakaoTalkChat (object)(ConversationChannelCredentials)
conversation_metadata_report_viewstring(ConversationMetadataReportView)

NONE - Omit metadata. FULL - Include all metadata assigned to the conversation.

Default "NONE"
Enum ValueDescription
NONE

Omit metadata.

FULL

Include all metadata assigned to the conversation.

display_namestring

The display name for the app.

Example: "Sinch Conversation API Demo App 001"
idstring

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

Example: "{APP_ID}"
rate_limitsobject(RateLimits)
retention_policyobject(Retention policy for messages and conversations)

The retention policy configured for the app. For more information about retention policies, see Retention Policy.

dispatch_retention_policyobject(DispatchRetentionPolicy)

The retention policy configured for messages in Dispatch Mode. Currently only MESSAGE_EXPIRE_POLICY is available. For more information about retention policies, see Retention Policy.

processing_modestring(ProcessingMode)

Whether or not Conversation API should store contacts and conversations for the app. For more information, see Processing Modes.

Default "DISPATCH"
Enum ValueDescription
CONVERSATION

Creates contacts and conversations automatically when a message is sent or received and there's no existing contact or active conversation.

DISPATCH

The default Processing Mode. Does not associate messages with contacts and conversations. This processing mode is mostly intended for unidirectional high volume SMS use cases. The lack of contacts and conversations limits some API features as related data won't be queryable in the Contact and Conversation APIs.

smart_conversationobject(SmartConversation)

This object is required for apps that subscribe to Smart Conversations features.

queue_statsobject(QueueStats)
callback_settingsobject(CallbackSettings)

This object contains additional settings related to callback processing.

delivery_report_based_fallbackobject(DeliveryReportBasedFallback)

This object contains additional settings related to delivery report based fallback. Note that this paid functionality is available for open beta testing.

message_retry_settingsobject(MessageRetrySettings)

This object contains settings related to message retry mechanism.

Response
application/json
{ "channel_credentials": [ {} ], "conversation_metadata_report_view": "NONE", "display_name": "Sinch Conversation API Demo App 001", "id": "{APP_ID}", "rate_limits": { "inbound": 0, "outbound": 0, "webhooks": 0 }, "retention_policy": { "retention_type": "MESSAGE_EXPIRE_POLICY", "ttl_days": 180 }, "dispatch_retention_policy": { "retention_type": "MESSAGE_EXPIRE_POLICY", "ttl_days": 0 }, "processing_mode": "CONVERSATION", "smart_conversation": { "enabled": false }, "queue_stats": { "outbound_size": 0, "outbound_limit": 0 }, "callback_settings": { "secret_for_overridden_callback_urls": "pa$$word" }, "delivery_report_based_fallback": { "enabled": false, "delivery_report_waiting_time": 0 }, "message_retry_settings": { "retry_duration": 3600 } }

Contact

A contact is a collection that groups together underlying connected channel recipient identities. It's tied to a specific project and is therefore considered public to all apps sharing the same project. Most contact creation and maintenance is handled by the Conversation API's automatic contact management processes. However, you can also use API calls to manually manage your contacts.

A contact has the following configurable properties:

FieldDescription
Channel identitiesList of channel identities specifying how the contact is identified on underlying channels
Channel prioritySpecifies the channel priority order used when sending messages to this contact. This can be overridden by message specific channel priority order.
Display nameOptional display name used in chat windows and other UIs
EmailOptional Email of the contact
External idOptional identifier of the contact in external systems
MetadataOptional metadata associated with the contact.
Operations

Conversation

Endpoints for working with the conversation log.

Operations

Events

Endpoint for sending events.

Operations

Transcoding

Endpoint for transcoding generic message format to channel-specific one.

Operations

Capability

A capability query checks the options available for reaching the contact on the channels on which it has a channel identity.

Capability queries can only be executed for contacts that already exist in a project and app. For executing the request, either the contact ID or the channel recipient identities of the contact are required.

The request is executed asynchronously, therefore the service responds immediately. The result of the capability query is sent to the registered webhook for the CAPABILITY trigger.

Operations
Operations
Operations