Skip to main content
GET
List safe workflow binding revisions
Requires tools:read. This is the safe binding picker projection of the same Tools registry, not a second catalog or execution path.
integer
default:"20"
Page size, 1–50.
string
Opaque cursor; preserve the same company, limit and revision query.
string
Up to 10 comma-separated local revision UUIDs to inspect existing exact bindings.

Finding one tool

Pages come in tool-id order, not newest first, so a tool made a minute ago can be on any page, and limit stops at 50. To bind a tool you know, do not page: GET /tools/{id} answers its workflow.current.revision_id, input_schema and allowed phases and channels, and ?revision_ids=<that id> returns the same revision here, in references. GET /tools?name= finds a tool’s id by name. The response contains data (current revisions), references (requested historical/current revisions), unavailable_revision_ids and next_cursor. Each revision supplies local id, tool_id, revision number, name, description, kind (http, app, transfer), full input_schema/output_schema, allowed phases/channels, is_current, available and an optional local connection label/readiness. Raw execution configuration and provider identifiers are absent. A revision with available: false also says archived: true when its tool is archived (restore it with POST /tools/{id}/restore), false when the tool is not and an app tool’s connected account is what needs reconnecting. An app tool’s connection is on the row either way, so read archived, not connection, to tell the two apart.

The three kinds, and where each one can run

kind says what the tool is, and allowed_channels / allowed_phases say where a binding on it can run. Read both before you bind: a binding wired outside them is reported when you Check the workflow, as the advisory binding_channel_unsupported or binding_phase_unsupported. It is an advisory and not a refusal — a workflow that already publishes keeps publishing — so it is on you to act on it. A transfer tool exists only once someone has created it, so an empty catalog does not mean the platform cannot transfer. Create one with POST /tools and workflow: {"kind":"transfer","destination":"+972501234567"} — optionally with announce_transfer and announce_message for what the agent says first — then bind it from a during-call step. The destination is either a number or, for calls that arrive through your SIP trunk, the address of your own phone system, "sip:extension@pbx.example.com". A SIP address is refused if it has no extension, carries a password or ?headers, or is not a well-formed address. Your phone system has about nine seconds to have the new call answered; if it refuses or does not answer in time, the call ends (the agent cannot take the caller back), so test the address with a real call first. The channel and phase above are fixed by the platform whatever you send, because a browser call has no second leg to hand over and nothing before or after a call is holding one. Use current available revisions for new selections. Historical references are for existing or explicitly pinned bindings. Tool-only sequence children remain private to their sequence; intrinsic End is not in this list. The response has a 1 MiB technical budget. On 413, reduce limit/reference count; an individually oversized revision requires a smaller supported schema. On 400, check unknown/repeated query fields and cursor scope. 503 means the catalog is unavailable, not empty. Preserve schema numbers losslessly.

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

Headers

x-company-id
string<uuid>

Explicit active workspace. Optional; when sent it must be the API key's own workspace — any other value is refused with 403 WORKSPACE_MISMATCH.

Query Parameters

limit
integer
default:20
Required range: 1 <= x <= 50
cursor
string

Opaque continuation bound to company and unchanged query.

Maximum string length: 512
revision_ids
string

Up to10 comma-separated local revision UUIDs; do not use vendor identifiers.

Maximum string length: 369

Response

Current and explicitly referenced safe revisions.

data
object[]
required
references
object[]
required
unavailable_revision_ids
string<uuid>[]
required
next_cursor
string | null
required