Download OpenAPI specification:Download
Create an agent.
The agent's details
The created agent
Invalid value extracted from request context, Invalid value for: body, Validation failure during agent 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": [ ],
}
{- "data": {
- "id": "4d2ab456-8510-4a35-b266-e502160d5177",
- "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": [ ],
- "roles": [
- "Agent"
]
}
}
Create agents in bulk.
The list of agent's details
Array of objects (CreateAgentInput) |
The created agents
Invalid value extracted from request context, Invalid value for: body
Internal failure during request processing
{- "data": [
- {
- "displayName": "Alice Brown",
- "email": "alice@brown.com",
- "phoneNumber": "+551155256325",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "firstName": "Alice",
- "lastName": "Brown",
- "middleNames": [ ],
}
]
}
{- "data": [
- {
- "data": {
- "id": "93b885ad-fe0d-3089-8df6-34904fd59f71",
- "createdAt": "2020-12-16T09:41:43Z",
- "displayName": "Agent 0",
- "email": "agent.0@example.org",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "middleNames": [ ],
- "roles": [
- "Agent"
]
}, - "_type": "BulkActionSuccess"
}, - {
- "data": {
- "id": "55a54008-ad1b-3589-aa21-0d2629c1df41",
- "createdAt": "2020-12-16T09:41:43Z",
- "displayName": "Agent 1",
- "email": "agent.1@example.org",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "middleNames": [ ],
- "roles": [
- "Agent"
]
}, - "_type": "BulkActionSuccess"
}, - {
- "data": {
- "id": "9e688c58-a548-3b8e-af69-c9e1005ad0bf",
- "createdAt": "2020-12-16T09:41:43Z",
- "displayName": "Agent 2",
- "email": "agent.2@example.org",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "middleNames": [ ],
- "roles": [
- "Agent"
]
}, - "_type": "BulkActionSuccess"
}, - {
- "data": {
- "id": "86666835-06aa-3d90-8bbd-5a74ac4edf68",
- "createdAt": "2020-12-16T09:41:43Z",
- "displayName": "Agent 3",
- "email": "agent.3@example.org",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "middleNames": [ ],
- "roles": [
- "Agent"
]
}, - "_type": "BulkActionSuccess"
}, - {
- "error": {
- "id": "e8ecd53b-2f6c-4471-a3a0-34d94caff8c8",
- "message": "Create Agent [userId=...] in [orgId=...] failed with [errors=...]",
- "_type": "Validation"
}, - "_type": "BulkActionFailure"
}
]
}
Downgrade an agent/admin to become an end user.
The agent/admin was successfully downgraded to end user
Invalid value for: path parameter agentId, Invalid value extracted from request context, Validation failure during delete processing
An entity in this request could not be found
{- "message": "Decoding failure in request"
}
Get an agent/admin by id.
The agent/admin
Invalid value for: path parameter agentId, Invalid value extracted from request context
An entity in this request could not be found
Internal failure during request processing
{- "data": {
- "id": "4d2ab456-8510-4a35-b266-e502160d5177",
- "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": [ ],
- "roles": [
- "Agent"
]
}
}
Get the presence status for an agent/admin.
The agent/admin presence status
Invalid value for: path parameter agentId, Invalid value extracted from request context
An entity in this request could not be found
Internal failure during request processing
{- "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": [
- "Email",
- "FacebookMessenger"
]
}
}
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.
The list of agents/admins
Invalid value extracted from request context, Invalid value for: query parameter pageLimit, Invalid value for: query parameter pageKey, Invalid value for: query parameter email, Invalid value for: query parameter phone, Duplicate phone number, Duplicate email address, Invalid filters: Cannot provide both phone number and email address
An entity in this request could not be found
Internal failure during request processing
{- "data": [
- {
- "id": "93b885ad-fe0d-3089-8df6-34904fd59f71",
- "createdAt": "2020-12-16T09:41:43Z",
- "displayName": "Agent 0",
- "email": "agent.0@example.org",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "middleNames": [ ],
- "roles": [
- "Agent"
]
}, - {
- "id": "55a54008-ad1b-3589-aa21-0d2629c1df41",
- "createdAt": "2020-12-16T09:41:43Z",
- "displayName": "Agent 1",
- "email": "agent.1@example.org",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "middleNames": [ ],
- "roles": [
- "Agent"
]
}, - {
- "id": "9e688c58-a548-3b8e-af69-c9e1005ad0bf",
- "createdAt": "2020-12-16T09:41:43Z",
- "displayName": "Agent 2",
- "email": "agent.2@example.org",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "middleNames": [ ],
- "roles": [
- "Agent"
]
}, - {
- "id": "86666835-06aa-3d90-8bbd-5a74ac4edf68",
- "createdAt": "2020-12-16T09:41:43Z",
- "displayName": "Agent 3",
- "email": "agent.3@example.org",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "middleNames": [ ],
- "roles": [
- "Agent"
]
}
]
}
List the presence status for all agents/admins in an organization.
The list of presence status for all agents/admins
Invalid value extracted from request context
Internal failure during request processing
[- {
- "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": [
- "Email",
- "FacebookMessenger"
]
}, - {
- "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": [
- "Email",
- "FacebookMessenger",
- "PstnPhone"
]
}
]
List the teams in which the agent/admin is a member.
The list of teams in which the agent/admin is a member
Invalid value for: path parameter agentId, Invalid value extracted from request context
An entity in this request could not be found
Internal failure during request processing
{- "data": [
- {
- "id": "e8ecd53b-2f6c-4471-a3a0-34d94caff8c8"
}, - {
- "id": "4d2ab456-8510-4a35-b266-e502160d5177"
}
]
}
Patch an agent/admin.
The agent/admin patch
The patched agent/admin
Invalid value for: path parameter agentId, Invalid value extracted from request context, Invalid value for: body, Validation failure during update
An entity in this request could not be found
Internal failure during request processing
{- "displayName": "Alice Brown",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "firstName": "Alice",
- "lastName": "Brown",
- "middleNames": [ ],
}
{- "data": {
- "id": "4d2ab456-8510-4a35-b266-e502160d5177",
- "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": [ ],
- "roles": [
- "Agent"
]
}
}
Bulk patch agents/admins.
List of agent/admin patch actions
The list of patch action outcomes
Invalid value extracted from request context, Invalid value for: body
Internal failure during request processing
[- {
- "id": "434ce9f5-14c8-4be1-a0a8-f755010deb9b",
- "displayName": "AB",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "middleNames": [ ]
}, - {
- "id": "434ce9f5-14c8-4be1-a0a8-f755010deb9c",
- "displayName": "JB",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "middleNames": [ ]
}
]
{- "data": [
- {
- "data": {
- "id": "4d2ab456-8510-4a35-b266-e502160d5177",
- "createdAt": "2020-12-16T09:41:43Z",
- "displayName": "AB",
- "email": "jb@example.org",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "middleNames": [ ],
- "roles": [
- "Agent"
]
}, - "_type": "BulkActionSuccess"
}, - {
- "error": {
- "id": "434ce9f5-14c8-4be1-a0a8-f755010deb9c",
- "message": "Agent not found",
- "_type": "NotFound"
}, - "_type": "BulkActionFailure"
}
]
}
Update an agent/admin.
The updated details for an agent/admin
The updated agent/admin
Invalid value for: path parameter agentId, Invalid value extracted from request context, Invalid value for: body, Validation failure during update
An entity in this request could not be found
Internal failure during request processing
{- "displayName": "Alice Brown",
- "phoneNumber": "+551155256325",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "firstName": "Alice",
- "lastName": "Brown",
- "middleNames": [
- "Julia"
],
}
{- "data": {
- "id": "4d2ab456-8510-4a35-b266-e502160d5177",
- "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": [
- "Julia"
], - "roles": [
- "Agent"
]
}
}
Bulk update agents/admins.
The list of agent/admin update actions
The list of update action outcomes
Invalid value extracted from request context, Invalid value for: body
Internal failure during request processing
[- {
- "id": "434ce9f5-14c8-4be1-a0a8-f755010deb9b",
- "displayName": "Alice Brown",
- "phoneNumber": "+551155256325",
- "additionalEmails": [ ],
- "additionalPhoneNumbers": [ ],
- "firstName": "Alice",
- "lastName": "Brown",
- "middleNames": [ ],
}
]
{- "data": [
- {
- "data": {
- "id": "4d2ab456-8510-4a35-b266-e502160d5177",
- "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": [ ],
- "roles": [
- "Agent"
]
}, - "_type": "BulkActionSuccess"
}
]
}