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.
| Setting | Value |
|---|---|
| Method | GET |
| Path | /api/v1/accounts/{account_id}/assignable_agents |
| Authorization | User token. The caller must be allowed to view each requested inbox. Not available to agent-bot tokens. |
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
account_id | integer | Yes | Account ID. |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
inbox_ids[] | integer[] | Yes | One 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
- 200
- 401
- 403
- 404
The agents who can be assigned in every requested inbox, in payload.
The access token is missing or wrong, or its user does not belong to this account.
The token's role does not have the permission this endpoint needs, or the endpoint is not open to agent-bot tokens. See Authorization.
One of the inbox IDs does not exist in this account.