List agents
Lists your organization’s agents in one of two modes.
Sorted listing. Sending offset, or any of sort, dir, search, labels, deployed, channels, created_by, modified_by or last_activity_after/last_activity_before, sorts and filters on the server and pages by offset and limit (default 100, up to 1,000). The offset=0 page carries the total match count in the X-Total-Count header. Stop when a page returns fewer than limit agents.
Original listing. With only the original parameters, or with cursor or ids, the list is newest first and pages by cursor, as it always has. Without a limit it returns every matching agent.
Headers
Organization ID for user PATs (pat_ prefix tokens)
Query Parameters
Comma-separated agent ids, at most 50. Bypasses paging.
Rows to skip. Not combinable with cursor.
Page size, 1-1000. Defaults to 100 whenever offset, sort, search or a newer filter is given. The original listing, selected by none of those or by cursor or ids, returns every matching agent when no limit is given.
Legacy created_at cursor. Selects the original listing, which ignores sort, offset and the newer filters.
Matches the agent name, the company name, or the digits of an assigned phone number (four or more). Matches the name, the company name, or phone number digits.
Cursor or ids mode: name contains this. Otherwise an alias of search, used when search is absent.
One of name, created_at, updated_at, created_by, modified_by, total_conversations, last_activity, deployed or label:. Defaults to created_at.
asc or desc. Defaults to desc.
URL-encoded JSON object mapping a label key to a value, a list of values (any of them), or null (not set), such as {"industry": ["Healthcare"]}.
JSON object mapping a label key to a value, a list of values (any of them) or null (not set), e.g. {"industry": ["Telecom"]}.
Comma-separated subset of voice, chat, demo. Matches agents with all of them.
JSON object the agent's metadata must contain.
Response
Successful Response

