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

# List an agent's tools & integrations

> Requires agents:read. The agent's Tools & integrations in one list, grouped by integration, in the order the dashboard shows them: what the agent has for every step first (connected apps and webhooks or call transfers given to the whole agent, in the order they were added), then what it uses only on some steps (each with the steps in used_in, in the order a call reaches them), then End call, which every agent has. An app is one entry per connected account, titled "<App> · <account>", with its enabled actions; each action carries where each of its inputs comes from, as in a workflow binding - literal (fixed), request or stored (from the call), model (filled by the agent from the conversation; with options, chosen from that list) - and, under overrides, the conversation steps that set their own. A webhook or call transfer is one entry per tool, with one action per binding. Reads the saved draft; status says whether the published version has it. An agent on the previous engine answers engine legacy with the tools attached to it (a flow agent: the tools its steps use), read-only. Ids shaped i_<hex>, i_<hex>_<action>, tg_<hex> and t_<hex> belong to the agent's integrations; do not use them for bindings of your own. Takes no query parameters.


Requires `agents:read`. Everything an agent can use on its calls, in one list grouped by integration, the way the agent's **Tools & integrations** tab in the dashboard shows it:

* **Apps**: one entry per connected account, titled `"<App> · <account>"` (for example `Google Calendar · Simons Calendar`), with the actions the agent has.
* **Webhook**: an HTTP request to your system. One entry per saved webhook tool.
* **Call transfer**: one entry per saved transfer tool. It needs the agent to take phone calls.
* **End call**: built in, and always on.

Entries the agent has on every step come first, in the order they were added. Entries used only on some steps of the workflow follow, each with those steps in `used_in`. End call is last.

```bash theme={null}
curl https://api.goyappr.com/agents/AGENT_ID/tools-and-integrations \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json theme={null}
{
  "engine": "workflow_v1",
  "draft_version": 12,
  "live_version": 3,
  "draft_has_changes": false,
  "channels": ["phone", "web"],
  "data": [
    {
      "id": "i_d3d44b7a",
      "kind": "app",
      "app": "googlecalendar",
      "app_name": "Google Calendar",
      "connection_id": "d3d44b7a-a820-4012-9a57-5e793b3719e2",
      "account_label": "Simons Calendar",
      "title": "Google Calendar · Simons Calendar",
      "scope": "agent",
      "status": "live",
      "used_in": [],
      "actions": [
        {
          "action": "GOOGLECALENDAR_FIND_FREE_SLOTS",
          "name": "Find free time",
          "name_he": "חיפוש זמן פנוי",
          "binding_id": "i_d3d44b7a_find_free_slots",
          "bindable": true,
          "inputs": {
            "items": { "kind": "literal", "value": ["primary"] },
            "time_min": { "kind": "model", "path": "/time_min" },
            "time_max": { "kind": "model", "path": "/time_max" }
          },
          "overrides": [
            { "node_id": "booking", "binding_id": "o_k3j9x0a2b1", "inputs": { "items": { "kind": "literal", "value": ["clinic@group.calendar.google.com"] } } }
          ]
        }
      ]
    },
    {
      "id": "tg_5c1e9a20",
      "kind": "webhook",
      "tool_id": "5c1e9a20-0000-4000-8000-000000000001",
      "title": "Webhook · Send lead to CRM",
      "scope": "agent",
      "status": "live",
      "used_in": [],
      "actions": [{ "action": null, "name": "Send lead to CRM", "binding_id": "t_5c1e9a20", "inputs": {}, "overrides": [] }]
    },
    {
      "id": "handoff_tool",
      "kind": "transfer",
      "tool_id": "7f000000-0000-4000-8000-000000000002",
      "title": "Call transfer · Front desk",
      "scope": "steps",
      "status": "live",
      "used_in": [{ "phase": "during", "node_id": "handoff", "label": "Hand off" }],
      "actions": [{ "action": null, "name": "Front desk", "binding_id": "handoff_tool", "inputs": {}, "overrides": [] }]
    },
    { "id": "end_call", "kind": "end_call", "title": "End call", "scope": "agent", "status": "always_on", "actions": [], "used_in": [] }
  ]
}
```

