curl --request GET \
--url https://api.goyappr.com/agents \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/agents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.goyappr.com/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.goyappr.com/agents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.goyappr.com/agents")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"execution_version": "legacy",
"published_workflow_revision_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"live": true,
"inbound": {
"phone_numbers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "+972501234567",
"friendly_name": "<string>"
}
],
"sip_endpoints": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
]
},
"type": "workflow",
"flow_config": {
"nodes": [
{
"id": "<string>",
"type": "start",
"name": "<string>",
"position": {
"x": 123,
"y": 123
},
"agent_speaks_first": true,
"greeting": "<string>",
"is_literal": false,
"next_step_id": "<string>",
"auto_advance": true
}
],
"flow_config_version": "1",
"metadata": {
"custom_metadata_keys": [
"<string>"
]
}
},
"system_prompt": "<string>",
"description": "<string>",
"voice": "Michal",
"model": "gemini-3.1-flash-live",
"resolved_model": "gemini-3.1-flash-live",
"background_sound": "call_center",
"background_sound_volume": 0.3,
"language": "he",
"temperature": 1,
"greeting_message": "<string>",
"agent_speaks_first": true,
"vad_stop_secs": 0.5,
"vad_start_secs": 0.2,
"vad_confidence": 0.7,
"silence_timeout_secs": 60,
"idle_reminder_count": 0,
"idle_reminder_text": "<string>",
"max_continuous_speech_secs": 120,
"max_call_duration_secs": 600,
"lead_memory_enabled": true,
"noise_cancellation_enabled": true,
"is_active": true,
"webhook_url": "<string>",
"webhook_url_path_withheld": true,
"webhook_events": [
"call.started"
],
"configured_webhook_header_names": [
"Authorization",
"X-Source"
],
"tools": [
{}
],
"extraction_parameters": [
{
"name": "customerName",
"description": "The caller's full name as mentioned during the conversation",
"type": "number"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"total": 123,
"limit": 123,
"offset": 123,
"has_more": true
}
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}List Agents
Requires agents:read. Newest first. name narrows the list to agents whose name contains that text; pagination.total counts the matches, not the whole workspace.
curl --request GET \
--url https://api.goyappr.com/agents \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/agents"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.goyappr.com/agents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.goyappr.com/agents",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.goyappr.com/agents"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.goyappr.com/agents")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/agents")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>",
"execution_version": "legacy",
"published_workflow_revision_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"live": true,
"inbound": {
"phone_numbers": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"number": "+972501234567",
"friendly_name": "<string>"
}
],
"sip_endpoints": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "<string>"
}
]
},
"type": "workflow",
"flow_config": {
"nodes": [
{
"id": "<string>",
"type": "start",
"name": "<string>",
"position": {
"x": 123,
"y": 123
},
"agent_speaks_first": true,
"greeting": "<string>",
"is_literal": false,
"next_step_id": "<string>",
"auto_advance": true
}
],
"flow_config_version": "1",
"metadata": {
"custom_metadata_keys": [
"<string>"
]
}
},
"system_prompt": "<string>",
"description": "<string>",
"voice": "Michal",
"model": "gemini-3.1-flash-live",
"resolved_model": "gemini-3.1-flash-live",
"background_sound": "call_center",
"background_sound_volume": 0.3,
"language": "he",
"temperature": 1,
"greeting_message": "<string>",
"agent_speaks_first": true,
"vad_stop_secs": 0.5,
"vad_start_secs": 0.2,
"vad_confidence": 0.7,
"silence_timeout_secs": 60,
"idle_reminder_count": 0,
"idle_reminder_text": "<string>",
"max_continuous_speech_secs": 120,
"max_call_duration_secs": 600,
"lead_memory_enabled": true,
"noise_cancellation_enabled": true,
"is_active": true,
"webhook_url": "<string>",
"webhook_url_path_withheld": true,
"webhook_events": [
"call.started"
],
"configured_webhook_header_names": [
"Authorization",
"X-Source"
],
"tools": [
{}
],
"extraction_parameters": [
{
"name": "customerName",
"description": "The caller's full name as mentioned during the conversation",
"type": "number"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"pagination": {
"total": 123,
"limit": 123,
"offset": 123,
"has_more": true
}
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}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.
curl "$YAPPR_API_URL/agents?limit=20&offset=0" \
--header "Authorization: Bearer $YAPPR_API_KEY"
| Query parameter | Meaning |
|---|---|
name | Optional. Only agents whose name contains this text — case-insensitive, anywhere in the name. Every character matches itself: %, _ and * are not wildcards. Leading and trailing spaces are ignored; 1–200 characters. |
limit | 1–100, default 20. A larger value is clamped to 100. |
offset | Default 0. Page with offset += limit while pagination.has_more is true. |
curl --get "$YAPPR_API_URL/agents" \
--data-urlencode "name=reception" \
--header "Authorization: Bearer $YAPPR_API_KEY"
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, andexecution_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:
{
"data": [
{
"id": "0e6c1f66-78ab-4b2d-b89a-82c214bd8e4a",
"name": "Reception assistant",
"description": null,
"voice": "Rachel",
"model": null,
"resolved_model": "gemini-3.1-flash-live",
"language": "he",
"temperature": 0.5,
"greeting_message": null,
"agent_speaks_first": true,
"vad_stop_secs": 0.5,
"vad_start_secs": 0.2,
"vad_confidence": 0.7,
"silence_timeout_secs": 60,
"max_continuous_speech_secs": 120,
"max_call_duration_secs": 600,
"is_active": true,
"lead_memory_enabled": true,
"noise_cancellation_enabled": true,
"background_sound": null,
"background_sound_volume": 0.3,
"type": "workflow",
"extraction_parameters": [],
"execution_version": "workflow_v1",
"published_workflow_revision_id": "7ecf2c9e-11d0-452f-8065-c3cbc8d68fe3",
"created_at": "2026-09-21T06:25:43.505880+00:00",
"updated_at": "2026-09-21T06:26:02.449978+00:00"
}
],
"pagination": { "total": 164, "limit": 20, "offset": 0, "has_more": true }
}
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.
{
"id": "9b29b0c9-0000-4000-8000-000000000001",
"name": "Agent Demo GPT Live",
"type": "prompt",
"execution_version": "legacy",
"system_prompt": "<identity>\n…",
"flow_config": null,
"webhook_url": null,
"webhook_url_path_withheld": false,
"webhook_events": [],
"configured_webhook_header_names": [],
"tools": [],
"idempotency_key": null
}
system_prompt is the whole prompt — often thousands of characters.)
Reading a row
idempotency_keyis not on aworkflow_v1row at all. The key belongs to the request, not to the agent: Create agent and Duplicate agent echo theIdempotency-Keyyou sent on their own responses, and a read carries none. Alegacyrow still shows the column the retired create path wrote.execution_versionis the field that decides how to read the rest.workflow_v1means the agent’s behaviour lives in its workflow document; read it with Get workflow.legacymeans it lives insystem_promptorflow_configon the row itself, as it always did. Branch on this, not on the field count.published_workflow_revision_idisnulluntil the workflow has been published — and is alwaysnullon alegacyagent, which publishes nothing and still takes calls. An unconverted agent withis_active: trueand no published revision is therefore normal; aworkflow_v1one in that state takes no calls.- On a
workflow_v1row the legacy fields are gone, not empty. It carries nosystem_prompt,flow_config,webhook_url,webhook_events,webhook_headersortoolskey at all. A client that readagent.system_prompton such an agent used to getnulland now getsundefined, 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
legacyrow they are real.system_promptis the prompt that drives the call,flow_configthe graph on aflowagent (nullon apromptone), andwebhook_url/webhook_events/toolsare 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 asconfigured_webhook_header_names(names, never values, for every key), and a key withouttools:readreads each tool as{ "id", "name" }andwebhook_urlasscheme://hostwithwebhook_url_path_withheld: true. typeis"workflow","prompt"or"flow", and it moves withexecution_version:workflowon everyworkflow_v1agent,promptorflowon alegacyone. 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 ontype == "prompt"today, that branch still has live agents in it.voiceis the voice name a caller hears. It belongs to one voice family, and the engine behind it is never set directly.modelis the model the agent was set to:gemini-3.1-flash-live,gemini-3.8-liveorgpt-live, ornullfor automatic.resolved_modelis the one its calls run on — the same value whenmodelis set, and what automatic chooses today for the agent’s language when it isnull. Agpt-liveagent readsgpt-livein both. Both are onlegacyrows too.
Errors
| HTTP | Body | When |
|---|---|---|
400 | {"error":"Remove search. Listing agents takes limit, offset, name …","code":"AGENTS_QUERY_INVALID"} | name was empty, sent twice, over 200 characters, or held a control character; or a parameter the list does not read, one sent twice or with no value, or a limit / offset that is not a whole number. Nothing is filtered by a parameter the list does not have, so it is refused rather than answered with every agent. |
403 | {"error":"This key does not hold …","code":"INSUFFICIENT_SCOPE"} | The key does not hold agents:read. |
429 | {"error":"Rate limit exceeded. Try again in a moment.","code":"RATE_LIMIT"} | 60 requests per minute per key. |
500 | {"error":"Failed to list agents"} | The read failed. Retry; nothing was changed. |
Authorizations
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).