Import a previously created conversation into Dixa. For inbound messages the author is assumed to be the requester of the conversation (end user), unless the specific channel supports overriding the message author through its attributes. For outbound messages the author is specified using the agentId field.
Dixa API//
- Patch conversation custom attributes
Anonymize conversation
Anonymize message
Close conversation
Followup conversation
Reopen conversation
Transfer conversation
Add internal notes
List internal notes
Add internal note
Create conversation rating result
Create conversation rating offer
List ratings for a conversation
List organization activity log
List flows
Tag conversation
Untag conversation
Bulk tag conversation
List tags
List messages
Add message
Create conversation
Import conversation
Claim conversation
List activity log
Get conversation
Link a conversation to a parent conversation
List linked conversations
Search conversations with filters
List rating
Search conversations
Patch conversation custom...
Dixa API (beta)
Download OpenAPI description
Languages
Servers
Mock server
https://docs.dixa.io/_mock/openapi/dixa-api/beta
https://dev.dixa.io
Bodyapplication/jsonrequired
The type of conversation to import
GenericConversationImport (object)(ImportConversationInput)
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/conversations/import
- https://dev.dixa.io/beta/conversations/import
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/conversations/import \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"genericChannelName": "MyCustomChat",
"requesterId": "9c2a2cce-699f-4a72-89d9-fda5bc8dec8b",
"requesterConnectionStatus": "Connected",
"direction": "Inbound",
"messages": [
{
"content": {
"value": "My order hasn'\''t shipped",
"_type": "Text"
},
"attachments": [],
"createdAt": "2021-12-01T13:00:00.003Z",
"_type": "InboundImport"
},
{
"content": {
"value": "Our bad, sorry",
"_type": "Text"
},
"agentId": "cd4ceb58-bb3a-443c-9cd8-4f088feafe5b",
"attachments": [
{
"url": "https://en.wikipedia.org/wiki/Shipwreck#/media/File:Titanic_wreck_bow.jpg",
"prettyName": "shipwreck"
}
],
"createdAt": "2021-12-01T14:00:00.004Z",
"_type": "OutboundImport"
}
],
"createdAt": "2021-12-01T11:00:00.001Z",
"assignment": {
"agentId": "cd4ceb58-bb3a-443c-9cd8-4f088feafe5b",
"assignedAt": "2021-12-01T12:00:00.002Z"
},
"closing": {
"closedAt": "2021-12-01T15:00:00.005Z",
"closedBy": "cd4ceb58-bb3a-443c-9cd8-4f088feafe5b"
},
"_type": "GenericConversationImport"
}'Response
application/json
{ "data": { "id": 100, "partialErrors": [ … ] } }
Bodyapplication/jsonrequired
The custom attributes of an conversation to be patched. This should map the custom attribute id to the desired attribute value. Format: Map[UUID, Option[AttributeValue].
AttributeValue values: String[] if the type of the custom attribute is Select or String if the type of the custom attribute is Text
One of:
AttributeValue values: String[] if the type of the custom attribute is Select or String if the type of the custom attribute is Text
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/conversations/{conversationId}/custom-attributes
- https://dev.dixa.io/beta/conversations/{conversationId}/custom-attributes
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/conversations/{conversationId}/custom-attributes' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"2f5515b6-7e98-4f4d-9010-bfd2a27d4f35": "012345",
"e14708a6-eed9-495c-9d88-c72331e9e247": [
"str1",
"str2"
]
}'Response
application/json
{ "data": [ { … }, { … } ] }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/conversations/{conversationId}/claim
- https://dev.dixa.io/beta/conversations/{conversationId}/claim
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.dixa.io/_mock/openapi/dixa-api/beta/beta/conversations/{conversationId}/claim' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"agentId": "5a556159-9c21-4f3e-a44f-d323deb80d16",
"force": false
}'