curl --request GET \
--url https://api.goyappr.com/agents/{id}/tools-and-integrations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/agents/{id}/tools-and-integrations"
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/{id}/tools-and-integrations', 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/{id}/tools-and-integrations",
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/{id}/tools-and-integrations"
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/{id}/tools-and-integrations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/agents/{id}/tools-and-integrations")
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{
"engine": "workflow_v1",
"draft_version": 12,
"live_version": 3,
"draft_has_changes": false,
"channels": [
"phone",
"web"
],
"data": [
{
"id": "i_d3d44b7a",
"kind": "app",
"app": "googlecalendar",
"app_name": "Google Calendar",
"connection_id": "d3d44b7a-a820-4012-9a57-5e793b3719e2",
"account_label": "Simons Calendar",
"title": "Google Calendar · Simons Calendar",
"scope": "agent",
"status": "live",
"used_in": [],
"actions": [
{
"action": "GOOGLECALENDAR_FIND_FREE_SLOTS",
"name": "Find free time",
"binding_id": "i_d3d44b7a_find_free_slots",
"bindable": true,
"inputs": {
"items": {
"kind": "literal",
"value": [
"primary"
]
},
"time_min": {
"kind": "model",
"path": "/time_min"
},
"time_max": {
"kind": "model",
"path": "/time_max"
}
},
"overrides": []
}
]
},
{
"id": "tg_5c1e9a20",
"kind": "webhook",
"tool_id": "5c1e9a20-0000-4000-8000-000000000001",
"title": "Webhook · Send lead to CRM",
"scope": "agent",
"status": "live",
"used_in": [],
"actions": [
{
"action": null,
"name": "Send lead to CRM",
"binding_id": "t_5c1e9a20",
"inputs": {},
"overrides": []
}
]
},
{
"id": "handoff_tool",
"kind": "transfer",
"tool_id": "7f000000-0000-4000-8000-000000000002",
"title": "Call transfer · Front desk",
"scope": "steps",
"status": "live",
"used_in": [
{
"phase": "during",
"node_id": "handoff",
"label": "Hand off"
}
],
"actions": [
{
"action": null,
"name": "Front desk",
"binding_id": "handoff_tool",
"inputs": {},
"overrides": []
}
]
},
{
"id": "end_call",
"kind": "end_call",
"title": "End call",
"scope": "agent",
"status": "always_on",
"actions": [],
"used_in": []
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}List an agent's tools & integrations
curl --request GET \
--url https://api.goyappr.com/agents/{id}/tools-and-integrations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/agents/{id}/tools-and-integrations"
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/{id}/tools-and-integrations', 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/{id}/tools-and-integrations",
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/{id}/tools-and-integrations"
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/{id}/tools-and-integrations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/agents/{id}/tools-and-integrations")
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{
"engine": "workflow_v1",
"draft_version": 12,
"live_version": 3,
"draft_has_changes": false,
"channels": [
"phone",
"web"
],
"data": [
{
"id": "i_d3d44b7a",
"kind": "app",
"app": "googlecalendar",
"app_name": "Google Calendar",
"connection_id": "d3d44b7a-a820-4012-9a57-5e793b3719e2",
"account_label": "Simons Calendar",
"title": "Google Calendar · Simons Calendar",
"scope": "agent",
"status": "live",
"used_in": [],
"actions": [
{
"action": "GOOGLECALENDAR_FIND_FREE_SLOTS",
"name": "Find free time",
"binding_id": "i_d3d44b7a_find_free_slots",
"bindable": true,
"inputs": {
"items": {
"kind": "literal",
"value": [
"primary"
]
},
"time_min": {
"kind": "model",
"path": "/time_min"
},
"time_max": {
"kind": "model",
"path": "/time_max"
}
},
"overrides": []
}
]
},
{
"id": "tg_5c1e9a20",
"kind": "webhook",
"tool_id": "5c1e9a20-0000-4000-8000-000000000001",
"title": "Webhook · Send lead to CRM",
"scope": "agent",
"status": "live",
"used_in": [],
"actions": [
{
"action": null,
"name": "Send lead to CRM",
"binding_id": "t_5c1e9a20",
"inputs": {},
"overrides": []
}
]
},
{
"id": "handoff_tool",
"kind": "transfer",
"tool_id": "7f000000-0000-4000-8000-000000000002",
"title": "Call transfer · Front desk",
"scope": "steps",
"status": "live",
"used_in": [
{
"phase": "during",
"node_id": "handoff",
"label": "Hand off"
}
],
"actions": [
{
"action": null,
"name": "Front desk",
"binding_id": "handoff_tool",
"inputs": {},
"overrides": []
}
]
},
{
"id": "end_call",
"kind": "end_call",
"title": "End call",
"scope": "agent",
"status": "always_on",
"actions": [],
"used_in": []
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}{
"error": "<string>",
"code": "<string>",
"issues": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>"
}
]
}agents:read. Everything an agent can use on its calls, in one list grouped by integration, the way the agent’s Tools & integrations tab in the dashboard shows it:
- Apps: one entry per connected account, titled
"<App> · <account>"(for exampleGoogle Calendar · Simons Calendar), with the actions the agent has. - Webhook: an HTTP request to your system. One entry per saved webhook tool.
- Call transfer: one entry per saved transfer tool. It needs the agent to take phone calls.
- End call: built in, and always on.
used_in. End call is last.
curl https://api.goyappr.com/agents/AGENT_ID/tools-and-integrations \
-H "Authorization: Bearer YOUR_API_KEY"
{
"engine": "workflow_v1",
"draft_version": 12,
"live_version": 3,
"draft_has_changes": false,
"channels": ["phone", "web"],
"data": [
{
"id": "i_d3d44b7a",
"kind": "app",
"app": "googlecalendar",
"app_name": "Google Calendar",
"connection_id": "d3d44b7a-a820-4012-9a57-5e793b3719e2",
"account_label": "Simons Calendar",
"title": "Google Calendar · Simons Calendar",
"scope": "agent",
"status": "live",
"used_in": [],
"actions": [
{
"action": "GOOGLECALENDAR_FIND_FREE_SLOTS",
"name": "Find free time",
"name_he": "חיפוש זמן פנוי",
"binding_id": "i_d3d44b7a_find_free_slots",
"bindable": true,
"inputs": {
"items": { "kind": "literal", "value": ["primary"] },
"time_min": { "kind": "model", "path": "/time_min" },
"time_max": { "kind": "model", "path": "/time_max" }
},
"overrides": [
{ "node_id": "booking", "binding_id": "o_k3j9x0a2b1", "inputs": { "items": { "kind": "literal", "value": ["clinic@group.calendar.google.com"] } } }
]
}
]
},
{
"id": "tg_5c1e9a20",
"kind": "webhook",
"tool_id": "5c1e9a20-0000-4000-8000-000000000001",
"title": "Webhook · Send lead to CRM",
"scope": "agent",
"status": "live",
"used_in": [],
"actions": [{ "action": null, "name": "Send lead to CRM", "binding_id": "t_5c1e9a20", "inputs": {}, "overrides": [] }]
},
{
"id": "handoff_tool",
"kind": "transfer",
"tool_id": "7f000000-0000-4000-8000-000000000002",
"title": "Call transfer · Front desk",
"scope": "steps",
"status": "live",
"used_in": [{ "phase": "during", "node_id": "handoff", "label": "Hand off" }],
"actions": [{ "action": null, "name": "Front desk", "binding_id": "handoff_tool", "inputs": {}, "overrides": [] }]
},
{ "id": "end_call", "kind": "end_call", "title": "End call", "scope": "agent", "status": "always_on", "actions": [], "used_in": [] }
]
}
Entries
| Field | Meaning |
|---|---|
id | i_... for an app, tg_... for a webhook or call transfer on every step, the binding’s id for an entry used on some steps only, end_call for End call. Change an i_ or tg_ entry with PATCH /agents/{id}/integrations/{integration_id}. |
kind | app, webhook, transfer or end_call. |
scope | agent: on every conversation step. steps: only on the steps in used_in; change those in the workflow (PUT /agents/{id}/workflow). |
used_in | Where a steps entry is used, in the order a call reaches it. node_id is the conversation step’s id, before:<step> for a step before the call, after:<trigger>/<step> for a step after it. |
actions | An app’s enabled actions. A webhook or call transfer has one action, its tool, with action set to null. |
status | Meaning |
|---|---|
live | The published version has it. |
not_live | Saved in the draft only. Publish the agent (POST /agents/{id}/workflow/publish) to use it on calls. |
building | An action’s tool is being rebuilt, for example right after the account was reconnected. It finishes on its own. |
reconnect_required | The account must be reconnected (POST /tool-connections/{id}/reconnect). |
always_on | End call: every agent can end its calls. |
Where each input comes from
Each action’sinputs names, input by input, where the value comes from. These are the same sources a workflow binding uses:
| Source | In the dashboard | Example |
|---|---|---|
{"kind": "literal", "value": ...} | Fixed | Which calendar: {"kind": "literal", "value": ["primary"]}. The agent never sees a fixed input. |
{"kind": "request", "path": ...}, {"kind": "stored", "path": ...} | From the call | A field of the call request, or saved context, by JSON pointer. A literal "{{call.caller_number}}" is the caller’s number. |
{"kind": "model", "path": ...} | AI | The agent fills it from the conversation, for example the time the caller wants. |
{"kind": "model", "path": ..., "options": [{"value", "label"}]} | Choose from a list | The agent picks one of the options, for example one of two doctors’ calendars. |
overrides lists the conversation steps that set their own sources for an action the agent has on every step. Inputs a step does not name come from the agent’s.
bindable (apps only) says whether the action’s tool can already take a fixed configuration input, such as which calendar, per agent. A tool made before that existed answers false; a write that sets such an input updates it first.
To set sources, send inputs to PATCH /agents/{id}/integrations/{integration_id}. To list an account’s calendars for a fixed calendar, use GET /tool-connections/{id}/options/calendars. To give the agent a saved webhook or call transfer on every step, send {"tool_id": "..."} to POST /agents/{id}/integrations.
Agents on the previous engine
A prompt or flow agent answers"engine": "legacy" with the tools attached to it (a flow agent: the tools its steps use, with the steps in used_in), and End call when it can end calls. These entries are read-only here: their actions and inputs are not listed.
Errors
| Status | Code | Meaning |
|---|---|---|
400 | AGENTS_QUERY_INVALID | A query parameter was sent. This read takes none; the message names it. |
404 | AGENT_NOT_FOUND | No agent with this id in this workspace. |
503 | WORKFLOW_STORAGE_UNAVAILABLE | Storage could not be read. Try again; 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).
Response
The agent's tools & integrations.
How calls reach the agent (its workflow's channels). phone covers incoming calls and the calls the agent places; web covers browser calls and needs no number. A call on a channel the published version leaves out fails at preparation (artifact_unavailable). A call transfer needs phone.
phone, web