Skip to main content
GET
Get tool
Requires tools:read. Workflow-owned tools return workflow_version: "workflow_v1" with a safe workflow.current revision, optional candidate, head_revision_id, head_generation, durable status, and error_code.

An archived tool

A tool archived with DELETE /tools/{id} is still this workspace’s, and is read in a short form: id, name, description, workflow_version, is_active: false, created_at, updated_at, archived: true, archived_at and workflow.kind. Its revisions are not read while it is archived. Put it back with POST /tools/{id}/restore, which answers the whole tool; GET /tools?workflow=true&status=archived lists every archived tool.

A tool an integration runs

When a connected account is given to an agent (POST /agents/{id}/integrations), each of its actions runs through one tool made for that account and action, shared by every agent the account is given to. Reading one answers the usual tool plus integration, naming the account and the action:
The tool belongs to the integration: PATCH /tools/{id} answers 409 INTEGRATION_ACTION_MANAGED, DELETE /tools/{id} does too while an agent still uses it, and GET /tools leaves it out. Every other tool has no integration member.

A tool whose creation failed

A create that never built has no revision: workflow.status is failed (or accepted/claimed while it is still being built), workflow.current is null and there is no head_revision_id. Its workflow.error_code says why, workflow.requested says what it asked for, so it can be sent again, and created_at is when it was first asked for (a retry does not move it), which tells same-named failed creations apart:
For an http tool, requested carries everything but its credentials, in the shape a built tool’s revision shows them:
url_display is the address without its query, fragment or user:password; url_redacted is true when one of those was taken off, so send the full address again. Header values are never echoed: send each name in configured_header_names with its value again. Fix it with PATCH /tools/{id} or remove it with DELETE /tools/{id}.

The two names for the same token

The tokens that say which revision you read are named one way here and another way on the way back in. They are the same two values; copy them across: Both are required on an update and refused on a create, where there is no head to compare against. A stale pair answers 409: reload, review, and submit a new change rather than retrying the same body. Use this endpoint to poll accepted materialization or queued promotion. Reading does not execute actions or create a new revision. An archived tool answers its short form (see An archived tool); a tool from another workspace, or one that does not exist, returns 404. HTTP configuration returns url_display, redaction metadata, method, and configured header names, never private URL query/userinfo/fragment or header values. App configuration returns local account and metadata IDs, labeled-account readiness, a dated version, fixed values, and public schemas—not the connected-app service’s own project, configuration or account identifiers. Use omitted URL/header fields when retaining private values on update.

url_replacement_required is always true

An HTTP tool’s configuration comes back as a display projection, never as something you can send back:
  • url_display is scheme, host and path only, and it is readable: any key with tools:read, and anyone who can open the tool in the dashboard, sees the address the tool calls. Any query string, fragment and userinfo is stripped before the value ever leaves the platform — the query is the private part, not the address.
  • url_redacted says whether anything was stripped — true means the saved URL carries a query string you cannot see here.
  • configured_query_names / configured_header_names name what is configured, never the values.
  • empty_header_names / empty_query_names appear only when something is empty: a header saved with no value, a query parameter written name= with nothing after it. A tool that a Duplicate with fork_tools made for the copy starts that way, because values are never copied. Send the values with PATCH /tools/{id} (the whole URL, for a query part); until then the tool sends them empty, and a workflow check names the tool in a tool_values_missing warning.
  • url_replacement_required is the constant true, on every read, for every HTTP tool. It is not a per-tool flag and it never turns off.
It reads as a constant because it states a rule rather than a condition: since the projection is lossy, a revision that changes the URL must send the whole URL again, including the query string. Round-tripping url_display back into Add a tool contract revision would quietly drop the part you could not see. To keep the saved URL and its query exactly as they are, omit the URL field from the revision instead — the same rule the configured headers follow.

A legacy tool’s headers come back the same way

A tool that predates workflow ownership answers with type and config instead of workflow, and its request headers follow the same rule:
config.headers is not in the answer — not here, not in List tools, not in the tools embedded in Get agent, and not in the object POST/PATCH /tools echoes back. configured_header_names names what is stored, sorted, and nothing more. Keeping a header you cannot read means sending null under its exact name, or leaving headers out of the change altogether — see Update tool.

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

Tool details

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

id
string<uuid>
required
type
enum<string>
required
Available options:
webhook,
function
name
string

Normalized to camelCase (e.g. 'capture_lead' → 'captureLead')

description
string | null
config
object

Webhook configuration. Request header values are never returned: a read omits config.headers entirely and reports the names in config.configured_header_names. Writes are per header, the same rule a workflow tool follows — omitting headers keeps every stored header, an explicit empty object clears them all, a string sets one, null keeps the value already stored under that exact name, and a stored name you leave out of a headers you did send is removed. On POST /tools nothing is stored yet, so null is refused with 400. A legacy transfer tool (made in the dashboard) carries destination, announce_transfer and announce_message, and may carry transfer_method, pbx_feature_code and pbx_feature_code_hangup_after_secs: the same keys, values and rules as on a flow's TransferNode, with destination in place of transfer_to.

is_active
boolean
created_at
string<date-time>
updated_at
string<date-time>