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

# Check that an account works

> Requires tool-connections:manage. "Connected" (state ready) proves only that the sign-in worked; this runs one harmless read through the account and answers what the app said - for example a WhatsApp account whose Facebook sign-in has no WhatsApp Business number answers app_reports_problem, "Connected, but WhatsApp says no phone numbers are set up.", with Meta's own words in reason. The read is never an action that changes, sends or deletes anything: the app's own lookup where Yappr knows one (its phone numbers, its calendars, the signed-in profile), else a plain read of who is signed in, else none (not_checked, no_probe). It runs as the account's own read action, made ready on the first check (an API key doing that also needs tools:create, and tools:update to run it), with no inputs. Waits up to about 25 seconds; still running then, the answer is 202 with Retry-After, and sending the same request again within two minutes reads the same check. The check is kept on the account for the workspace (check on GET /tool-connections/{id}) where the platform keeps checks. Takes no body (send none, or {}) and no query parameters.


Requires `tool-connections:manage`. A connected account with `state: "ready"` only proves that its sign-in worked. This runs one harmless read through the account and tells you what the app answered, so "connected" and "works" are never confused.

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

A WhatsApp account whose Facebook sign-in has no WhatsApp Business number answers:

```json theme={null}
{
  "connection_id": "3f9a6c2e-8b1d-4c7a-9e5f-2a6b1c0d4e8f",
  "ready": true,
  "check": {
    "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"
  }
}
```

`ready` stays the sign-in fact; `check` is what the read found.

