"context": { "userContext": "my Context" }
Quick Overview
The main differences are:
- Multi-channels are no longer supported.
- The from parameter is moved to the top-level object.
- Message history endpoint is changed to events.
- Channel-specific structures are replaced by the harmonized content structure.
- The media container object is replaced with a simplified model.
- The userContext is replaced with a simplified model.
- The get message endpoint is no longer supported.
- Bulk messages are now configured on the messages object instead of channelType.
- Applications are replaced by Configurations.
- WhatsApp template object now defines the header, body, footer, and buttons sections.
Read more about these changes in the V3 Release notes. If you want to try out the new version, you can use our Conversations V3 Postman Collection. We suggest using it together with the corresponding Conversations V3 Postman Environment.
Endpoint /history changes to /events
Replace the V2 GET https://api.tyntec.com/chat-api/{{apiVersion}}/messages/{{messageId}}/history
with the new V3 GET https://api.tyntec.com/conversations/v3/messages/{{messageId}}/events
"context": "my Context"
Get Message
The V2: GET https://api.tyntec.com/chat-api/{{apiVersion}}/messages/{{messageId}}
is no longer supported.
{ "sms": [ { "contentType": "text", "text": "string" }, { "contentType": "text", "text": "string" } ] }
{ "messages": [ { "contentType": "text", "text": "string" }, { "contentType": "text", "text": "string" } ] }
"components" : [ {"type": "body", "parameters": [{"type":"text", "text" : "Peter"}] }, { "type": "header", "parameters": [ { "type": "media", "media": { "url": "https://your.image", "type": "image" } } ] } ] },
"components" : { "header" : [ { "type": "document", //simplified media model "document" : { "url": " "https://your.document"," } } ], "body" : [ //body { "type": "text", "text": "User" } ], "button" : [ { "type" : "url", "index": 1, "text" : "test" } ] ]
What about V2?
The Conversations API V2 will be supported for two more years (until Apr. 15, 2023) to give you enough time for seamless migration. The breaking changes should be a cinch to change, but if you need any help, please feel free to reach out directly from your tyntec account. Although there's no immediate urgency, we encourage you to perform the migration at your earliest convenience to take full advantage of the new features!