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

> Requires agents:read. Each integration is one connected account given to the whole agent: the agent can use the listed actions of that account on every step of its calls. status is live (the published version has exactly these actions), not_live (saved in the draft, publish the agent to use them on calls), building (an action's tool is being rebuilt, for example after a reconnect) or reconnect_required (the account needs to be reconnected). separate_action_tools names accounts the agent uses through tools of their own, one per action, and whether they can be replaced by the whole integration (POST with replace_action_tools). Each action carries the agent's source for each of its inputs (inputs), how the catalogue says each input is set (input_specs) and the steps that have their own settings for it (overrides). tool_grants lists the saved webhooks and call transfers given to every step. An agent on the previous engine answers 422 AGENT_ENGINE_UNSUPPORTED. Takes no query parameters.


Requires `agents:read`. An integration is a connected account given to the whole agent: on every step of its calls the agent can use that account's actions — for Google Calendar, find free time, list, book, change and cancel events. You never build those actions as tools yourself.

This lists the agent's apps and the webhooks or call transfers it has on every step (`tool_grants`). [List an agent's tools & integrations](https://docs.goyappr.com/api-reference/agents/tools-and-integrations.md) lists everything it can use, including what only some steps use, grouped the way the dashboard's Tools & integrations shows it.

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

```json theme={null}
{
  "data": [
    {
      "id": "i_0b8f4c2e",
      "app": "googlecalendar",
      "app_name": "Google Calendar",
      "connection": { "id": "0b8f4c2e-5a1d-4e6b-9c3f-7d2a1e9b4c60", "label": "Clinic calendar", "state": "ready", "ready": true },
      "actions": [
        { "action": "GOOGLECALENDAR_FIND_FREE_SLOTS", "name": "Find free time", "name_he": "חיפוש זמן פנוי", "description": "Check when the calendar is busy between two times, to find free time.", "effect": "read", "default": true }
      ],
      "status": "live"
    }
  ],
  "draft_version": 12,
  "draft_has_changes": false,
  "separate_action_tools": []
}
```

| `status` | Meaning |
| - | - |
| `live` | The published version uses exactly these actions. |
| `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 needs to be reconnected ([`POST /tool-connections/{id}/reconnect`](https://docs.goyappr.com/api-reference/tool-connections/reconnect)). |

`separate_action_tools` lists accounts this agent uses through tools of their own, one per action, built before integrations existed. When `switchable` is `true`, [`POST /agents/{id}/integrations`](https://docs.goyappr.com/api-reference/agents/integrations-add) with `replace_action_tools: true` swaps them for the whole integration. Those tools themselves are not changed or deleted.

An agent on the previous engine answers `422` `AGENT_ENGINE_UNSUPPORTED`; it can use integrations once it moves to the new engine.

## Inputs, and steps with their own settings

Each action also carries `binding_id`, `inputs` (where each input's value comes from: Fixed, from the call, AI or a list - see [setting inputs](https://docs.goyappr.com/api-reference/agents/integrations-add.md#set-how-each-input-is-filled)), `input_specs` (how the catalogue says each input is set), `bindable` (`false` on a tool built before it could take the agent's own calendar; the first write that fixes one rebuilds it) and `overrides`, the steps with their own settings for it (`node_id`, `binding_id`, `inputs`; held reliably only with `strict_mode` on - see [a step's own settings](https://docs.goyappr.com/api-reference/workflows/save.md#a-steps-own-settings-for-an-agent-wide-action)). `tool_grants` lists the saved webhooks and call transfers given to every step, each with its `binding_id` and `inputs`.


## OpenAPI

````yaml GET /agents/{id}/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}/integrations:
    get:
      tags:
        - Agents
      summary: List the apps an agent uses on calls
      description: >
        Requires agents:read. Each integration is one connected account given to
        the whole agent: the agent can use the listed actions of that account on
        every step of its calls. status is live (the published version has
        exactly these actions), not_live (saved in the draft, publish the agent
        to use them on calls), building (an action's tool is being rebuilt, for
        example after a reconnect) or reconnect_required (the account needs to
        be reconnected). separate_action_tools names accounts the agent uses
        through tools of their own, one per action, and whether they can be
        replaced by the whole integration (POST with replace_action_tools). Each
        action carries the agent's source for each of its inputs (inputs), how
        the catalogue says each input is set (input_specs) and the steps that
        have their own settings for it (overrides). tool_grants lists the saved
        webhooks and call transfers given to every step. An agent on the
        previous engine answers 422 AGENT_ENGINE_UNSUPPORTED. Takes no query
        parameters.
      operationId: listAgentIntegrations
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: The agent's integrations.
          content:
            application/json:
              schema:
                type: object
                required:
                  - data
                  - draft_version
                  - draft_has_changes
                  - separate_action_tools
                properties:
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Integration'
                  tool_grants:
                    type: array
                    items:
                      $ref: '#/components/schemas/ToolGrant'
                    description: Saved webhooks and call transfers on every step.
                  draft_version:
                    type: integer
                    minimum: 1
                    description: The draft version to send as expected_version.
                  draft_has_changes:
                    type: boolean
                    description: The draft holds changes the published version does not.
                  separate_action_tools:
                    type: array
                    items:
                      type: object
                      properties:
                        connection_id:
                          type: string
                          format: uuid
                        app:
                          type: string
                          example: googlecalendar
                        count:
                          type: integer
                          minimum: 1
                        switchable:
                          type: boolean
                          description: >-
                            Every one of these tools is only offered on steps,
                            with no inputs filled in, so POST with
                            replace_action_tools can swap them for the whole
                            integration.
        '401':
          description: Missing, unknown or expired API key.
          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'
        '422':
          description: >-
            AGENT_ENGINE_UNSUPPORTED: the agent runs on the previous engine and
            cannot use integrations until it moves.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Storage or the action service is unavailable. Nothing was changed.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Integration:
      type: object
      description: A connected account given to the whole agent.
      required:
        - id
        - app
        - app_name
        - connection
        - actions
        - status
      properties:
        id:
          type: string
          example: i_0b8f4c2e
        app:
          type: string
          example: googlecalendar
        app_name:
          type: string
          example: Google Calendar
        connection:
          type: object
          properties:
            id:
              type: string
              format: uuid
            label:
              type: string
              example: Clinic calendar
            state:
              type: string
              example: ready
            ready:
              type: boolean
        actions:
          type: array
          items:
            $ref: '#/components/schemas/GrantedAction'
        status:
          type: string
          enum:
            - live
            - not_live
            - building
            - reconnect_required
    ToolGrant:
      type: object
      description: >-
        A saved webhook or call transfer given to every conversation step of the
        agent.
      required:
        - id
        - kind
        - tool_id
        - name
        - binding_id
        - inputs
        - overrides
        - status
      properties:
        id:
          type: string
          example: tg_5c1e9a20
        kind:
          type: string
          enum:
            - webhook
            - transfer
        tool_id:
          type: string
          format: uuid
        name:
          type: string
          example: Send lead to CRM
        binding_id:
          type: string
          example: t_5c1e9a20
          description: 'Its binding: PATCH its inputs keyed by this id.'
        inputs:
          type: object
          additionalProperties:
            $ref: '#/components/schemas/ActionInputSource'
        overrides:
          type: array
          items:
            type: object
        status:
          type: string
          enum:
            - live
            - not_live
            - unavailable
          description: 'unavailable: the tool is no longer in the workspace.'
    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
    GrantedAction:
      allOf:
        - $ref: '#/components/schemas/ConnectionAction'
        - type: object
          properties:
            binding_id:
              type: string
              example: i_0b8f4c2e_find_free_slots
              description: The binding this action runs as on every step.
            inputs:
              type: object
              description: The agent's source for each input, by input name.
              additionalProperties:
                $ref: '#/components/schemas/ActionInputSource'
            input_specs:
              type: array
              items:
                $ref: '#/components/schemas/ActionInputSpec'
            bindable:
              type: boolean
              description: >-
                The account's tool for this action takes the agent's own
                calendar. False on a tool built before that: the first write
                that sets a calendar rebuilds it (a new revision of the same
                tool), so you can send it anyway.
            missing_inputs:
              type: array
              items:
                type: string
              example:
                - spreadsheet_id
              description: >-
                Required inputs that have no source yet - a configuration ID
                with no default (a spreadsheet, a channel, a board) starts with
                none, because the agent cannot guess it. Omitted when none. Set
                each with PATCH /agents/{id}/integrations/{integration_id} and
                inputs; until then the integration is saved but not published
                (not_live_reason inputs_missing).
            overrides:
              type: array
              description: >-
                Steps with their own settings for this action (the workflow's
                binding_overrides).
              items:
                type: object
                required:
                  - node_id
                  - binding_id
                  - inputs
                properties:
                  node_id:
                    type: string
                  binding_id:
                    type: string
                    example: o_k3j9x0a2b1
                  inputs:
                    type: object
                    additionalProperties:
                      $ref: '#/components/schemas/ActionInputSource'
    ActionInputSource:
      type: object
      description: >
        Where an action input's value comes from - the workflow's own input
        sources (see the workflow document's bindings). Fixed is {"kind":
        "literal", "value": ...}: the agent never sees it, and it is sent as is
        (a literal may be one call reference such as "{{call.caller_number}}",
        or a relative time such as
        "{{call.time.start_of_today.Asia/Jerusalem}}", resolved when the step
        runs). AI is {"kind": "model", "path": "/<input>"}: the agent fills it
        from the conversation. Choose from a list is a model source with
        options: the agent picks one of 1-20 {value, label} choices by its
        label. From the call: request (a call request field), stored (saved
        context) or step (an earlier step's result), each with an optional
        fallback {"value": ...}. Fixed and from-the-call values are left out of
        what the agent is asked for, and a value it sends for them anyway is
        ignored.
      required:
        - kind
      properties:
        kind:
          type: string
          enum:
            - literal
            - model
            - request
            - stored
            - step
        value:
          description: 'literal: the fixed value.'
        path:
          type: string
          description: >-
            model: "/<input>". request, stored, step: a pointer into the value
            read, such as /phone.
        options:
          type: array
          minItems: 1
          maxItems: 20
          description: >-
            model only: the choices the agent picks from, each value listed
            once. Text inputs (or a list of text) only.
          items:
            type: object
            additionalProperties: false
            required:
              - value
              - label
            properties:
              value:
                type: string
                minLength: 1
                maxLength: 500
              label:
                type: string
                minLength: 1
                maxLength: 120
        scope:
          type: string
          enum:
            - before
            - during
          description: 'step: a before-call step or an action step.'
        step_id:
          type: string
        fallback:
          type: object
          required:
            - value
          properties:
            value: {}
          description: Sent when the value read is missing.
      example:
        kind: literal
        value:
          - c_1a2b3c@group.calendar.google.com
    ConnectionAction:
      type: object
      description: One thing a connected app can do on calls.
      required:
        - action
        - name
        - description
        - effect
        - default
      properties:
        action:
          type: string
          example: GOOGLECALENDAR_FIND_FREE_SLOTS
        name:
          type: string
          example: Find free time
        name_he:
          type:
            - string
            - 'null'
          example: חיפוש זמן פנוי
        description:
          type: string
          description: One line for a person.
        effect:
          type: string
          enum:
            - read
            - write
            - delete
        default:
          type: boolean
          description: On when the app is added without a list of actions.
        description_he:
          type:
            - string
            - 'null'
          description: One spoken-Hebrew line, for a curated action.
          example: בודק מתי היומן פנוי בטווח שעות
        inputs:
          type: array
          description: >-
            How each input is set, configuration inputs (which calendar) first.
            Absent for an action the catalogue has no word on.
          items:
            $ref: '#/components/schemas/ActionInputSpec'
    ActionInputSpec:
      type: object
      description: >
        One input of an action. role config is a setting of the agent (which
        calendar, which sheet), usually Fixed; role conversation is filled from
        the call, usually by the agent (AI). default_source is what a new
        binding gets when you do not set it - null for a configuration ID with
        no default (a spreadsheet, a channel, a board): the agent cannot guess
        one, so you set it.
      required:
        - name
        - label
        - role
        - required
        - default_source
      properties:
        name:
          type: string
          example: items
        label:
          type: string
          example: Calendar
        label_he:
          type: string
          example: יומן
        role:
          type: string
          enum:
            - config
            - conversation
        resource:
          type:
            - string
            - 'null'
          enum:
            - calendar
            - sheet
            - channel
            - board
            - event_type
            - null
          description: >-
            Set when the account can list the choices: GET
            /tool-connections/{id}/options/calendars for calendar.
        shape:
          type: string
          enum:
            - value
            - one_item_array
          description: >-
            one_item_array: the tool takes a list, and you fix it to a list of
            one id (["primary"]).
        required:
          type: boolean
        default_source:
          oneOf:
            - $ref: '#/components/schemas/ActionInputSource'
            - type: 'null'
  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.