List the presence status for all agents/admins in an organization.
Dixa API//
- Updates the working channel of an agent
List presence
List agents
Update agents
Create agent
Patch agents
List teams
Get presence
Create agents
Get agent
Update agent
Delete agent
Patch agent
Updates the working chann...
Dixa API (v1)
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/presence
- https://dev.dixa.io/v1/agents/presence
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/presence \
-H 'Authorization: YOUR_API_KEY_HERE'Response
application/json
[ { "userId": "d31a73fc-d67b-49ec-9534-1f36a0c4c906", "requestTime": "2021-12-01T12:46:35.935", "lastSeen": "2021-12-01T12:46:35.935", "presenceStatus": "Working", "connectionStatus": "Online", "activeChannels": [ … ] }, { "userId": "8026cb51-184b-424f-8686-c6bc7bcf88eb", "requestTime": "2021-12-01T12:46:35.935", "lastSeen": "2021-12-01T12:46:35.935", "presenceStatus": "Working", "connectionStatus": "Online", "activeChannels": [ … ] } ]
Request
Lists all agents/admins in an organization. It is possible to filter by one of the mutually exclusive parameters: email or phone number. In case both are provided, an error is returned.
Security
ApiKeyAuth
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents
- https://dev.dixa.io/v1/agents
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents?pageLimit=0&pageKey=string&email=string&phone=string' \
-H 'Authorization: YOUR_API_KEY_HERE'Response
application/json
{ "data": [ { … }, { … }, { … }, { … } ] }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents
- https://dev.dixa.io/v1/agents
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '[
{
"id": "434ce9f5-14c8-4be1-a0a8-f755010deb9b",
"displayName": "Alice Brown",
"phoneNumber": "+551155256325",
"additionalEmails": [],
"additionalPhoneNumbers": [],
"firstName": "Alice",
"lastName": "Brown",
"middleNames": [],
"avatarUrl": "http://avatar.url"
}
]'Response
application/json
{ "data": [ { … } ] }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents
- https://dev.dixa.io/v1/agents
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"displayName": "Alice Brown",
"email": "alice@brown.com",
"phoneNumber": "+551155256325",
"additionalEmails": [
"alice@secondary.email"
],
"additionalPhoneNumbers": [
"+5566778899"
],
"firstName": "Alice",
"lastName": "Brown",
"middleNames": [],
"avatarUrl": "http://avatar.url"
}'Response
application/json
{ "data": { "id": "4d2ab456-8510-4a35-b266-e502160d5177", "createdAt": "2020-12-16T09:41:43Z", "displayName": "Alice Brown", "email": "alice@brown.com", "avatarUrl": "https://files.dixa.io/public/image_id", "phoneNumber": "+551155256325", "additionalEmails": [ … ], "additionalPhoneNumbers": [ … ], "firstName": "Alice", "lastName": "Brown", "middleNames": [], "roles": [ … ] } }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents
- https://dev.dixa.io/v1/agents
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '[
{
"id": "434ce9f5-14c8-4be1-a0a8-f755010deb9b",
"displayName": "AB",
"additionalEmails": [],
"additionalPhoneNumbers": [],
"middleNames": []
},
{
"id": "434ce9f5-14c8-4be1-a0a8-f755010deb9c",
"displayName": "JB",
"additionalEmails": [],
"additionalPhoneNumbers": [],
"middleNames": []
}
]'Response
application/json
{ "data": [ { … }, { … } ] }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}/teams
- https://dev.dixa.io/v1/agents/{agentId}/teams
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}/teams' \
-H 'Authorization: YOUR_API_KEY_HERE'Response
application/json
{ "data": [ { … }, { … } ] }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}/presence
- https://dev.dixa.io/v1/agents/{agentId}/presence
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}/presence' \
-H 'Authorization: YOUR_API_KEY_HERE'Response
application/json
{ "data": { "userId": "ec7f7e7b-b437-32ce-8681-45f71d37b53c", "requestTime": "2021-12-01T12:46:35.935", "lastSeen": "2021-12-01T12:46:35.935", "presenceStatus": "Working", "connectionStatus": "Online", "activeChannels": [ … ] } }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/bulk
- https://dev.dixa.io/v1/agents/bulk
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/bulk \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"data": [
{
"displayName": "Alice Brown",
"email": "alice@brown.com",
"phoneNumber": "+551155256325",
"additionalEmails": [],
"additionalPhoneNumbers": [],
"firstName": "Alice",
"lastName": "Brown",
"middleNames": [],
"avatarUrl": "http://avatar.url"
}
]
}'Response
application/json
{ "data": [ { … }, { … }, { … }, { … }, { … } ] }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}
- https://dev.dixa.io/v1/agents/{agentId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}' \
-H 'Authorization: YOUR_API_KEY_HERE'Response
application/json
{ "data": { "id": "4d2ab456-8510-4a35-b266-e502160d5177", "createdAt": "2020-12-16T09:41:43Z", "displayName": "Alice Brown", "email": "alice@brown.com", "avatarUrl": "https://files.dixa.io/public/image_id", "phoneNumber": "+551155256325", "additionalEmails": [ … ], "additionalPhoneNumbers": [ … ], "firstName": "Alice", "lastName": "Brown", "middleNames": [], "roles": [ … ] } }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}
- https://dev.dixa.io/v1/agents/{agentId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"displayName": "Alice Brown",
"phoneNumber": "+551155256325",
"additionalEmails": [],
"additionalPhoneNumbers": [],
"firstName": "Alice",
"lastName": "Brown",
"middleNames": [
"Julia"
],
"avatarUrl": "http://avatar.url"
}'Response
application/json
{ "data": { "id": "4d2ab456-8510-4a35-b266-e502160d5177", "createdAt": "2020-12-16T09:41:43Z", "displayName": "Alice Brown", "email": "alice@brown.com", "avatarUrl": "https://files.dixa.io/public/image_id", "phoneNumber": "+551155256325", "additionalEmails": [ … ], "additionalPhoneNumbers": [ … ], "firstName": "Alice", "lastName": "Brown", "middleNames": [ … ], "roles": [ … ] } }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}
- https://dev.dixa.io/v1/agents/{agentId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}' \
-H 'Authorization: YOUR_API_KEY_HERE'- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}
- https://dev.dixa.io/v1/agents/{agentId}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"displayName": "Alice Brown",
"additionalEmails": [],
"additionalPhoneNumbers": [],
"firstName": "Alice",
"lastName": "Brown",
"middleNames": [],
"avatarUrl": "http://avatar.url"
}'Response
application/json
{ "data": { "id": "4d2ab456-8510-4a35-b266-e502160d5177", "createdAt": "2020-12-16T09:41:43Z", "displayName": "Alice Brown", "email": "alice@brown.com", "avatarUrl": "https://files.dixa.io/public/image_id", "phoneNumber": "+551155256325", "additionalEmails": [ … ], "additionalPhoneNumbers": [ … ], "firstName": "Alice", "lastName": "Brown", "middleNames": [], "roles": [ … ] } }
- Mock serverhttps://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}/presence/working-channel
- https://dev.dixa.io/v1/agents/{agentId}/presence/working-channel
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
'https://docs.dixa.io/_mock/openapi/dixa-api/v1/v1/agents/{agentId}/presence/working-channel' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"channel": "Speak",
"working": false
}'