Claim a conversation for a given agent. To avoid taking over assigned conversations, set the force
paremeter to false
The conversation was successfully claimed
Invalid value for: path parameter conversationId, Invalid value extracted from request context, Invalid value for: body
An entity in this request could not be found
Internal failure during request processing
{- "agentId": "5a556159-9c21-4f3e-a44f-d323deb80d16",
- "force": false
}
{- "message": "Invalid value in request"
}
Mark a conversation as closed by providing its id.
The conversation was successfully closed
Invalid value for: path parameter conversationId, Invalid value extracted from request context, Invalid value for: body, User not found, User is not agent/admin
An entity in this request could not be found
{- "userId": "5a556159-9c21-4f3e-a44f-d323deb80d16"
}
{- "message": "Decoding failure in request"
}
Create a conversation. For inbound messages the author is assumed to be the requester of the conversation (end user). For outbound messages the author is specified using the agentId field.
The id of the created conversation
Invalid value extracted from request context, Invalid value for: body, Invalid input for Message, Failure to download attachment, Duplicate externalId, Unsupported ConversationChannel
An entity in this request could not be found
Internal failure during request processing
{- "requesterId": "9c2a2cce-699f-4a72-89d9-fda5bc8dec8b",
- "emailIntegrationId": "my-integration@email.dixa.io",
- "subject": "order #123",
- "message": {
- "content": {
- "value": "My order hasn't shipped",
- "_type": "Text"
}, - "attachments": [ ],
- "_type": "Inbound"
}, - "language": "en",
- "_type": "Email"
}
{- "data": {
- "id": 100
}
}
Create a rating offer for a specific conversation.
The rating offer to be created for a conversation
The created conversation rating offer
Internal failure during request processing
{- "userId": "b0323b42-c428-4afa-970e-20bf5bdeeec4",
- "agentId": "eeb3bbe5-0355-4ac1-8af5-20d42a3db24b",
- "ratingType": "Csat",
- "offeredAt": "2024-03-11T16:39:30Z"
}
{- "data": {
- "id": "2f0122db-0824-44d7-b39a-e1f722b8c38c",
- "userId": "7a65c963-b3ca-4bd4-996e-bdbcaa620219",
- "agentId": "db7f0b41-b779-4726-a673-07b2a59a550d",
- "ratingType": "Csat",
- "offeredAt": "2024-03-11T16:39:30Z"
}
}
Create a rating result for a specific conversation.
The rating result to be created for a conversation
The created conversation rating result
Internal failure during request processing
{- "userId": "d3cf6f15-1497-4e71-92f2-9b3b228352bd",
- "ratingResult": {
- "value": 4,
- "_type": "Csat"
}, - "comment": "Best customer service ever!",
- "submittedAt": "2024-03-11T16:39:30Z"
}
{- "data": {
- "ratingId": "33cf4e5e-9ce9-461c-b668-be9b712b717c",
- "userId": "4c5f7efa-0822-4b75-bdf5-907fa7336e0c",
- "ratingResult": {
- "value": 5,
- "_type": "Csat"
}, - "comment": "Excellent customer service!",
- "submittedAt": "2024-03-11T16:39:30Z"
}
}
Create an end user.
The end user's details
The created end user
Invalid value extracted from request context, Invalid value for: body, Validation failure during enduser creation
Internal failure during request processing
{- "displayName": "Alice Brown",
- "email": "alice@brown.com",
- "phoneNumber": "+551155256325",
- "additionalEmails": [
- "alice@secondary.email"
], - "additionalPhoneNumbers": [
- "+5566778899"
], - "firstName": "Alice",
- "lastName": "Brown",
- "middleNames": [ ],
- "externalId": "#12345678"
}
{- "data": {
- "id": "434ce9f5-14c8-4be1-a0a8-f755010deb9b",
- "createdAt": "2020-12-16T09:41:43Z",
- "displayName": "Alice Brown",
- "email": "alice@brown.com",
- "phoneNumber": "+551155256325",
- "additionalEmails": [
- "alice@secondary.email"
], - "additionalPhoneNumbers": [
- "+5566778899"
], - "firstName": "Alice",
- "lastName": "Brown",
- "middleNames": [ ],
- "externalId": "#12345678",
- "customAttributes": [
- {
- "id": "4baa78bc-4815-4122-9c99-f71cd742d37b",
- "name": "My Attribute",
- "identifier": "my_attribute",
- "value": "My Attribute Value"
}
]
}
}
Get an end user by id.
The end user
Invalid value for: path parameter userId, Invalid value extracted from request context
An entity in this request could not be found
Internal failure during request processing
{- "data": {
- "id": "434ce9f5-14c8-4be1-a0a8-f755010deb9b",
- "createdAt": "2020-12-16T09:41:43Z",
- "displayName": "Alice Brown",
- "email": "alice@brown.com",
- "phoneNumber": "+551155256325",
- "additionalEmails": [
- "alice@secondary.email"
], - "additionalPhoneNumbers": [
- "+5566778899"
], - "firstName": "Alice",
- "lastName": "Brown",
- "middleNames": [ ],
- "externalId": "#12345678",
- "customAttributes": [
- {
- "id": "4baa78bc-4815-4122-9c99-f71cd742d37b",
- "name": "My Attribute",
- "identifier": "my_attribute",
- "value": "My Attribute Value"
}
]
}
}
Get availability of supported channels for a given queue. Currently supported channels are adachat, kindlychat, digitalgeniuschat.
The availability of supported channels for a given queue
Invalid value for: path parameter queueId, Invalid value extracted from request context ,queue does not exist
The request could not be completed due to no supported channels configured for this organization
Internal failure during request processing
{- "data": [
- {
- "channelAvailability": {
- "genericChannelName": "adachat",
- "availability": "NotAvailable",
- "queueSize": 10,
- "_type": "GenericChannel"
}, - "_type": "Success"
}, - {
- "error": {
- "channel": "kindlychat",
- "message": "Could not get availability for channel",
- "_type": "UnexpectedError"
}, - "_type": "Failure"
}
]
}
Get the approximate position of a given conversation in its current queue.
The position of the conversation in the queue
Invalid value for: path parameter csid, Invalid value extracted from request context
An entity in this request could not be found
Internal failure during request processing
{- "data": {
- "position": 10,
- "queuedAt": "2021-12-01T13:00:00.003Z"
}
}
Import a previously created conversation into Dixa. For inbound messages the author is assumed to be the requester of the conversation (end user). For outbound messages the author is specified using the agentId field.
The type of conversation to import
The id of the imported conversation
Invalid value extracted from request context, Invalid value for: body, Invalid input for Message, Failure to download attachment, Unsupported ConversationChannel, Requester does not exist, Agent does not exist
An entity in this request could not be found
Internal failure during request processing
{- "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": [
- {
- "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"
}
{- "data": {
- "id": 100,
- "partialErrors": [
- {
- "message": "The conversation could not be assigned"
}, - {
- "message": "Invalid attachment url in message. externalId: 42"
}
]
}
}
Lists conversations requested by an end user.
Note: Custom attributes are not part of the response at this point. If you need to get custom attributes for a conversation use the GET /conversations/{conversationId} endpoint
The list of conversations requested by an EndUser
Invalid value for: path parameter userId, Invalid value extracted from request context, Invalid value for: query parameter pageLimit, Invalid value for: query parameter pageKey
An entity in this request could not be found
Internal failure during request processing
{- "data": [
- {
- "id": 1,
- "requesterId": "9deb936b-52e5-4c44-828d-4c8d48fe0c7e",
- "channel": "WidgetChat",
- "createdAt": "2020-12-16T09:41:43Z",
- "direction": "Outbound",
- "state": "Open",
- "stateUpdatedAt": "2020-12-16T09:41:43Z",
- "assignment": {
- "agentId": "0e4d0ead-dc69-470a-9b3a-e7eb16a56453",
- "assignedAt": "2020-12-16T11:00:34Z"
}, - "queue": {
- "id": "cd87b232-64c8-4ad5-b81a-6f9233352d97",
- "queuedAt": "2020-12-16T10:40:40Z"
}, - "browserInfo": {
- "name": "Chrome 9",
- "version": "91.0.4472.114",
- "ipAddress": "127.0.0.1",
}, - "language": "en",
- "link": {
- "parentId": 1234,
- "_type": "SideConversation"
}, - "_type": "ChatConversation"
}
]
}
Transfer a conversation to a target queue.
The conversation was successfully transferred to the target queue
Invalid value for: path parameter conversationId, Invalid value extracted from request context, Invalid value for: body, User not found, User is not agent/admin, Queue does not exist
An entity in this request could not be found
Internal failure during request processing
{- "queueId": "92f8d193-b26f-4a62-86a3-bb03ee0915e9",
- "userId": "a53b25da-f676-4c52-acac-58c9280aa23d"
}
{- "message": "Decoding failure in request"
}