Skip to main content

List Assignable Agents

GET 

/accounts/:account_id/assignable_agents

Returns the agents who can be assigned conversations in all of the given inboxes.

An agent is returned only when assignable in all of them:

  • New-rules accounts: agents whose role grants Inbox can be assigned on every requested inbox.
  • Legacy accounts: agents who are members of every requested inbox, plus all administrators.
SettingValue
MethodGET
Path/api/v1/accounts/{account_id}/assignable_agents
AuthorizationUser token. The caller must be allowed to view each requested inbox. Not available to agent-bot tokens.

Path parameters

NameTypeRequiredDescription
account_idintegerYesAccount ID.

Query parameters

NameTypeRequiredDescription
inbox_ids[]integer[]YesOne or more inbox IDs. Repeat the parameter for each inbox.

Example request

Repeat inbox_ids[] for each inbox (-g stops cURL from reading the brackets as a pattern):

curl -g -X GET 'https://online.99digital.co.il/api/v1/accounts/12/assignable_agents?inbox_ids[]=31&inbox_ids[]=32' \
-H 'api_access_token: <YOUR_API_ACCESS_TOKEN>'

Example response (200 OK). The result is wrapped in payload; one agent is shown.

{
"payload": [
{
"id": 52,
"account_id": 12,
"availability_status": "offline",
"auto_offline": true,
"confirmed": true,
"email": "dana.levi@example.com",
"available_name": "Dana Levi",
"custom_attributes": { "department": "sales" },
"name": "Dana Levi",
"role": "Shift Manager",
"operation_bot": false,
"see_all_conversations": false,
"assignable_to_inbox": [31, 32],
"new_role": "Shift Manager",
"thumbnail": "",
"capacity_cap": null,
"two_factor_type": null,
"phone1": "+972507654321",
"email1": null,
"create_time": 1794470400
}
]
}

Error responses: 404 {"error": "Resource could not be found"} when any of the inbox IDs does not exist in the account.

Request​

Responses​

The agents who can be assigned in every requested inbox, in payload.