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:
Field | Description |
---|---|
Display name | The name visible in the Sinch Dashboard. |
Conversation metadata report | Specifies the amount of conversationmetadata that's returned as part of each callback. |
Retention Policy | The retention policy specifies how long messages, sent to or from an app, are stored by the Conversation API. |
Get a list of all apps in the specified project.
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
A successful response.
Array of objects (Conversation API app) List of apps belonging to a specific project ID. | |||||||||||||||||||||||||||||||||
Array
|
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.
{- "apps": [
- {
- "channel_credentials": [
- {
- "static_bearer": {
- "claimed_identity": "string",
- "token": "pa$$word"
}, - "callback_secret": "pa$$word",
- "channel": "WHATSAPP",
- "state": {
- "status": "PENDING",
- "description": "string"
}, - "channel_known_id": "string",
- "credential_ordinal_number": 0
}
], - "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
}
}
]
}
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.
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
The app to create.
display_name required | string The display name for the app. | ||||||
required | Array 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) (ConversationChannelCredentialRequest) An array of channel credentials. The order of the credentials defines the app channel priority. | ||||||
conversation_metadata_report_view | string (ConversationMetadataReportView) Default: "NONE" NONE - Omit metadata. FULL - Include all metadata assigned to the conversation. | ||||||
object (Retention policy for messages and conversations) The retention policy configured for the app. For more information about retention policies, see Retention Policy. | |||||||
object (DispatchRetentionPolicy) The retention policy configured for messages in Dispatch Mode. Currently only | |||||||
processing_mode | string (ProcessingMode) Default: "CONVERSATION" Whether or not Conversation API should store contacts and conversations for the app. For more information, see Processing Modes.
| ||||||
object (SmartConversation) This object is required for apps that subscribe to Smart Conversations features. Note that this functionality is available for open beta testing. | |||||||
object (CallbackSettings) This object contains additional settings related to callback processing. | |||||||
object (MessageRetrySettings) This object contains settings related to message retry mechanism. | |||||||
object (DeliveryReportBasedFallback) This object contains additional settings related to delivery report based fallback. Note that this paid functionality is available for open beta testing. |
A successful response.
Array 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_view | string (ConversationMetadataReportView) Default: "NONE" NONE - Omit metadata. FULL - Include all metadata assigned to the conversation. | ||||||
display_name | string The display name for the app. | ||||||
id | string The ID of the app. You can find this on the Sinch Dashboard. | ||||||
object (RateLimits) | |||||||
object (Retention policy for messages and conversations) The retention policy configured for the app. For more information about retention policies, see Retention Policy. | |||||||
object (DispatchRetentionPolicy) The retention policy configured for messages in Dispatch Mode. Currently only | |||||||
processing_mode | string (ProcessingMode) Default: "CONVERSATION" Whether or not Conversation API should store contacts and conversations for the app. For more information, see Processing Modes.
| ||||||
object (SmartConversation) This object is required for apps that subscribe to Smart Conversations features. Note that this functionality is available for open beta testing. | |||||||
object (QueueStats) | |||||||
object (CallbackSettings) This object contains additional settings related to callback processing. | |||||||
object (DeliveryReportBasedFallback) This object contains additional settings related to delivery report based fallback. Note that this paid functionality is available for open beta testing. | |||||||
object (MessageRetrySettings) This object contains settings related to message retry mechanism. |
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.
{- "channel_credentials": [
- {
- "channel": "MESSENGER",
- "static_token": {
- "token": "{Facebook_Token}"
}
}
], - "display_name": "Demo Facebook App"
}
{- "channel_credentials": [
- {
- "static_bearer": {
- "claimed_identity": "string",
- "token": "pa$$word"
}, - "callback_secret": "pa$$word",
- "channel": "WHATSAPP",
- "state": {
- "status": "PENDING",
- "description": "string"
}, - "channel_known_id": "string",
- "credential_ordinal_number": 0
}
], - "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
}
}
Returns a particular app as specified by the App ID.
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
app_id required | string The unique ID of the app. You can find this on the Sinch Dashboard. |
A successful response.
Array 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_view | string (ConversationMetadataReportView) Default: "NONE" NONE - Omit metadata. FULL - Include all metadata assigned to the conversation. | ||||||
display_name | string The display name for the app. | ||||||
id | string The ID of the app. You can find this on the Sinch Dashboard. | ||||||
object (RateLimits) | |||||||
object (Retention policy for messages and conversations) The retention policy configured for the app. For more information about retention policies, see Retention Policy. | |||||||
object (DispatchRetentionPolicy) The retention policy configured for messages in Dispatch Mode. Currently only | |||||||
processing_mode | string (ProcessingMode) Default: "CONVERSATION" Whether or not Conversation API should store contacts and conversations for the app. For more information, see Processing Modes.
| ||||||
object (SmartConversation) This object is required for apps that subscribe to Smart Conversations features. Note that this functionality is available for open beta testing. | |||||||
object (QueueStats) | |||||||
object (CallbackSettings) This object contains additional settings related to callback processing. | |||||||
object (DeliveryReportBasedFallback) This object contains additional settings related to delivery report based fallback. Note that this paid functionality is available for open beta testing. | |||||||
object (MessageRetrySettings) This object contains settings related to message retry mechanism. |
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.
{- "channel_credentials": [
- {
- "static_bearer": {
- "claimed_identity": "string",
- "token": "pa$$word"
}, - "callback_secret": "pa$$word",
- "channel": "WHATSAPP",
- "state": {
- "status": "PENDING",
- "description": "string"
}, - "channel_known_id": "string",
- "credential_ordinal_number": 0
}
], - "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
}
}
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).
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
app_id required | string The unique ID of the app. 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.
{- "code": 400,
- "message": "Malformed request",
- "status": "INVALID_REQUEST",
- "details": [ ]
}
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.
project_id required | string The unique ID of the project. You can find this on the Sinch Dashboard. |
app_id required | string The unique ID of the app. You can find this on the Sinch Dashboard. |
The updated app.
Array 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) (ConversationChannelCredentialRequest) An array of channel credentials. The order of the credentials defines the app channel priority. | |||||||
conversation_metadata_report_view | string (ConversationMetadataReportView) Default: "NONE" NONE - Omit metadata. FULL - Include all metadata assigned to the conversation. | ||||||
display_name | string The display name for the app. | ||||||
object (Retention policy for messages and conversations) The retention policy configured for the app. For more information about retention policies, see Retention Policy. | |||||||
object (DispatchRetentionPolicy) The retention policy configured for messages in Dispatch Mode. Currently only | |||||||
processing_mode | string (ProcessingMode) Default: "CONVERSATION" Whether or not Conversation API should store contacts and conversations for the app. For more information, see Processing Modes.
| ||||||
object (SmartConversation) This object is required for apps that subscribe to Smart Conversations features. Note that this functionality is available for open beta testing. | |||||||
object (CallbackSettings) This object contains additional settings related to callback processing. | |||||||
object (MessageRetrySettings) This object contains settings related to message retry mechanism. | |||||||
object (DeliveryReportBasedFallback) This object contains additional settings related to delivery report based fallback. Note that this paid functionality is available for open beta testing. |
A successful response.
Array 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_view | string (ConversationMetadataReportView) Default: "NONE" NONE - Omit metadata. FULL - Include all metadata assigned to the conversation. | ||||||
display_name | string The display name for the app. | ||||||
id | string The ID of the app. You can find this on the Sinch Dashboard. | ||||||
object (RateLimits) | |||||||
object (Retention policy for messages and conversations) The retention policy configured for the app. For more information about retention policies, see Retention Policy. | |||||||
object (DispatchRetentionPolicy) The retention policy configured for messages in Dispatch Mode. Currently only | |||||||
processing_mode | string (ProcessingMode) Default: "CONVERSATION" Whether or not Conversation API should store contacts and conversations for the app. For more information, see Processing Modes.
| ||||||
object (SmartConversation) This object is required for apps that subscribe to Smart Conversations features. Note that this functionality is available for open beta testing. | |||||||
object (QueueStats) | |||||||
object (CallbackSettings) This object contains additional settings related to callback processing. | |||||||
object (DeliveryReportBasedFallback) This object contains additional settings related to delivery report based fallback. Note that this paid functionality is available for open beta testing. | |||||||
object (MessageRetrySettings) This object contains settings related to message retry mechanism. |
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.
{- "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"
}
{- "channel_credentials": [
- {
- "static_bearer": {
- "claimed_identity": "string",
- "token": "pa$$word"
}, - "callback_secret": "pa$$word",
- "channel": "WHATSAPP",
- "state": {
- "status": "PENDING",
- "description": "string"
}, - "channel_known_id": "string",
- "credential_ordinal_number": 0
}
], - "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
}
}