curl --request GET \
--url https://api.goyappr.com/agents/{id}/integrations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/agents/{id}/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}/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}/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}/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}/integrations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/agents/{id}/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{
"data": [
{
"id": "i_0b8f4c2e",
"app": "googlecalendar",
"app_name": "Google Calendar",
"connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "Clinic calendar",
"state": "ready",
"ready": true
},
"actions": [
"<unknown>"
],
"status": "live"
}
],
"draft_version": 2,
"draft_has_changes": true,
"separate_action_tools": [
{
"connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"app": "googlecalendar",
"count": 2,
"switchable": true
}
],
"tool_grants": [
{
"id": "tg_5c1e9a20",
"kind": "webhook",
"tool_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Send lead to CRM",
"binding_id": "t_5c1e9a20",
"inputs": {},
"overrides": [
{}
],
"status": "live"
}
]
}{
"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 integrations
Requires agents:read. Each integration is one connected account given to the whole agent: the agent can use the listed actions of that account on every step of its calls. status is live (the published version has exactly these actions), not_live (saved in the draft, publish the agent to use them on calls), building (an action’s tool is being rebuilt, for example after a reconnect) or reconnect_required (the account needs to be reconnected). separate_action_tools names accounts the agent uses through tools of their own, one per action, and whether they can be replaced by the whole integration (POST with replace_action_tools). Each action carries the agent’s source for each of its inputs (inputs), how the catalogue says each input is set (input_specs) and the steps that have their own settings for it (overrides). tool_grants lists the saved webhooks and call transfers given to every step. An agent on the previous engine answers 422 AGENT_ENGINE_UNSUPPORTED. Takes no query parameters.
curl --request GET \
--url https://api.goyappr.com/agents/{id}/integrations \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/agents/{id}/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}/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}/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}/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}/integrations")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/agents/{id}/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{
"data": [
{
"id": "i_0b8f4c2e",
"app": "googlecalendar",
"app_name": "Google Calendar",
"connection": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"label": "Clinic calendar",
"state": "ready",
"ready": true
},
"actions": [
"<unknown>"
],
"status": "live"
}
],
"draft_version": 2,
"draft_has_changes": true,
"separate_action_tools": [
{
"connection_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"app": "googlecalendar",
"count": 2,
"switchable": true
}
],
"tool_grants": [
{
"id": "tg_5c1e9a20",
"kind": "webhook",
"tool_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"name": "Send lead to CRM",
"binding_id": "t_5c1e9a20",
"inputs": {},
"overrides": [
{}
],
"status": "live"
}
]
}{
"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. An integration is a connected account given to the whole agent: on every step of its calls the agent can use that account’s actions — for Google Calendar, find free time, list, book, change and cancel events. You never build those actions as tools yourself.
This lists the agent’s apps and the webhooks or call transfers it has on every step (tool_grants). List an agent’s tools & integrations lists everything it can use, including what only some steps use, grouped the way the dashboard’s Tools & integrations shows it.
curl https://api.goyappr.com/agents/AGENT_ID/integrations \
-H "Authorization: Bearer YOUR_API_KEY"
{
"data": [
{
"id": "i_0b8f4c2e",
"app": "googlecalendar",
"app_name": "Google Calendar",
"connection": { "id": "0b8f4c2e-5a1d-4e6b-9c3f-7d2a1e9b4c60", "label": "Clinic calendar", "state": "ready", "ready": true },
"actions": [
{ "action": "GOOGLECALENDAR_FIND_FREE_SLOTS", "name": "Find free time", "name_he": "חיפוש זמן פנוי", "description": "Check when the calendar is busy between two times, to find free time.", "effect": "read", "default": true }
],
"status": "live"
}
],
"draft_version": 12,
"draft_has_changes": false,
"separate_action_tools": []
}
status | Meaning |
|---|---|
live | The published version uses exactly these actions. |
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 needs to be reconnected (POST /tool-connections/{id}/reconnect). |
separate_action_tools lists accounts this agent uses through tools of their own, one per action, built before integrations existed. When switchable is true, POST /agents/{id}/integrations with replace_action_tools: true swaps them for the whole integration. Those tools themselves are not changed or deleted.
An agent on the previous engine answers 422 AGENT_ENGINE_UNSUPPORTED; it can use integrations once it moves to the new engine.
Inputs, and steps with their own settings
Each action also carriesbinding_id, inputs (where each input’s value comes from: Fixed, from the call, AI or a list - see setting inputs), input_specs (how the catalogue says each input is set), bindable (false on a tool built before it could take the agent’s own calendar; the first write that fixes one rebuilds it) and overrides, the steps with their own settings for it (node_id, binding_id, inputs; held reliably only with strict_mode on - see a step’s own settings). tool_grants lists the saved webhooks and call transfers given to every step, each with its binding_id and inputs.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 integrations.