Skip to main content
GET
List agents

Headers

x-anyreach-org
string | null

Organization ID for user PATs (pat_ prefix tokens)

Query Parameters

ids
string | null

Comma-separated agent ids, at most 50. Bypasses paging.

offset
integer | null

Rows to skip. Not combinable with cursor.

limit
integer | null

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.

cursor
string | null

Legacy created_at cursor. Selects the original listing, which ignores sort, offset and the newer filters.

search
string | null

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.

name
string | null

Cursor or ids mode: name contains this. Otherwise an alias of search, used when search is absent.

sort
string | null

One of name, created_at, updated_at, created_by, modified_by, total_conversations, last_activity, deployed or label:. Defaults to created_at.

dir
string | null

asc or desc. Defaults to desc.

labels
string | null

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"]}.

deployed
boolean | null
channels
string | null

Comma-separated subset of voice, chat, demo. Matches agents with all of them.

created_by
string | null
modified_by
string | null
created_after
string<date-time> | null
created_before
string<date-time> | null
updated_after
string<date-time> | null
updated_before
string<date-time> | null
last_activity_after
string<date-time> | null
last_activity_before
string<date-time> | null
active
boolean | null
is_demo
boolean | null
metadata
string | null

JSON object the agent's metadata must contain.

Response

Successful Response

id
string
required
name
string
required
description
string
required
active
boolean
required
is_demo
boolean
required
created_at
string<date-time>
required
updated_at
string<date-time>
required
versions
SimpleAgentVersionResponse · object[]
required
has_published_version
boolean
required
phone_numbers
SimplePhoneNumberResponse · object[]
required
metadata
Metadata · object | null
created_by
string | null
modified_by
string | null
labels
Labels · object
published_version
integer | null
widgets
SimpleWebWidgetResponse · object[]
sip_endpoint
AgentSipEndpointResponse · object | null
total_conversations
integer
default:0
total_duration
integer | null
average_duration
number | null
last_conversation_date
string<date-time> | null
widget_count
integer
default:0
today_conversations
integer
default:0
daily_conversation_counts
integer[]
latest_version
Latest Version · object | null