Skip to main content
GET
List tools
Requires tools:read. Use GET /tools?workflow=true&limit=50 for the canonical revision catalog, returning { "data": [], "next_cursor": null }. Continue with the opaque cursor and the same limit, workspace and environment. The maximum canonical page size is 50.

Finding a tool by name

name narrows the default list to tools whose name contains that text — case-insensitive, anywhere in the name, newest first:
Every character matches itself: %, _ and * are not wildcards. Leading and trailing spaces are ignored, and the value is 1–200 characters; an empty, repeated or over-long name is refused with 400 TOOLS_QUERY_INVALID. With name, pagination.total counts the matches. It applies to the default list and to agent_id, and to the archived tools (workflow=true&status=archived). The rest of the workflow=true catalog has no name filter, so name sent there is refused with 400 TOOLS_QUERY_INVALID rather than ignored; leave workflow=true out to find a tool by name — each workflow tool on the default list carries the same workflow object. Archived tools are omitted unless you ask for them with status=archived (see Archived tools). Every row, on both lists, is the object that tool’s own Get tool answers with — no private URL queries, header values or execution contracts are returned:
  • A workflow-owned tool carries workflow_version: "workflow_v1" and its workflow object, with current, candidate, head_revision_id and head_generation, and the configured_header_names of its current revision. It has no type and no config; what it does lives in its revision, not in a webhook configuration.
  • A legacy row carries type and config, where config reports configured_header_names and never headers.
Pending new tools remain identifiable while materialization progresses.

Tools whose creation failed

A Create tool that is accepted but cannot be built — an unreachable endpoint contract, a disconnected account — keeps its id and settles at workflow.status: "failed", with the reason in workflow.error_code. It has no revision, cannot be bound to a step, and never becomes a usable tool; it stays readable at GET /tools/{id} so the failure can be read after the fact. Those rows are not in the default list. Use status on workflow=true to reach them: workflow.status also reads failed when an edit to a tool that already has a revision failed — a save conflict, an invalid contract, an account that went away. That tool is not a failed creation: it keeps its promoted head, is still bound to whatever steps use it, and stays on the default list. The rows this filter separates are the ones with workflow.current: null. Any other value is refused with 422 WORKFLOW_TOOL_REQUEST_INVALID, usable included — the default is what an omitted status means, not a value to send. On the mixed list (without workflow=true) the one status is archived: a failed creation has no tools row, so it was never there, and failed or all sent there is refused with 400 TOOLS_QUERY_INVALID rather than ignored, as is status with agent_id. With status=failed the failed creations are read directly, so a page holds up to limit of them. Omitted or all, filtering happens after the page is read, so a page can hold fewer rows than limit while next_cursor still says there is more; follow the cursor rather than the row count. To retry a failed creation, fix what it failed on and send the whole tool again to the same id with PATCH /tools/{id}. Creating it again makes a second tool beside the failed one.

Archived tools

A tool archived with DELETE /tools/{id} leaves both lists. To find one again — to restore it with POST /tools/{id}/restore when its id is lost — ask for status=archived:
Each row is the archived tool’s short form — id, name, description, workflow_version, is_active: false, created_at, updated_at, archived: true, archived_at and workflow.kind — the answer GET /tools/{id} gives it too. The most recently archived come first, and name narrows the list the same way it narrows the default list. Its revisions are not read while it is archived: GET or POST /tools/{id}/workflow-revisions answers 404 WORKFLOW_TOOL_ARCHIVED naming the restore. On the default list, status=archived pages by limit and offset like the rest of that list and works with name. next_cursor is signed: pass it back exactly as it is, with the same limit, status and name, and never build or edit one. It carries the last row’s id (on the archived list, also when that tool was archived) and no workspace id; the signature is what ties it to its list. A cursor belongs to the one list it was cut for, so a cursor from the archived list sent to the default list or to status=failed — or one with another status, name or limit, or one that was edited — is refused with 422 WORKFLOW_TOOL_CURSOR_INVALID rather than answered from wherever it points. Cursors handed out before 2 October 2026 are refused the same way: read the first page again. The default mixed list and the agent_id filter are temporary migration boundaries. agent_id filters legacy attachments only, so a workflow agent with tools bound and published answers {"data":[]} — an empty list there is not a broken read and not an agent without tools. To see a workflow agent’s tools, read GET /agents/{id}/workflow and look at draft.document.bindings; each tool_revision_id is a revision id from GET /tools/workflow-catalog. Two rows may carry the same name. Tool names are not unique in a workspace and never have been — see Create tool for what a create answers when the name is already taken. Match a tool by id, never by name, and to go the other way — from a tool to the agents using it — read GET /tools/{id}/bindings.

Query parameters

The mixed list takes name, agent_id, limit and offset; limit is 1–100, and a larger value is clamped to 100, which pagination.limit reports. With workflow=true the list takes limit, cursor and status instead, and a name there is refused unless status is archived (see above). Each parameter is sent once. Anything else — search, q, or a parameter that belongs to the other list — is refused with 400 TOOLS_QUERY_INVALID, naming it, rather than answered with every tool.

Errors

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

workflow
boolean

Select canonical tools. Response is data plus next_cursor, not offset pagination.

cursor
string

Opaque, signed continuation for workflow=true. Send it back unchanged with the same limit (1–50), status and name; a cursor from any other list, or one that was edited, is refused with 422 WORKFLOW_TOOL_CURSOR_INVALID.

status
enum<string>

archived lists only the tools archived with DELETE /tools/{id}, each in its short form with archived_at, to find one to restore with POST /tools/{id}/restore - on workflow=true by cursor, most recently archived first, narrowed by name if sent, on the mixed list by limit/offset, where it is the only value (failed or all there, or status with agent_id, is 400 TOOLS_QUERY_INVALID). The rest is for workflow=true. Omitted, the page leaves out tools whose creation failed - workflow.status failed with workflow.current null; failed returns only those; all returns everything that is not archived. A tool whose later edit failed keeps its promoted head and stays on the default list. Any other value is refused with 422 WORKFLOW_TOOL_REQUEST_INVALID. With failed, the failed creations are read directly, so a page holds up to limit of them. Omitted or all, filtering happens after the page is read, so a page can be shorter than limit while next_cursor still says there is more.

Available options:
failed,
archived,
all
agent_id
string<uuid>

Filter tools attached to a specific agent. When provided, also returns execution_order and config_override per tool.

name
string

For the default list and agent_id. Only tools whose name contains this text, case-insensitively, anywhere in the name — newest first, with pagination.total counting the matches. Every character matches itself: %, _ and * are not wildcards. Leading and trailing spaces are ignored. On workflow=true it narrows only status=archived; the rest of that catalog has no name filter, so name with workflow=true and any other status is refused with 400 TOOLS_QUERY_INVALID rather than ignored.

Required string length: 1 - 200
limit
integer
default:50
Required range: x <= 100
offset
integer
default:0

Response

List of tools

next_cursor
string | null

Canonical workflow list continuation.

data
object[]

Temporary legacy webhook/function migration boundary. New tools use the workflow variant.

pagination
object