curl --request GET \
--url https://api.goyappr.com/tools/{id}/bindings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/tools/{id}/bindings"
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/tools/{id}/bindings', 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/tools/{id}/bindings",
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/tools/{id}/bindings"
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/tools/{id}/bindings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/tools/{id}/bindings")
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{
"tool_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"head_revision_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123,
"has_more": true,
"data": [
{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_name": "<string>",
"environment": "local",
"binding_id": "<string>",
"tool_revision_policy": "follow_current",
"tool_revision_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"effective_revision_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rotation_reaches": true,
"published": true,
"draft": true
}
]
}{
"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>",
"path": "<string>",
"message": "<string>",
"node_id": "<string>",
"label": "<string>",
"tool_name": "<string>",
"field": "<string>"
}
],
"warnings": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"node_id": "<string>",
"label": "<string>",
"tool_name": "<string>",
"field": "<string>"
}
]
}List Tool Bindings
Requires tools:read. Answers “who is using this tool” — and, after a credential rotation, “who still holds the old one”. One row per agent binding, from the agent’s saved draft and from the revision it publishes calls from. Header values are never part of this answer.
curl --request GET \
--url https://api.goyappr.com/tools/{id}/bindings \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.goyappr.com/tools/{id}/bindings"
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/tools/{id}/bindings', 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/tools/{id}/bindings",
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/tools/{id}/bindings"
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/tools/{id}/bindings")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.goyappr.com/tools/{id}/bindings")
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{
"tool_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"head_revision_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"total": 123,
"has_more": true,
"data": [
{
"agent_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"agent_name": "<string>",
"environment": "local",
"binding_id": "<string>",
"tool_revision_policy": "follow_current",
"tool_revision_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"effective_revision_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"rotation_reaches": true,
"published": true,
"draft": true
}
]
}{
"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>",
"path": "<string>",
"message": "<string>",
"node_id": "<string>",
"label": "<string>",
"tool_name": "<string>",
"field": "<string>"
}
],
"warnings": [
{
"code": "<string>",
"message": "<string>",
"path": "<string>",
"node_id": "<string>",
"label": "<string>",
"tool_name": "<string>",
"field": "<string>"
}
]
}tools:read. Answers the one question a credential rotation depends on: which agents reference this tool, and does the new revision reach them.
Each row is one binding — the agent, the binding id inside its workflow document, the revision the binding names, and the revision calls actually use. published: true means the binding is in the revision that agent is taking calls from right now; draft: true means it is in the draft an author is editing. A binding can be both.
Reading it after a rotation
rotation_reaches is the column to sort by.
| Row | What it means |
|---|---|
tool_revision_policy: "follow_current", rotation_reaches: true | The binding moves with the tool. effective_revision_id is the head, so this agent is on the new header value once the tool’s promotion completes. Nothing to do. |
tool_revision_policy: "pinned", rotation_reaches: false | The binding is held on the revision it names, and that revision still carries the old header value. Rotating the credential does not reach this agent. |
tool_revision_policy: "pinned" — so the fix is deliberate too: save that binding back to follow_current, or rebind it, then publish the agent.
An archived tool
An archived tool keeps its bindings, so this answers for it as for any other: after aDELETE /tools/{id} it lists the agents whose steps still name the tool. A version of the agent that is already live (published: true) keeps running the tool on calls until the agent is published again, and the agent cannot be published or duplicated until you restore the tool or remove the step.
total counts every binding that references the tool, including any beyond the page; has_more says whether the page was cut. head_revision_id is null only while a brand-new tool is still being built.
Example
curl -s https://api.goyappr.com/functions/v1/api-v1/tools/7cb551bf-1964-4c62-9a16-8bb8b775e0c9/bindings \
-H "Authorization: Bearer $YAPPR_API_KEY" \
-H "x-company-id: $YAPPR_COMPANY_ID"
{
"tool_id": "7cb551bf-1964-4c62-9a16-8bb8b775e0c9",
"head_revision_id": "11c1028c-f6a3-49ad-b934-b183ff238ef5",
"total": 2,
"has_more": false,
"data": [
{
"agent_id": "de851737-78cf-45db-9442-8a83c513484f",
"agent_name": "Store one",
"environment": "testing",
"binding_id": "lookup-order",
"tool_revision_policy": "follow_current",
"tool_revision_id": "24f626ff-09ec-4b99-9254-1383db2700d5",
"effective_revision_id": "11c1028c-f6a3-49ad-b934-b183ff238ef5",
"rotation_reaches": true,
"published": true,
"draft": true
}
]
}
configured_header_names and nothing else about a stored credential.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 bindings that reference this tool.