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

# Connect a workspace account

> Requires tool-connections:manage. Creates a pending local connection and an expiring human handoff. handoff_url is a link for a person, not a step an integration can complete - opening it without a Yappr session stops at Yappr's own authorization screen. An API key cannot provide OAuth consent. No vendor link is released before a signed-in member of this workspace claims the handoff in a bound browser. Apps whose sign-in Composio hosts are connected by a person at the handoff. Apps that take a credential the customer supplies (an API key, token or password) take credentials in this body and connect in this one request; the credentials are sent to the provider once and are never stored, logged or returned. Credentials are accepted only from a signed-in person in the dashboard. Sent with an API key, the answer is 409 CONNECTION_CREDENTIALS_NEED_PERSON.

Requires `tool-connections:manage`. Discover the apps that accept a connection with `GET /tool-apps/connection-options`, then give the account an explicit label. (`GET /tool-apps` is the wider action catalog and is not the connection-ready list.)

```bash theme={null}
curl -X POST https://api.goyappr.com/tool-connections \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"toolkit":"gmail","label":"Team mailbox","locale":"en"}'
```

The `201` response contains `connection`, `attempt`, and `handoff_url`.

## The handoff is not self-contained

`handoff_url` is a link for a person, not a step your integration can complete. It opens on the Yappr dashboard, `https://app.goyappr.com`, in the language the request's `locale` names (`en` when it is left out). Opening it without a Yappr session lands on Yappr's own "Authorize a workspace connection" screen, which will not go on to the provider until someone signs in — there is no way to reach the provider's consent screen from an API key alone, and none is planned. Treat `handoff_url` as something you hand over, not something you follow.

Who it has to be: **a signed-in member of the workspace the connection belongs to** — a member of the company whose id this API key is scoped to. A member of a different workspace, or a signed-out browser, gets no further, whatever the link says. So send the link to the person whose Google (or other provider) account is being connected, and make sure they are already a member of that workspace: an invitation that has not been accepted yet is not one.

One more constraint, because it decides who you can send it to: a handoff started by an **API key** may be claimed by any member of the workspace, while one started from the **dashboard** stays bound to the person who started it. Each handoff can be claimed by one person, in one browser, once. If nobody is going to open it, close it with `POST /tool-connections/attempts/{id}/cancel` rather than leaving the slot held for ten minutes.

The connection belongs to the workspace and can be used by its authorized tools. Multiple labeled accounts are supported. Never provide provider account IDs or tokens in this request. Hosted OAuth is currently supported; manual credential imports are not accepted by this endpoint.

Treat the handoff URL fragment as a temporary secret. Do not log it, put it in workflow inputs, or expose it in call history. Poll only the returned `attempt.id`, stop at its expiry, and inspect connection readiness separately.

## The body, and the two ways it is refused

`toolkit` and `label` are both required, and no other field is accepted besides the optional `locale` (`en` or `he`).

| You sent | Answer |
| - | - |
| `{"toolkit":"googlecalendar"}` — no `label` | `400` `CONNECTION_INVALID`. Add a label; it is how a human tells two accounts of the same app apart on the handoff screen. |
| `{"toolkit":"google_calendar","label":"Clinic calendar"}` — a slug this workspace cannot connect | `409` `CONNECTION_APP_UNAVAILABLE`. Use the `slug` exactly as connection options returns it (`googlecalendar`, not `google_calendar`). |
| `{"toolkit":"acme","label":"Sales"}` — an OAuth-only app with no Composio-hosted sign-in | `409` `CONNECTION_APP_NEEDS_CREDENTIALS`. The app needs a registered OAuth app; Yappr has to set it up, the request cannot fix it. |
| `{"toolkit":"acme_calls","label":"Calls"}` — an app whose publisher has released no dated version yet | `409` `CONNECTION_APP_NO_DATED_VERSION`. Yappr cannot use any action of the app, so nothing is created. Connection options does not list it. |
| `{"toolkit":"pipedrive","label":"Sales"}` — an app that takes credentials, none sent | `409` `CONNECTION_CREDENTIALS_REQUIRED`. The message lists the fields; `GET /tool-apps/connection-options?toolkit=pipedrive` describes them. |
| `{"toolkit":"pipedrive","label":"Sales","credentials":{...}}` sent with an API key | `409` `CONNECTION_CREDENTIALS_NEED_PERSON`. A person enters credentials, signed in to the dashboard (Tools & Integrations → Integrations → Connect integration). |
| `credentials` with a field the app does not take, a missing required field, a value over 2048 characters after Yappr drops invisible characters (such as direction marks or zero-width spaces) and leading and trailing whitespace, or a value with nothing visible left | `400` `CONNECTION_INVALID`. Nothing is created and nothing is sent. |
| `credentials` the app refuses (it said so itself, or its own identity read did) | `422` `CONNECTION_CREDENTIALS_REJECTED`. Check them in the app; nothing was saved. |

