Agents API
To get all agent details associated with an accountId
.
Method
|
GET
|
Endpoints
|
https://{{host}}/agentassist/api/public/analytics/account/{{Accountid}}/agents
|
Content-Type
|
application/json
|
Authorization
|
auth: {{JWT}}
See How to generate the JWT Token.
|
API Scope
|
WFM Integration
|
Path Parameters
Parameter
|
Description
|
Type
|
host
|
Environment URL, for example, https://smartassist.kore.ai
|
string, required
|
AccountId
|
The unique Id associated with the account.
|
string, required
|
Sample Request
curl --location 'https://{{host}}/agentassist/api/public/analytics/account/636f5b36bcf8a8c7101exxxx/agents?offset=0&limit=5' \
--header 'auth: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBJZCI6ImNzLWYyYjdmM2Y5LWE0Y2EtNWRhYS04ODRjLThlZDQxYjM2MWRjOSJ9.lYyONpEEmSYdQo7CIOpHWqz4pQE-PgAN2lLYz3-xxxx' \
--header 'Content-Type: application/json'
Sample Response
[
{
accountId: "63fb9a0f90425b644d3exxxx",
"agentId":"a-59bb17e-0cae-46b0-8d80-a8a8ac34xxxx",
"firstName": "Tony",
"lastName": "Stark"
}
]
Body Parameters
Parameter
|
Description
|
Type
|
accountId
|
The unique Id associated with the account. For example, 63fb9a0f90425b644d3ec070.
|
String
|
agentId
|
The unique Id of the agent. For example, a-59bb17e-0cae-46b0-8d80-a8a8ac34e55c.
|
String
|
firstName
|
The agent’s first name. For example, Tony.
|
String
|
lastName
|
The agent’s last name. For example, Stark.
|
String
|