> ## Documentation Index
> Fetch the complete documentation index at: https://docs.goyappr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Saved Tool Test

> Requires tools:read and current authorization for the exact workspace/tool/test. Returns the shared durable outcome projection; never raw credentials, URLs or private vendor evidence. A run_id is not call-history authority. This read takes no body and no Idempotency-Key, so beyond the account-wide 401 it answers only 200, 400, 403, 404 and 503.

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

```bash theme={null}
curl https://api.goyappr.com/tools/TOOL_ID/tests/TEST_ID \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-company-id: COMPANY_ID"
```

`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](https://docs.goyappr.com/api-reference/tools/get.md). `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](https://docs.goyappr.com/api-reference/deliveries/get.md) reads that row, which [List deliveries](https://docs.goyappr.com/api-reference/deliveries/list.md) 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`](https://docs.goyappr.com/api-reference/deliveries/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](https://docs.goyappr.com/api-reference/deliveries/get.md#header-values-never-leave-the-platform) 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](https://docs.goyappr.com/api-reference/errors.md), never to reading one. See [Error Codes](https://docs.goyappr.com/api-reference/errors.md).


## OpenAPI

````yaml GET /tools/{id}/tests/{test_id}
openapi: 3.1.0
info:
  title: Yappr API
  description: >
    Create and manage AI voice agents, purchase phone numbers, configure tools,
    and initiate calls — all via REST.
  version: 1.0.0
  contact:
    url: https://goyappr.com
servers:
  - url: https://api.goyappr.com
    description: Production
security:
  - apiKey: []
paths:
  /tools/{id}/tests/{test_id}:
    get:
      tags:
        - Tools
      summary: Read a saved tool test
      description: >-
        Requires tools:read and current authorization for the exact
        workspace/tool/test. Returns the shared durable outcome projection;
        never raw credentials, URLs or private vendor evidence. A run_id is not
        call-history authority. This read takes no body and no Idempotency-Key,
        so beyond the account-wide 401 it answers only 200, 400, 403, 404 and
        503.
      operationId: getWorkflowToolTest
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            format: uuid
        - in: path
          name: test_id
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: >-
            Safe saved test state, including unknown/manual reconciliation and
            late-receipt distinction.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/WorkflowToolTest'
        '400':
          description: >-
            TOOLS_QUERY_INVALID — a query parameter was sent; this read takes
            none, and the message names it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: MISSING_KEY, INVALID_KEY or EXPIRED_KEY - the key was not accepted.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            INSUFFICIENT_SCOPE — the key does not hold tools:read, and the
            message names it. WORKFLOW_TOOL_TEST_DENIED — this key is not
            authorized for the workspace that owns the test.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: >-
            WORKFLOW_TOOL_TEST_NOT_FOUND — that tool and test pair is not in
            this workspace. Check both ids.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            WORKFLOW_TOOL_TEST_UNAVAILABLE — tool testing is off for this
            workspace, or temporarily unavailable; retry the same request.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    WorkflowToolTest:
      type: object
      required:
        - test_id
        - run_id
        - tool_id
        - revision_id
        - phase
        - channel
        - policy
        - status
        - redaction
      properties:
        test_id:
          type: string
          format: uuid
        run_id:
          type: string
          format: uuid
          description: >-
            Shared journal identity only; this ID does not grant access to call
            history.
        tool_id:
          type: string
          format: uuid
        revision_id:
          type: string
          format: uuid
        phase:
          type: string
          enum:
            - before
            - during
            - after
        channel:
          enum:
            - phone
            - web
          type: string
        policy:
          type: string
          enum:
            - mock
            - allowlist
        status:
          type: string
          enum:
            - accepted
            - prepared
            - running
            - succeeded
            - failed
            - blocked
            - pending
            - unknown
            - cancelled
          description: >
            `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.
        created_at:
          type: string
          format: date-time
        deadline_at:
          type: string
          format: date-time
        completed_at:
          type:
            - string
            - 'null'
          format: date-time
        error_code:
          type:
            - string
            - 'null'
          description: >-
            Why a settled test did not succeed — the same code as
            `outcome.error_code` once its request has settled.
        invocation_id:
          type:
            - string
            - 'null'
        attempt_id:
          type:
            - string
            - 'null'
          format: uuid
        receipt_id:
          type:
            - string
            - 'null'
        receipt_settled_test:
          type: boolean
          description: >-
            Distinguishes the receipt that settled this test from a later
            receipt.
        resolution:
          type:
            - string
            - 'null'
          enum:
            - manual_reconciliation_required
            - null
          description: >-
            Set only when no answer came back (a timeout or dropped connection);
            an endpoint that answered with an error settles failed with no
            resolution.
        replayed:
          type: boolean
        delivery_id:
          type:
            - string
            - 'null'
          format: uuid
          description: >-
            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:
          type:
            - object
            - 'null'
          description: >-
            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.
          properties:
            status:
              type: string
              enum:
                - succeeded
                - failed
                - blocked
                - pending
                - unknown
            effect_status:
              type: string
              enum:
                - not_dispatched
                - succeeded
                - failed
                - pending
                - unknown
            output:
              description: Redacted typed JSON display value.
            error_code:
              type:
                - string
                - 'null'
            http_status:
              type:
                - integer
                - 'null'
            retryable:
              const: false
              description: >-
                Yappr never sends a tool's request again on its own. To send it
                again, retry the delivery named by delivery_id.
            output_fields:
              type: array
              maxItems: 10
              description: >
                Only on `output_schema_invalid`, and only when the engine could
                name them: each Output field the tool declares that the answer
                left out (`missing`) or did not match (`mismatched`) - the name
                from the tool's own schema, never a value from the answer.
                Absent when the answer as a whole was wrong (not an object).
              items:
                type: object
                required:
                  - name
                  - problem
                properties:
                  name:
                    type: string
                  problem:
                    type: string
                    enum:
                      - missing
                      - mismatched
            output_trimmed:
              type: array
              maxItems: 10
              description: >
                Only when the answer was larger than Yappr can hold (more than
                4,096 values, or a list of more than 256 items) and was cut
                instead of refused: each list that shows only its first items.
                The agent is told the same, so it says there is more rather than
                reading a partial list as the whole, and a rule or a later step
                never reads a cut list, or an item past the cut, as if it were
                whole. Structure only, never a value from the answer; absent
                when the answer was held whole. Only a tool the agent calls
                during the conversation is cut: an answer to a step before or
                after the call, to a step inside a sequence, or to the calendar
                availability check is refused as before.
              items:
                type: object
                required:
                  - path
                  - kept
                  - of
                properties:
                  path:
                    type: string
                    description: >-
                      JSON Pointer to the list inside `output`; the empty string
                      when `output` itself is the list. A key that is not a
                      plain identifier (letters, digits, `_`, `-`) is shown as
                      `*`.
                  kept:
                    type: integer
                    minimum: 1
                    description: >-
                      How many items the agent receives - the first ones,
                      unedited. The `output` a test displays is shortened
                      separately for display (its lists show at most 64 items),
                      so it can show fewer.
                  of:
                    type: integer
                    minimum: 2
                    description: How many items the endpoint or app sent.
        redaction:
          type: object
          required:
            - version
            - redacted
            - truncated
          properties:
            version:
              const: execution-outcome-v1
            redacted:
              type: boolean
            truncated:
              type: boolean
    Error:
      type: object
      required:
        - error
        - code
      description: >
        Every error response - the secret-key API and the browser data plane
        alike - carries a

        human-readable `error` and a stable machine `code`, and a refusal that
        names what is

        wrong with the request carries `issues[]` too. Branch on `code`, never
        on the `error`

        text. A refusal that names nothing more specific carries the code its
        status means:

        `BAD_REQUEST` (400), `UNAUTHORIZED` (401, the browser data plane; the
        secret-key API

        answers `MISSING_KEY`, `INVALID_KEY` or `EXPIRED_KEY`), `BILLING_ERROR`
        (402),

        `FORBIDDEN` (403), `NOT_FOUND` (404), `METHOD_NOT_ALLOWED` (405),
        `CONFLICT` (409),

        `GONE` (410), `PAYLOAD_TOO_LARGE` (413), `UNSUPPORTED_MEDIA_TYPE` (415),

        `UNPROCESSABLE_REQUEST` (422), `RATE_LIMIT` (429), `INTERNAL_ERROR`
        (500),

        `UPSTREAM_ERROR` (502), `SERVICE_UNAVAILABLE` (503), `UPSTREAM_TIMEOUT`
        (504). Some

        refusals add members of their own beside these (a call request's
        `status`, a workflow's

        `current_version`); the operation says which.
      properties:
        error:
          type: string
          description: The refusal, in one sentence for a person. Its wording may change.
        code:
          type: string
          description: The stable code to branch on.
        issues:
          type: array
          description: >
            Each thing at fault, on a 400 or 422 that names them: every query
            parameter or body field, not just the first. `path` is the
            parameter's name or the field's location.
          items:
            type: object
            required:
              - code
              - message
            properties:
              code:
                type: string
                description: >-
                  query_param_unknown, query_param_repeated, query_param_blank,
                  query_param_invalid, field_unknown, field_required,
                  field_invalid, or the route's own word.
              path:
                type: string
              message:
                type: string
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: >-
        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`).

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.