## Apps that take credentials

For an app whose `connect.kind` is `credentials`, `credentials` carries exactly the fields [connection options](https://docs.goyappr.com/api-reference/tool-connections/apps.md) lists for it. They are sent to the provider once, in this request, and are never stored, logged or returned. The connection comes back finished, with no `handoff_url`. For the apps Yappr has checked against a live call (Mapbox today), the app itself is asked whether it accepts the key before the connection is recorded; one it refuses is answered `422` `CONNECTION_CREDENTIALS_REJECTED` and nothing is saved.

To replace the key of a connection that already exists, see [Connect a replacement account](https://docs.goyappr.com/api-reference/tool-connections/reconnect.md): the same connection keeps its id, label and bindings.

Ten authorizations started by this API key and still open returns `429` `CONNECTION_RATE_LIMIT`. Attempts that expired, were cancelled or were completed are not counted, and neither are attempts started by anyone else in the workspace — finish, cancel (`POST /tool-connections/attempts/{id}/cancel`) or let one expire. The workspace also has a ceiling of 120 starts in ten minutes, counted whatever became of them, so a loop that connects and cancels is refused the same way.

## A connected account is not yet a tool

Connecting the account is half the journey: nothing an agent can call exists
until one of that app's actions is saved as a tool. Three reads and one write,
all with the same `x-company-id`:

1. [`GET /tool-apps/{slug}/actions?version=…`](https://docs.goyappr.com/api-reference/tools/actions) —
   the app's actions for one dated version, cursor-paged. Page with
   `next_cursor` only; there is no `limit`, and sending one is refused `422`.
   A calendar's booking journey needs `GOOGLECALENDAR_FIND_FREE_SLOTS` before
   it needs `GOOGLECALENDAR_CREATE_EVENT`.
2. [`GET /tool-apps/{slug}/actions/{action}?version=…`](https://docs.goyappr.com/api-reference/tools/action) —
   the action's `id`, its `eligible` flag and its input schema. An action whose
   `eligible` is `false` cannot be saved, whatever the connection's state.
3. [`GET /tool-connections`](https://docs.goyappr.com/api-reference/tool-connections/list) — the account
   to bind it to. Only a `state: "ready"` row can be used.
4. [`POST /tools`](https://docs.goyappr.com/api-reference/tools/create) with
   `workflow: {"kind":"app","metadata_id":"<id from step 2>","connection_id":"<id from step 3>","fixed_inputs":{},"timeout_ms":30000}`.

```bash theme={null}
curl -X POST https://api.goyappr.com/tools \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "x-company-id: COMPANY_ID" \
  -H "Idempotency-Key: free-slots-tool-001" \
  -H "Content-Type: application/json" \
  -d '{"name":"Free slots","description":"Offers the times the calendar is free.","workflow":{"kind":"app","metadata_id":"METADATA_ID","connection_id":"CONNECTION_ID","fixed_inputs":{},"timeout_ms":30000}}'
```

The tool then behaves like any other: it appears in
[`GET /tools/workflow-catalog`](https://docs.goyappr.com/api-reference/workflows/catalog) once its
revision is promoted, and an agent step binds it the same way it binds an HTTP
tool.

In the dashboard the same journey is two clicks: **Tools & Integrations →
Integrations → Add action as a tool** on the account's card, or **Add an action from a
connected app** in a step's Add-tool dialog. Both open the tool form with the
app and the account already chosen, leaving only the action to search for.


## OpenAPI

````yaml POST /tool-connections
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:
    post:
      tags:
        - Connected accounts
      summary: Start a workspace connection
      description: >-
        Requires tool-connections:manage. Creates a pending local connection and
        an expiring human handoff. handoff_url is a link for a person, not a
        step an integration can complete - opening it without a Yappr session
        stops at Yappr's own authorization screen. An API key cannot provide
        OAuth consent. No vendor link is released before a signed-in member of
        this workspace claims the handoff in a bound browser. Apps whose sign-in
        Composio hosts are connected by a person at the handoff. Apps that take
        a credential the customer supplies (an API key, token or password) take
        credentials in this body and connect in this one request; the
        credentials are sent to the provider once and are never stored, logged
        or returned. Credentials are accepted only from a signed-in person in
        the dashboard. Sent with an API key, the answer is 409
        CONNECTION_CREDENTIALS_NEED_PERSON.
      operationId: createToolConnection
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: false
              required:
                - toolkit
                - label
              properties:
                toolkit:
                  type: string
                  pattern: ^[a-z0-9_]{1,100}$
                label:
                  type: string
                  minLength: 1
                  maxLength: 200
                locale:
                  type: string
                  enum:
                    - en
                    - he
                  default: en
                credentials:
                  type: object
                  maxProperties: 12
                  additionalProperties:
                    type: string
                    minLength: 1
                    maxLength: 2048
                  description: >-
                    Only for an app whose connect.kind is credentials: exactly
                    the fields GET /tool-apps/connection-options?toolkit={slug}
                    lists, each text of 1 to 2048 characters. A field the app
                    does not take, a missing required one or an oversize value
                    is 400 CONNECTION_INVALID. The app refusing them is 422
                    CONNECTION_CREDENTIALS_REJECTED.
      responses:
        '201':
          description: >-
            Pending connection and one-time human handoff. For an app connected
            with credentials there is no handoff_url - the connection is
            returned as the sign-in finished.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ToolConnectionHandoff'
        '400':
          description: >-
            CONNECTION_INVALID: the body is missing toolkit or label, or carries
            a field this endpoint does not accept. Provider account IDs and
            tokens are never accepted here.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: >-
            Missing, unknown or expired API key. A key without the management
            scope is 403 INSUFFICIENT_SCOPE.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: >-
            CONNECTION_APP_UNAVAILABLE when the toolkit is not an app Composio
            offers, or was switched off for this deployment.
            CONNECTION_APP_NEEDS_CREDENTIALS when the app needs a registered
            OAuth app that Yappr has not set up. CONNECTION_APP_NO_DATED_VERSION
            when the app has no dated version yet, so Yappr cannot use its
            actions (nothing is created). CONNECTION_CREDENTIALS_REQUIRED when
            the app takes credentials and none were sent.
            CONNECTION_CREDENTIALS_NEED_PERSON when credentials were sent with
            an API key. CONNECTION_CREDENTIALS_REJECTED (422) when the app
            refused them. An app an operator switched off stays
            CONNECTION_APP_UNAVAILABLE. Any app GET
            /tool-apps/connection-options lists connects without setup. Other
            409 codes mean another authorization attempt is already active.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            CONNECTION_RATE_LIMIT: ten authorizations started by this API key
            are already open. Attempts that expired, were cancelled or were
            completed do not count, and neither do other callers attempts. A
            workspace-wide ceiling of 120 starts in ten minutes counts every
            start whatever became of it.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Connection control unavailable.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ToolConnectionHandoff:
      type: object
      required:
        - connection
        - attempt
        - handoff_url
      properties:
        connection:
          $ref: '#/components/schemas/ToolConnection'
        attempt:
          $ref: '#/components/schemas/ToolConnectionAuthAttempt'
        handoff_url:
          type: string
          format: uri
          description: >-
            Expiring one-time Yappr handoff for an authorized human, on the
            Yappr dashboard
            (https://app.goyappr.com/<locale>/tool-connection/<attempt
            id>#<token>). Treat its fragment as a secret capability; never log
            it.
    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
    ToolConnection:
      type: object
      required:
        - id
        - toolkit
        - label
        - state
        - connected
        - enabled
        - binding_revision
        - authorization_epoch
        - disconnect_progress
        - created_at
        - updated_at
      properties:
        id:
          type: string
          format: uuid
          description: Stable Yappr connection ID.
        toolkit:
          type: string
        label:
          type: string
          maxLength: 200
        provider_identity:
          type:
            - string
            - 'null'
          description: Verified provider identity, when available.
        state:
          type: string
          enum:
            - disconnected
            - connecting
            - verifying
            - ready
            - reconnect_required
            - degraded
        connected:
          type: boolean
          description: An exact account was bound; this does not imply action readiness.
        enabled:
          type: boolean
        binding_revision:
          type: string
          pattern: ^[0-9]+$
          description: Decimal identity revision. Replacement creates a new revision.
        authorization_epoch:
          type: string
          pattern: ^[0-9]+$
          description: >-
            Decimal authorization generation; disconnect invalidates previously
            accepted authority. "0" on a connection that never bound an account,
            and a disconnect leaves it there: nothing was ever authorized under
            it.
        disconnect_progress:
          type: string
          enum:
            - none
            - pending
            - record_deleted
            - manual_revocation_required
            - unknown
        created_at:
          type: string
          format: date-time
        updated_at:
          type: string
          format: date-time
        removed_at:
          type:
            - string
            - 'null'
          format: date-time
          description: >-
            When this record was taken off the list with POST
            /tool-connections/{id}/remove. Records with a value here are
            excluded from GET /tool-connections unless you ask for
            state=removed. Null again once the record is authorized again - a
            completed POST /tool-connections/{id}/reconnect puts it back on the
            list.
        created_by:
          $ref: '#/components/schemas/ToolConnectionActor'
        started_by:
          $ref: '#/components/schemas/ToolConnectionActor'
        app_name:
          type:
            - string
            - 'null'
          description: >-
            The app's display name, such as Google Calendar, for the toolkit
            slug beside it.
        open_attempt:
          type:
            - object
            - 'null'
          description: >-
            The sign-in still open on this connection, started by anyone - a
            member, another browser or an API key - or null. A reconnect beside
            one nobody has opened yet replaces it; one a person is in the middle
            of answers 409 CONNECTION_ATTEMPT_OPEN until it finishes, expires,
            or is cancelled with POST
            /tool-connections/attempts/{open_attempt.id}/cancel.
          required:
            - id
            - status
            - expires_at
          properties:
            id:
              type: string
              format: uuid
              description: >-
                The attempt id: read it at GET /tool-connections/attempts/{id},
                cancel it at POST /tool-connections/attempts/{id}/cancel.
            status:
              type: string
              enum:
                - pending_human
                - claimed
                - creating_link
                - awaiting_consent
                - verifying
                - reconciliation_required
            expires_at:
              type: string
              format: date-time
        last_attempt:
          type:
            - object
            - 'null'
          description: >-
            The most recent sign-in on this connection, open or closed, and why
            it ended. Use it to tell a connection whose sign-in never finished
            (state connecting, open_attempt null) from one still in progress,
            and to say why: an open sign-in past expires_at reads as status
            expired with error_code AUTH_EXPIRED. Start it again with POST
            /tool-connections/{id}/reconnect.
          required:
            - id
            - status
            - error_code
            - expires_at
            - updated_at
          properties:
            id:
              type: string
              format: uuid
              description: The attempt id, readable at GET /tool-connections/attempts/{id}.
            status:
              type: string
              enum:
                - pending_human
                - claimed
                - creating_link
                - awaiting_consent
                - verifying
                - completed
                - failed
                - expired
                - cancelled
                - reconciliation_required
            error_code:
              type:
                - string
                - 'null'
              description: >-
                Why it ended, with the same values as error_code on
                ToolConnectionAuthAttempt.
            expires_at:
              type: string
              format: date-time
            updated_at:
              type: string
              format: date-time
        check:
          description: >-
            The account's last connection check (POST
            /tool-connections/{id}/check), shared by the workspace, or null when
            it was never checked. Present once the platform keeps checks; a
            client must treat a missing key as null. state ready and connected
            say only that the sign-in worked; this says whether the app answered
            a read.
          oneOf:
            - $ref: '#/components/schemas/ConnectionCheck'
            - type: 'null'
    ToolConnectionAuthAttempt:
      type: object
      required:
        - id
        - connection_id
        - status
        - expires_at
        - next_poll_at
      properties:
        id:
          type: string
          format: uuid
        connection_id:
          type: string
          format: uuid
        status:
          type: string
          enum:
            - pending_human
            - claimed
            - creating_link
            - awaiting_consent
            - verifying
            - completed
            - failed
            - expired
            - cancelled
            - reconciliation_required
        expires_at:
          type: string
          format: date-time
        next_poll_at:
          type: string
          format: date-time
        error_code:
          type:
            - string
            - 'null'
          description: >-
            Why the attempt ended, when the status alone does not say:
            AUTH_SUPERSEDED (cancelled - a reconnect replaced it before anyone
            opened its link), AUTH_EXPIRED (expired), MEMBERSHIP_REMOVED or
            AUTHORITY_REMOVED (cancelled - the member signing in lost access),
            AUTH_ACCOUNT_MISMATCH or AUTH_CONFIG_CHANGED (failed),
            AUTH_LINK_UNKNOWN or AUTH_REDEMPTION_UNKNOWN (the sign-in did not
            complete). null while open, when finished, and when a person
            cancelled it.
        return_path:
          type: string
          enum:
            - /en/tools
            - /he/tools
    ToolConnectionActor:
      type: object
      description: >-
        Who started an authorization for this connection - a member of the
        workspace, or the API key that asked for it. Every connection has one,
        so this is never null. The id stays after that member leaves the
        workspace or that key is revoked, so it can name somebody who no longer
        has access. No name or address is returned; the id is what a caller
        compares.
      required:
        - type
        - id
      properties:
        type:
          type: string
          enum:
            - user
            - api_key
        id:
          type: string
          format: uuid
    ConnectionCheck:
      type: object
      description: >-
        What one harmless read through a connected account found. Never a write:
        the read is the app's own lookup (its phone numbers, its calendars, the
        signed-in profile), or for an app with none that is certain to change
        nothing, no read at all (status not_checked, code no_probe).
      required:
        - status
        - code
        - reading
        - reason
        - action
        - checked_at
      properties:
        status:
          type: string
          enum:
            - working
            - app_reports_problem
            - reconnect_needed
            - unreachable
            - not_checked
          description: >-
            working: the app answered the read. app_reports_problem: it answered
            with a problem the account has (nothing set up, a missing
            permission, an error) - the account can still be given to agents,
            but its actions may fail until it is fixed in the app.
            reconnect_needed: the app wants the account signed in again (POST
            /tool-connections/{id}/reconnect). unreachable: it could not be
            checked just now (the app was busy, timed out or had a passing error
            of its own); this says nothing about the account, check again in a
            minute. not_checked: connected, not checked further.
        code:
          type: string
          enum:
            - working
            - no_items
            - nothing_set_up
            - permission
            - reconnect
            - app_error
            - rate_limited
            - unreachable
            - no_probe
            - inconclusive
          description: >-
            Why, as a code: no_items (the read answered an empty list, such as
            no calendars), nothing_set_up (the app says what was read does not
            exist, such as no phone numbers), permission, reconnect, app_error,
            rate_limited, unreachable, no_probe (no read is certain to change
            nothing for this app), inconclusive.
        reading:
          type: string
          description: >-
            The same in plain English, ready to show: "Connected, but WhatsApp
            says no phone numbers are set up."
        reason:
          type:
            - string
            - 'null'
          maxLength: 240
          description: >-
            The app's own words, when it gave any: one line, at most 240
            characters, with long numbers cut to their last four digits and
            anything token-like hidden. Never a response body.
        action:
          type:
            - string
            - 'null'
          description: The read action that was run, or null when none was.
        checked_at:
          type: string
          format: date-time
        attempt:
          type:
            - object
            - 'null'
          description: >-
            Only on an account's kept check (GET /tool-connections): a later
            check that could not confirm anything (status unreachable or
            not_checked). It never replaces the verdict above, which stays until
            a check confirms something or the account is signed in again; this
            says when that later check ran and why it could not.
          required:
            - status
            - code
            - checked_at
          properties:
            status:
              type: string
              enum:
                - unreachable
                - not_checked
            code:
              type: string
              enum:
                - rate_limited
                - unreachable
                - no_probe
                - inconclusive
            checked_at:
              type: string
              format: date-time
      example:
        status: app_reports_problem
        code: nothing_set_up
        reading: Connected, but WhatsApp says no phone numbers are set up.
        reason: (#100) Tried accessing nonexisting field (phone_numbers)
        action: WHATSAPP_GET_PHONE_NUMBERS
        checked_at: '2026-11-02T11:20:41.000Z'
  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.