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

# Read workflow tool catalog

> Discover company-authorized current and explicitly pinned revisions.

Requires `tools:read`. This is the safe binding picker projection of the same
Tools registry, not a second catalog or execution path.

**limit** `integer` (default: 20)

Page size, 1–50.

**cursor** `string`

Opaque cursor; preserve the same company, limit and revision query.

**revision\_ids** `string`

Up to 10 comma-separated local revision UUIDs to inspect existing exact bindings.

```bash theme={null}
curl 'https://api.goyappr.com/tools/workflow-catalog?limit=20' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -H 'x-company-id: COMPANY_ID'
```

### 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}`](https://docs.goyappr.com/api-reference/tools/get) 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=`](https://docs.goyappr.com/api-reference/tools/list) 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.

| `kind` | Channels | Phases | What it is |
| - | - | - | - |
| `http` | `["phone","web"]` unless the contract narrows it | all three unless the contract narrows them | Your own endpoint. |
| `app` | as the action's contract allows | as the action's contract allows | One action on a connected account. |
| `transfer` | always `["phone"]` | always `["during"]` | **Hand the live call to a person, or back to the caller's own phone system.** One named destination per tool, and the only way to transfer a call. |

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`](https://docs.goyappr.com/api-reference/tools/create) 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](https://docs.goyappr.com/concepts/sip-trunks.md#transfers), 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.


## OpenAPI

````yaml GET /tools/workflow-catalog
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/workflow-catalog:
    get:
      tags:
        - Workflows
      summary: List safe workflow binding revisions
      description: >-
        Requires tools:read. Safe company catalog used by the builder. Current
        revisions are selectable; explicit historical references describe
        existing/pinned bindings only. No raw execution configuration, private
        credential or provider account ID is included. Intrinsic End is not a
        tool. Responses have a1MiB technical budget; reduce limit/references
        on413.
      operationId: listWorkflowCatalog
      parameters:
        - in: header
          name: x-company-id
          schema:
            type: string
            format: uuid
          description: >-
            Explicit active workspace. Optional; when sent it must be the API
            key's own workspace — any other value is refused with 403
            WORKSPACE_MISMATCH.
        - in: query
          name: limit
          schema:
            type: integer
            minimum: 1
            maximum: 50
            default: 20
        - in: query
          name: cursor
          schema:
            type: string
            maxLength: 512
          description: Opaque continuation bound to company and unchanged query.
        - in: query
          name: revision_ids
          schema:
            type: string
            maxLength: 369
          description: >-
            Up to10 comma-separated local revision UUIDs; do not use vendor
            identifiers.
      responses:
        '200':
          description: Current and explicitly referenced safe revisions.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - references
                  - unavailable_revision_ids
                  - next_cursor
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/WorkflowCatalogRevision'
                  references:
                    type: array
                    items:
                      $ref: '#/components/schemas/WorkflowCatalogRevision'
                  unavailable_revision_ids:
                    type: array
                    items:
                      type: string
                      format: uuid
                  next_cursor:
                    type:
                      - string
                      - 'null'
        '400':
          description: >-
            WORKFLOW_CATALOG_QUERY_INVALID - an unknown or repeated parameter, a
            limit outside 1-50, malformed revision_ids, or a cursor issued for
            another query. The message says what the parameter takes and
            issues[0].path names it; tool_id is not a parameter here - read one
            tool with GET /tools/{id}.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            MISSING_KEY, INVALID_KEY or EXPIRED_KEY - the key was not accepted.
            A valid key without the scope this operation needs is 403
            INSUFFICIENT_SCOPE, naming the scope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >
            WORKSPACE_MISMATCH — `x-company-id` named a workspace other than the
            one this API key belongs to.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '413':
          description: WORKFLOW_CATALOG_TOO_LARGE or WORKFLOW_CATALOG_ITEM_TOO_LARGE.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: WORKFLOW_CATALOG_UNAVAILABLE.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    WorkflowCatalogRevision:
      type: object
      required:
        - id
        - tool_id
        - revision
        - name
        - description
        - kind
        - input_schema
        - output_schema
        - allowed_phases
        - allowed_channels
        - is_current
        - available
      properties:
        id:
          type: string
          format: uuid
        tool_id:
          type: string
          format: uuid
        revision:
          type: integer
          minimum: 1
        name:
          type: string
        description:
          type: string
        kind:
          type: string
          enum:
            - http
            - app
            - transfer
        input_schema:
          type: object
          additionalProperties: true
        output_schema:
          type: object
          additionalProperties: true
        allowed_phases:
          type: array
          items:
            type: string
            enum:
              - before
              - during
              - after
        allowed_channels:
          type: array
          items:
            enum:
              - phone
              - web
            type: string
        is_current:
          type: boolean
        available:
          type: boolean
        archived:
          type: boolean
          description: >-
            On a revision with `available` false only. True when its tool is
            archived (restore it with POST /tools/{id}/restore); false when the
            tool is not archived and an app tool's connected account is what is
            no longer usable. Absent when it could not be read.
        connection:
          type: object
          required:
            - id
            - label
            - ready
          properties:
            id:
              type: string
              format: uuid
            label:
              type: string
            ready:
              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.