## Entries

| Field | Meaning |
| - | - |
| `id` | `i_...` for an app, `tg_...` for a webhook or call transfer on every step, the binding's id for an entry used on some steps only, `end_call` for End call. Change an `i_` or `tg_` entry with [`PATCH /agents/{id}/integrations/{integration_id}`](https://docs.goyappr.com/api-reference/agents/integrations-update). |
| `kind` | `app`, `webhook`, `transfer` or `end_call`. |
| `scope` | `agent`: on every conversation step. `steps`: only on the steps in `used_in`; change those in the workflow ([`PUT /agents/{id}/workflow`](https://docs.goyappr.com/api-reference/workflows/save)). |
| `used_in` | Where a `steps` entry is used, in the order a call reaches it. `node_id` is the conversation step's id, `before:<step>` for a step before the call, `after:<trigger>/<step>` for a step after it. |
| `actions` | An app's enabled actions. A webhook or call transfer has one action, its tool, with `action` set to `null`. |

| `status` | Meaning |
| - | - |
| `live` | The published version has it. |
| `not_live` | Saved in the draft only. Publish the agent ([`POST /agents/{id}/workflow/publish`](https://docs.goyappr.com/api-reference/workflows/publish)) to use it on calls. |
| `building` | An action's tool is being rebuilt, for example right after the account was reconnected. It finishes on its own. |
| `reconnect_required` | The account must be reconnected ([`POST /tool-connections/{id}/reconnect`](https://docs.goyappr.com/api-reference/tool-connections/reconnect)). |
| `always_on` | End call: every agent can end its calls. |

## Where each input comes from

Each action's `inputs` names, input by input, where the value comes from. These are the same sources a workflow binding uses:

| Source | In the dashboard | Example |
| - | - | - |
| `{"kind": "literal", "value": ...}` | Fixed | Which calendar: `{"kind": "literal", "value": ["primary"]}`. The agent never sees a fixed input. |
| `{"kind": "request", "path": ...}`, `{"kind": "stored", "path": ...}` | From the call | A field of the call request, or saved context, by JSON pointer. A literal `"{{call.caller_number}}"` is the caller's number. |
| `{"kind": "model", "path": ...}` | AI | The agent fills it from the conversation, for example the time the caller wants. |
| `{"kind": "model", "path": ..., "options": [{"value", "label"}]}` | Choose from a list | The agent picks one of the options, for example one of two doctors' calendars. |

`overrides` lists the conversation steps that set their own sources for an action the agent has on every step. Inputs a step does not name come from the agent's.

`bindable` (apps only) says whether the action's tool can already take a fixed configuration input, such as which calendar, per agent. A tool made before that existed answers `false`; a write that sets such an input updates it first.

To set sources, send `inputs` to [`PATCH /agents/{id}/integrations/{integration_id}`](https://docs.goyappr.com/api-reference/agents/integrations-update). To list an account's calendars for a fixed calendar, use [`GET /tool-connections/{id}/options/calendars`](https://docs.goyappr.com/api-reference/tool-connections/options). To give the agent a saved webhook or call transfer on every step, send `{"tool_id": "..."}` to [`POST /agents/{id}/integrations`](https://docs.goyappr.com/api-reference/agents/integrations-add).

## Agents on the previous engine

A prompt or flow agent answers `"engine": "legacy"` with the tools attached to it (a flow agent: the tools its steps use, with the steps in `used_in`), and End call when it can end calls. These entries are read-only here: their actions and inputs are not listed.

## Errors

| Status | Code | Meaning |
| - | - | - |
| `400` | `AGENTS_QUERY_INVALID` | A query parameter was sent. This read takes none; the message names it. |
| `404` | `AGENT_NOT_FOUND` | No agent with this id in this workspace. |
| `503` | `WORKFLOW_STORAGE_UNAVAILABLE` | Storage could not be read. Try again; nothing was changed. |


## OpenAPI

````yaml GET /agents/{id}/tools-and-integrations
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:
  /agents/{id}/tools-and-integrations:
    get:
      tags:
        - Agents
      summary: List everything an agent can use on calls
      description: >
        Requires agents:read. The agent's Tools & integrations in one list,
        grouped by integration, in the order the dashboard shows them: what the
        agent has for every step first (connected apps and webhooks or call
        transfers given to the whole agent, in the order they were added), then
        what it uses only on some steps (each with the steps in used_in, in the
        order a call reaches them), then End call, which every agent has. An app
        is one entry per connected account, titled "<App> · <account>", with its
        enabled actions; each action carries where each of its inputs comes
        from, as in a workflow binding - literal (fixed), request or stored
        (from the call), model (filled by the agent from the conversation; with
        options, chosen from that list) - and, under overrides, the conversation
        steps that set their own. A webhook or call transfer is one entry per
        tool, with one action per binding. Reads the saved draft; status says
        whether the published version has it. An agent on the previous engine
        answers engine legacy with the tools attached to it (a flow agent: the
        tools its steps use), read-only. Ids shaped i_<hex>, i_<hex>_<action>,
        tg_<hex> and t_<hex> belong to the agent's integrations; do not use them
        for bindings of your own. Takes no query parameters.
      operationId: listAgentToolsAndIntegrations
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The agent's tools & integrations.
          content:
            application/json:
              schema:
                type: object
                required:
                  - engine
                  - data
                properties:
                  engine:
                    type: string
                    enum:
                      - workflow_v1
                      - legacy
                  draft_version:
                    type:
                      - integer
                      - 'null'
                    description: >-
                      The saved draft version this was read from (send it as
                      expected_version on a write). Null for an agent on the
                      previous engine or without a draft.
                  live_version:
                    type:
                      - integer
                      - 'null'
                    description: The published version, or null.
                  draft_has_changes:
                    type: boolean
                    description: The draft holds changes the published version does not.
                  channels:
                    type: array
                    items:
                      enum:
                        - phone
                        - web
                      type: string
                    description: >-
                      How calls reach the agent (its workflow's channels). phone
                      covers incoming calls and the calls the agent places; web
                      covers browser calls and needs no number. A call on a
                      channel the published version leaves out fails at
                      preparation (artifact_unavailable). A call transfer needs
                      phone.
                  data:
                    type: array
                    items:
                      type: object
                      required:
                        - id
                        - kind
                        - title
                        - scope
                        - status
                        - actions
                        - used_in
                      properties:
                        id:
                          type: string
                          description: >-
                            The integration id (i_... for an app, tg_... for a
                            webhook or transfer on every step), a binding id for
                            an entry used on some steps only, or end_call.
                        kind:
                          type: string
                          enum:
                            - app
                            - webhook
                            - transfer
                            - end_call
                        title:
                          type: string
                          description: >-
                            One line: "<App> · <account>" for an app, "Webhook ·
                            <name>", "Call transfer · <name>", or "End call".
                          example: Google Calendar · Simons Calendar
                        scope:
                          type: string
                          enum:
                            - agent
                            - steps
                          description: >-
                            agent = every step; steps = only the steps listed in
                            used_in.
                        status:
                          type: string
                          enum:
                            - live
                            - not_live
                            - building
                            - reconnect_required
                            - always_on
                          description: >-
                            live: the published version has it; not_live: saved,
                            publish the agent to use it; building: an action's
                            tool is being made again; reconnect_required: the
                            account must be reconnected; always_on: End call.
                        app:
                          type: string
                          example: googlecalendar
                        app_name:
                          type: string
                          example: Google Calendar
                        connection_id:
                          type: string
                          format: uuid
                        account_label:
                          type: string
                          example: Simons Calendar
                        tool_id:
                          type: string
                          format: uuid
                        actions:
                          type: array
                          items:
                            type: object
                            required:
                              - name
                              - binding_id
                              - inputs
                              - overrides
                            properties:
                              action:
                                type:
                                  - string
                                  - 'null'
                                description: >-
                                  The app action slug; null for a webhook or a
                                  call transfer.
                              name:
                                type: string
                                example: Find free time
                              name_he:
                                type:
                                  - string
                                  - 'null'
                              binding_id:
                                type: string
                              tool_id:
                                type: string
                                format: uuid
                                description: >-
                                  The tool this binding runs (its current
                                  revision).
                              bindable:
                                type: boolean
                                description: >-
                                  Apps only: whether the action's tool can take
                                  a fixed configuration input (which calendar)
                                  per agent yet. False on a tool made before
                                  that existed: a write that sets one updates it
                                  first.
                              inputs:
                                type: object
                                additionalProperties:
                                  type: object
                                  description: >-
                                    One source, as in a workflow binding: {kind:
                                    literal, value} (fixed), {kind:
                                    request|stored, path} (from the call),
                                    {kind: model, path} (the agent fills it), or
                                    {kind: model, path, options: [{value,
                                    label}]} (the agent picks one of the
                                    options).
                                description: >-
                                  Each input's source by input name, as in a
                                  workflow binding.
                              overrides:
                                type: array
                                description: >-
                                  Conversation steps that set their own sources
                                  for this action (binding_overrides).
                                items:
                                  type: object
                                  properties:
                                    node_id:
                                      type: string
                                    binding_id:
                                      type: string
                                    inputs:
                                      type: object
                                      additionalProperties:
                                        type: object
                                      description: >-
                                        The step's own sources; inputs it does
                                        not name come from the agent's.
                        used_in:
                          type: array
                          description: >-
                            For scope steps: where it is used, in the order a
                            call reaches it. node_id is the conversation step's
                            id, before:<step> for a before-call step,
                            after:<trigger>/<step> for an after-call step.
                          items:
                            type: object
                            properties:
                              phase:
                                type: string
                                enum:
                                  - before
                                  - during
                                  - after
                              node_id:
                                type: string
                              label:
                                type: string
              example:
                engine: workflow_v1
                draft_version: 12
                live_version: 3
                draft_has_changes: false
                channels:
                  - phone
                  - web
                data:
                  - id: i_d3d44b7a
                    kind: app
                    app: googlecalendar
                    app_name: Google Calendar
                    connection_id: d3d44b7a-a820-4012-9a57-5e793b3719e2
                    account_label: Simons Calendar
                    title: Google Calendar · Simons Calendar
                    scope: agent
                    status: live
                    used_in: []
                    actions:
                      - action: GOOGLECALENDAR_FIND_FREE_SLOTS
                        name: Find free time
                        binding_id: i_d3d44b7a_find_free_slots
                        bindable: true
                        inputs:
                          items:
                            kind: literal
                            value:
                              - primary
                          time_min:
                            kind: model
                            path: /time_min
                          time_max:
                            kind: model
                            path: /time_max
                        overrides: []
                  - id: tg_5c1e9a20
                    kind: webhook
                    tool_id: 5c1e9a20-0000-4000-8000-000000000001
                    title: Webhook · Send lead to CRM
                    scope: agent
                    status: live
                    used_in: []
                    actions:
                      - action: null
                        name: Send lead to CRM
                        binding_id: t_5c1e9a20
                        inputs: {}
                        overrides: []
                  - id: handoff_tool
                    kind: transfer
                    tool_id: 7f000000-0000-4000-8000-000000000002
                    title: Call transfer · Front desk
                    scope: steps
                    status: live
                    used_in:
                      - phase: during
                        node_id: handoff
                        label: Hand off
                    actions:
                      - action: null
                        name: Front desk
                        binding_id: handoff_tool
                        inputs: {}
                        overrides: []
                  - id: end_call
                    kind: end_call
                    title: End call
                    scope: agent
                    status: always_on
                    actions: []
                    used_in: []
        '400':
          description: >-
            AGENTS_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.
            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: 'INSUFFICIENT_SCOPE: agents:read is required.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: 'AGENT_NOT_FOUND: no agent with this id in this workspace.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: 'WORKFLOW_STORAGE_UNAVAILABLE: storage could not be read; try again.'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    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.