| `status` | Meaning | What to do |
| - | - | - |
| `working` | The app answered the read. | Nothing. |
| `app_reports_problem` | The app answered with a problem the account has: nothing of the kind set up (`nothing_set_up`), an empty list (`no_items`), a missing permission (`permission`), or another error (`app_error`). | Fix it in the app, then check again. The account can still be given to agents, but its actions may fail on calls until it is fixed. |
| `reconnect_needed` | The app wants the account signed in again. | `POST /tool-connections/{id}/reconnect`. |
| `unreachable` | It could not be checked just now (`rate_limited`, `unreachable`): 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: the app has no read that is certain to change nothing (`no_probe`), or the read could not tell (`inconclusive`, also when the read was refused on Yappr's side before it reached the app). | Nothing. |

`reason` is the app's own words when it gave any: one line, at most 240 characters, long numbers cut to their last four digits and anything token-like hidden. No response body is ever returned or kept.

## What is read

Never an action that changes, sends or deletes anything. For the apps people connect most, Yappr runs the app's own lookup: WhatsApp's phone numbers, Google Calendar's calendars, the signed-in Gmail, Google Drive, Outlook, HubSpot, Salesforce, Calendly, Cal.com, Stripe, Pipedrive or Airtable profile. For any other app it runs a plain read of who is signed in (a `GET_...`, `LIST_...` action about the account, the user or the workspace, with no required input), and trusts its answer only for a sign-in problem. Where none exists, nothing is run. `action` names the read.

The read runs as the account's own read action, made ready on the first check (an API key doing that also needs `tools:create`, and `tools:update` to run it), through an ordinary tool test with no inputs.

## Timing

A check waits up to about 25 seconds. Still running then, the answer is `202` with `Retry-After`; send the same request again after that many seconds and it reads the same check:

```json theme={null}
{ "connection_id": "3f9a6c2e-8b1d-4c7a-9e5f-2a6b1c0d4e8f", "ready": true, "check": null, "status": "checking", "retry_after": 4, "message": "The account is still being checked. Send the same request again in a few seconds; it reads the same check." }
```

Your checks of one account within two minutes share one read. The dashboard checks an account by itself only once, when its sign-in comes back; every other check is asked for (**Check connection**, **Check again**, or this request). Where the platform keeps checks, the last one is on the account as `check` in [GET /tool-connections/{id}](https://docs.goyappr.com/api-reference/tool-connections/get.md) for the whole workspace. A later check that could not confirm anything (`unreachable` or `not_checked`) never replaces a verdict the app gave: the account keeps it, with that later check noted as `check.attempt` (`{status, code, checked_at}`), until a new sign-in.

Refusals: `404 TOOL_CONNECTION_NOT_FOUND`, `409 TOOL_CONNECTION_NOT_READY` (the account is not signed in: reconnect it first), `429 CONNECTION_CHECK_BUSY` (too many tests running in the workspace; `Retry-After`), `400 TOOL_CONNECTIONS_QUERY_INVALID` (a query parameter) or `400 TOOL_CONNECTION_REQUEST_INVALID` (a body with fields; a check takes none), `403 WORKFLOW_ACTOR_DENIED` (the key lacks `tools:create` or `tools:update`), and `503 CONNECTION_CHECK_UNAVAILABLE` (the check could not be started on our side; nothing was changed).


## OpenAPI

````yaml POST /tool-connections/{id}/check
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}/check:
    post:
      tags:
        - Connected accounts
      summary: Check that a connected account actually works
      description: >
        Requires tool-connections:manage. "Connected" (state ready) proves only
        that the sign-in worked; this runs one harmless read through the account
        and answers what the app said - for example a WhatsApp account whose
        Facebook sign-in has no WhatsApp Business number answers
        app_reports_problem, "Connected, but WhatsApp says no phone numbers are
        set up.", with Meta's own words in reason. The read is never an action
        that changes, sends or deletes anything: the app's own lookup where
        Yappr knows one (its phone numbers, its calendars, the signed-in
        profile), else a plain read of who is signed in, else none (not_checked,
        no_probe). It runs as the account's own read action, made ready on the
        first check (an API key doing that also needs tools:create, and
        tools:update to run it), with no inputs. Waits up to about 25 seconds;
        still running then, the answer is 202 with Retry-After, and sending the
        same request again within two minutes reads the same check. The check is
        kept on the account for the workspace (check on GET
        /tool-connections/{id}) where the platform keeps checks. Takes no body
        (send none, or {}) and no query parameters.
      operationId: checkToolConnection
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: string
            format: uuid
      responses:
        '200':
          description: What the read found. ready stays the sign-in fact.
          content:
            application/json:
              schema:
                type: object
                required:
                  - connection_id
                  - ready
                  - check
                properties:
                  connection_id:
                    type: string
                    format: uuid
                  ready:
                    type: boolean
                    enum:
                      - true
                    description: The account's sign-in is finished (state ready).
                  check:
                    $ref: '#/components/schemas/ConnectionCheck'
              example:
                connection_id: 3f9a6c2e-8b1d-4c7a-9e5f-2a6b1c0d4e8f
                ready: true
                check:
                  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'
        '202':
          description: >-
            The read is still running. Send the same request again after
            Retry-After (seconds); it reads the same check.
          headers:
            Retry-After:
              schema:
                type: integer
              description: Seconds to wait before asking again.
          content:
            application/json:
              schema:
                type: object
                required:
                  - connection_id
                  - ready
                  - check
                  - status
                  - retry_after
                  - message
                properties:
                  connection_id:
                    type: string
                    format: uuid
                  ready:
                    type: boolean
                    enum:
                      - true
                  check:
                    type: 'null'
                  status:
                    type: string
                    enum:
                      - checking
                  retry_after:
                    type: integer
                  message:
                    type: string
              example:
                connection_id: 3f9a6c2e-8b1d-4c7a-9e5f-2a6b1c0d4e8f
                ready: true
                check: null
                status: checking
                retry_after: 4
                message: >-
                  The account is still being checked. Send the same request
                  again in a few seconds; it reads the same check.
        '400':
          description: >-
            TOOL_CONNECTIONS_QUERY_INVALID (a query parameter was sent) or
            TOOL_CONNECTION_REQUEST_INVALID (a body with fields: a check takes
            none).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: >-
            INSUFFICIENT_SCOPE, WORKFLOW_ACTOR_DENIED (the key needs
            tools:create to make the read ready and tools:update to run it), 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'
        '409':
          description: >-
            TOOL_CONNECTION_NOT_READY: the account is not signed in, so there is
            nothing to check yet. Reconnect it (POST
            /tool-connections/{id}/reconnect), then check again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: >-
            CONNECTION_CHECK_BUSY: too many tests are running in this workspace
            (Retry-After).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: >-
            CONNECTION_CHECK_UNAVAILABLE: the check could not be started on our
            side; nothing was changed (Retry-After).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    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'
    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.