Skip to main content
GET
List the agents bound to a tool
Requires 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. A pinned binding is deliberate — it is only ever created by a whole-document save that sets 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 a DELETE /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

Header values are never in this response, on any row — the same rule as Get tool, which returns configured_header_names and nothing else about a stored credential.

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).

Path Parameters

id
string<uuid>
required

Response

The bindings that reference this tool.

tool_id
string<uuid>
head_revision_id
string<uuid> | null

The tool's current revision — what a follow-current binding resolves to.

total
integer

Every binding that references this tool, including any past the page.

has_more
boolean
data
object[]