Skip to main content
GET
List agents
Every agent in the workspace, newest first. Required scope: agents:read. This is the entry point of almost every journey: find the agent you want, then read or edit its workflow, point a phone number at it, place a call with it, or duplicate it as the starting point for the next one.
Find an agent by name in one request:
With name, pagination.total counts the matches, not the whole workspace. There is no status filter. Archived agents are never listed. Two agents may share a name, so match on id once you have found the one you want. This is also how to find an agent’s calls by its name: GET /calls has no agent-name filter, so look the name up here and send the agent_id of the one you mean. A parameter the list does not read — search, status or anything else — is refused with 400 AGENTS_QUERY_INVALID rather than ignored, because an ignored filter answers with every agent.

Response

Each row is the whole agent object — the same shape Get agent returns, not a summary. There are two shapes in the list, and execution_version tells them apart: a workflow_v1 agent carries the twenty-seven fields below, and a legacy one carries thirty-four — those twenty-seven plus idempotency_key and the six the old prompt and flow agents were driven by. Every field of a row’s own shape is present on it: a field you do not see in that shape is not omitted for this agent, it is not part of its response. A workflow_v1 row — almost every agent, and the only kind that can be created:
A legacy row — an agent from before the workflow engine, still taking calls, still listed here, and unchanged in shape. It carries the same twenty-seven fields plus eight more — the six legacy slots, idempotency_key, the column the retired create path wrote, and webhook_url_path_withheld. The webhook headers’ slot reads configured_webhook_header_names, the names only: the values are write-only.
(Abbreviated: the twenty-seven ordinary fields are there too, exactly as above, and system_prompt is the whole prompt — often thousands of characters.)

Reading a row

  • idempotency_key is not on a workflow_v1 row at all. The key belongs to the request, not to the agent: Create agent and Duplicate agent echo the Idempotency-Key you sent on their own responses, and a read carries none. A legacy row still shows the column the retired create path wrote.
  • execution_version is the field that decides how to read the rest. workflow_v1 means the agent’s behaviour lives in its workflow document; read it with Get workflow. legacy means it lives in system_prompt or flow_config on the row itself, as it always did. Branch on this, not on the field count.
  • published_workflow_revision_id is null until the workflow has been published — and is always null on a legacy agent, which publishes nothing and still takes calls. An unconverted agent with is_active: true and no published revision is therefore normal; a workflow_v1 one in that state takes no calls.
  • On a workflow_v1 row the legacy fields are gone, not empty. It carries no system_prompt, flow_config, webhook_url, webhook_events, webhook_headers or tools key at all. A client that read agent.system_prompt on such an agent used to get null and now gets undefined, and one that treats a missing key as an error will break here. None of them were ever a second, quieter source of a workflow agent’s behaviour — the workflow document is the only one.
  • On a legacy row they are real. system_prompt is the prompt that drives the call, flow_config the graph on a flow agent (null on a prompt one), and webhook_url / webhook_events / tools are that agent’s own. Keep reading them for these agents; they are how those calls run. Two are read back narrower than they are stored: the webhook headers come back as configured_webhook_header_names (names, never values, for every key), and a key without tools:read reads each tool as { "id", "name" } and webhook_url as scheme://host with webhook_url_path_withheld: true.
  • type is "workflow", "prompt" or "flow", and it moves with execution_version: workflow on every workflow_v1 agent, prompt or flow on a legacy one. It is not a kind you can choose — only workflow agents can be created — so "prompt" and "flow" are a closing set, not a growing one. If you branch on type == "prompt" today, that branch still has live agents in it.
  • voice is the voice name a caller hears. It belongs to one voice family, and the engine behind it is never set directly.
  • model is the model the agent was set to: gemini-3.1-flash-live, gemini-3.8-live or gpt-live, or null for automatic. resolved_model is the one its calls run on — the same value when model is set, and what automatic chooses today for the agent’s language when it is null. A gpt-live agent reads gpt-live in both. Both are on legacy rows too.

Errors

Authorizations

Authorization
string
header
required

Your Yappr API key (e.g. ypr_live_...). Generate one in the dashboard under Settings → API Keys. No key is 401 MISSING_KEY; a key that is not one of ours, or is revoked, is 401 INVALID_KEY; an expired one is 401 EXPIRED_KEY. A valid key without the scope an operation needs is 403 INSUFFICIENT_SCOPE on every operation, and the message names the scope. Every response, a 401 included, carries X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset: the budget is 60 requests a minute per API key. Every 429, whatever its code, carries Retry-After (whole seconds, never zero): the per-key budget's RATE_LIMIT asks for what is left of the minute, a route's daily cap (RATE_LIMITED) for the time until that cap resets. All four headers are listed in Access-Control-Expose-Headers, so a browser can read them. A path the API does not serve (an unknown sub-path, an id left empty) is 404 ROUTE_NOT_FOUND, and a method a served path does not take is 405 METHOD_NOT_ALLOWED with an Allow header; both are answered before any scope check, and nothing is read or changed. A trailing slash is ignored where it cannot be an id left empty (POST /calls/ is POST /calls) and refused where it can (GET /calls/). A doubled slash inside a path is merged into one before the request reaches the API (GET //calls is GET /calls).

Query Parameters

name
string

Only agents whose name contains this text, case-insensitively, anywhere in the name. Every character matches itself: %, _ and * are not wildcards. Leading and trailing spaces are ignored.

Required string length: 1 - 200
limit
integer
default:20
Required range: x <= 100
offset
integer
default:0

Response

List of agents

data
object[]
pagination
object