Skip to main content
GET
Read a saved tool test
Requires tools:read. Poll the exact tool/test pair in the active workspace. States include accepted, prepared, running, succeeded, failed, blocked, pending, unknown, and cancelled.
outcome.effect_status: "not_dispatched" identifies a no-effect result such as mock execution. blocked always means nothing was sent. A real test that reads blocked with outcome.error_code: "url_resolves_private" sent nothing: the tool’s host resolved to a loopback, private or link-local address when it was called (a name that rebinds), so the request never left and there is nothing to reconcile. Point the tool at a host whose every answer is public. A test that settles failed with error_code: "tool_test_validation_failed" was given inputs the frozen revision’s schemas refuse. Starting a test reads the inputs against the tool’s current schemas and names the field there, so this reaches a settled test only for a pinned revision_id or a schema rule the start does not read — compare inputs with that revision’s input_schema from Get tool. resolution: "manual_reconciliation_required" means the original action needs investigation; do not create a duplicate action to guess its outcome. A late receipt may appear with receipt_settled_test: false without changing the settled test status. A real test (policy: "allowlist") that reached an HTTP tool’s endpoint is also a delivery, and delivery_id names it: Get delivery reads that row, which List deliveries returns with source: "test" and this tool’s tool_id. Both give one verdict for the one request. An endpoint that answered with an error — a 4xx or a 5xx — refused it: this test reads status: "failed" with outcome.status and outcome.effect_status "failed", outcome.error_code: "downstream_http_error", outcome.http_status equal to the delivery’s response_status, and no resolution; the delivery reads status: "failed" too. outcome.retryable is always false: Yappr never sends a tool’s request again on its own, because a tool may change data. Sending it again is your call — the delivery says retryable: true, and POST /deliveries/{id}/retry sends it once more. An endpoint that answered 2xx with a body the tool could not use — not the tool’s Outputs, not JSON, or over 256 KB — got the request: the test reads failed with error_code and outcome.error_code "output_schema_invalid", "invalid_json_response" or "response_too_large", outcome.effect_status "succeeded" and the 2xx in outcome.http_status, and its delivery reads failed with the same reason and cannot be sent again (the endpoint already acted on it). On output_schema_invalid, outcome.output_fields names each Output field the tool declares that the answer left out ("problem": "missing") or did not match ("mismatched") — names from the tool’s schema, never a value — and the delivery’s error_message names them too (“…but not with the tool’s outputs (missing: booking_id)”). Change the tool’s Outputs to what your endpoint returns, or make it return them, and run a new test. An answer over what Yappr holds (4,096 values, a list of 256 items) that the agent calls during the conversation is cut to the first items of its largest list instead, and outcome.output_trimmed names each cut list (path, kept, of); kept is what the agent receives, and the output shown here is shortened separately for display. unknown with resolution: "manual_reconciliation_required" is kept for a request that got no answer at all (a timeout, a dropped connection), which may or may not have reached your system; its delivery reads unknown too, and is sent again only when you say you know that ({"acknowledge_unknown": true}). A settled test names its reason in the top-level error_code as soon as its request has settled, the same code as outcome.error_code. delivery_id is null when no request left (a mock, a connected-app action, a request refused before sending) and on tests that settled before 25 September 2026; those read a 5xx as unknown. Output is a bounded redacted display. Secrets, URLs, raw diagnostic envelopes and provider operation IDs stay private. The tool’s own configuration is withheld by the rule its delivery follows: a header value, or a value of the address’s query, of six characters or more reads [REDACTED] wherever it appears — in a value, inside a longer string or a number, or in a key. A shorter header value reads [REDACTED] only where it is a whole JSON string: never inside other text, a key or a number, and never in one of the call fields Yappr writes itself (call.version, call.phase, the ids). The four headers the platform sets (Content-Type, X-Webhook-Event, X-Webhook-Test, X-Webhook-Delivery-Attempt) are never withheld, even when configured, and a query value shorter than six characters (v=1) is not withheld at all. The preview hides more than its delivery does, so the two can differ: it leaves out a member whose name looks private (headers, token, authorization and the like) or contains a configured value, where the delivery shows that key as [REDACTED], and it shows every address as [REDACTED_URL]. Read redaction.redacted and redaction.truncated; do not use this preview as execution input. The returned run_id grants no access to call history. This read takes no body and no Idempotency-Key, so beyond the account-wide 401 (missing, invalid or expired key, or a key without tools:read) it has only three failures: 403 WORKFLOW_TOOL_TEST_DENIED (this key is not authorized for the workspace that owns the test), 404 WORKFLOW_TOOL_TEST_NOT_FOUND (check both ids — a test belongs to exactly one tool) and 503 WORKFLOW_TOOL_TEST_UNAVAILABLE (tool testing is off for this workspace, or temporarily unavailable — retry). The conflict, validation and busy codes belong to starting a test, never to reading one. See Error Codes.

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
test_id
string<uuid>
required

Response

Safe saved test state, including unknown/manual reconciliation and late-receipt distinction.

test_id
string<uuid>
required
run_id
string<uuid>
required

Shared journal identity only; this ID does not grant access to call history.

tool_id
string<uuid>
required
revision_id
string<uuid>
required
phase
enum<string>
required
Available options:
before,
during,
after
channel
enum<string>
required
Available options:
phone,
web
policy
enum<string>
required
Available options:
mock,
allowlist
status
enum<string>
required

blocked — nothing was sent. failed — the endpoint refused it, or answered 2xx with a body the tool could not use; its delivery reads failed too. unknown — no answer came back; its delivery reads unknown too.

Available options:
accepted,
prepared,
running,
succeeded,
failed,
blocked,
pending,
unknown,
cancelled
redaction
object
required
created_at
string<date-time>
deadline_at
string<date-time>
completed_at
string<date-time> | null
error_code
string | null

Why a settled test did not succeed — the same code as outcome.error_code once its request has settled.

invocation_id
string | null
attempt_id
string<uuid> | null
receipt_id
string | null
receipt_settled_test
boolean

Distinguishes the receipt that settled this test from a later receipt.

resolution
enum<string> | null

Set only when no answer came back (a timeout or dropped connection); an endpoint that answered with an error settles failed with no resolution.

Available options:
manual_reconciliation_required,
null
replayed
boolean
delivery_id
string<uuid> | null

The delivery this real HTTP test's request made (GET /deliveries/{id}), with the same verdict; POST /deliveries/{id}/retry sends it again. Null when no request left (mock, connected-app action, refused before sending) and on tests settled before 2026-09-25.

outcome
object | null

Bounded redacted display projection, never raw vendor evidence or an execution input. A late outcome does not rewrite settled test status. An endpoint that answered with an error (4xx or 5xx) reads status and effect_status failed with error_code downstream_http_error and its http_status. One that answered 2xx with a body the tool could not use reads status failed, effect_status succeeded, and error_code output_schema_invalid, invalid_json_response or response_too_large (a body over 256 KB, or one with more values than Yappr holds that no cut can fit). blocked means nothing was sent.