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

# Make an app's actions ready

> Requires tool-connections:manage. Builds the tools that run the account's default actions (or the actions named) so that adding the app to an agent is immediate. Actions already ready are left alone, so it is safe to repeat; the dashboard calls it when an app finishes connecting. Waits up to about six seconds: an action still being built answers building and finishes on its own. An action a voice agent cannot use answers unavailable with a reason (not_eligible, needs_setup, or the build's error). A ready action names the revision its tool runs (head_revision_id) and whether that revision takes an agent's own calendar (bindable); an action whose tool still fixes the calendar itself is rebuilt by this call, so ask again until bindable is true. Send no body, {}, or {"actions": [...]}.


Requires `tool-connections:manage`. Prepares the account's default actions (or the ones you name) so giving the app to an agent is instant. The dashboard does this as soon as an app finishes connecting. Actions already ready are left alone, so it is safe to repeat.

```bash theme={null}
curl -X POST https://api.goyappr.com/tool-connections/CONNECTION_ID/actions/prepare \
  -H "Authorization: Bearer YOUR_API_KEY"
```

```json theme={null}
{
  "prepared": true,
  "version": "20260902_00",
  "data": [
    { "action": "GOOGLECALENDAR_FIND_FREE_SLOTS", "status": "ready" },
    { "action": "GOOGLECALENDAR_DELETE_EVENT", "status": "ready" }
  ]
}
```

It waits up to about six seconds. An action still `building` finishes on its own (`"reason": "metadata_preparing"` means the app's catalogue is still being read for it: prepare again in a few seconds); an `unavailable` one says why in `reason` (`not_eligible`: it carries files or something else a voice agent cannot; `needs_setup`: it needs fixed settings, so add it to a step as a tool of its own).

A `ready` action also names `head_revision_id`, the revision its tool runs, and `bindable`, whether that revision takes an agent's own calendar. A prepare rebuilds a tool that still fixes the calendar itself; ask again until `bindable` is `true`.

Send no body, `{}`, or `{"actions": ["GOOGLECALENDAR_QUICK_ADD"]}`. After a reconnect or a replaced key, actions are rebuilt for the new sign-in by the next prepare, the next assign, or on their own: Yappr starts within seconds of the change and usually finishes in under a minute. A rebuild that fails is tried again by a check that runs every five minutes, waiting longer after each failure.

An API key preparing actions for the first time also needs `tools:create`.


## OpenAPI

````yaml POST /tool-connections/{id}/actions/prepare
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:
  /tool-connections/{id}/actions/prepare:
    post:
      tags:
        - Connected accounts
      summary: Make a connected app's actions ready now
      description: >
        Requires tool-connections:manage. Builds the tools that run the
        account's default actions (or the actions named) so that adding the app
        to an agent is immediate. Actions already ready are left alone, so it is
        safe to repeat; the dashboard calls it when an app finishes connecting.
        Waits up to about six seconds: an action still being built answers
        building and finishes on its own. An action a voice agent cannot use
        answers unavailable with a reason (not_eligible, needs_setup, or the
        build's error). A ready action names the revision its tool runs
        (head_revision_id) and whether that revision takes an agent's own
        calendar (bindable); an action whose tool still fixes the calendar
        itself is rebuilt by this call, so ask again until bindable is true.
        Send no body, {}, or {"actions": [...]}.
      operationId: prepareToolConnectionActions
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            format: uuid
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              properties:
                actions:
                  oneOf:
                    - type: string
                      const: default
                    - type: array
                      minItems: 1
                      maxItems: 24
                      uniqueItems: true
                      items:
                        type: string
                        pattern: ^[A-Z0-9_]{1,200}$
      responses:
        '200':
          description: Each action's state.
          content:
            application/json:
              schema:
                type: object
                properties:
                  prepared:
                    type: boolean
                    description: Every action asked for is ready.
                  version:
                    type: string
                  data:
                    type: array
                    items:
                      type: object
                      required:
                        - action
                        - status
                      properties:
                        action:
                          type: string
                        status:
                          type: string
                          enum:
                            - ready
                            - building
                            - unavailable
                        reason:
                          type: string
                        head_revision_id:
                          type: string
                          format: uuid
                          description: >-
                            Ready actions: the revision a binding to this action
                            runs.
                        bindable:
                          type: boolean
                          description: >-
                            Ready actions: the revision takes an agent's own
                            calendar.
        '400':
          description: >-
            TOOL_CONNECTION_REQUEST_INVALID: not JSON, or a field other than
            actions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            INSUFFICIENT_SCOPE, WORKFLOW_ACTOR_DENIED (the key needs
            tools:create to build actions), or WORKFLOW_ENVIRONMENT_MISMATCH.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: TOOL_CONNECTION_NOT_FOUND.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '422':
          description: >-
            TOOL_CONNECTION_NOT_READY, or INTEGRATION_ACTION_UNKNOWN (each
            unknown action named in issues).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: WORKFLOW_TOOL_CONTROL_UNAVAILABLE.
          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.