Skip to main content
GET
Get account readiness
Requires tool-connections:read. Use the stable Yappr connection ID returned at creation.
The server coalesces checks of the exact connected account for 15 seconds. A temporary provider outage withholds readiness. verifying is distinct from ready; successful OAuth consent alone does not prove that an action can run. app_name is the app’s display name (“Google Calendar”) for the toolkit slug. open_attempt is the sign-in still open on this connection — {id, status, expires_at}, started by anyone — or null. A reconnect replaces one nobody has opened yet and is refused 409 CONNECTION_ATTEMPT_OPEN beside one a person is in the middle of; cancel it with POST /tool-connections/attempts/{id}/cancel using open_attempt.id. last_attempt is the most recent sign-in on this connection, open or closed — {id, status, error_code, expires_at, updated_at}. A connection in state connecting with open_attempt: null never finished connecting: last_attempt.status and last_attempt.error_code say why (an open sign-in past expires_at reads as expired with AUTH_EXPIRED), and a reconnect starts it again. check is the account’s last connection check - {status, code, reading, reason, action, checked_at}, and attempt when a later check could not confirm anything - or null when it was never checked. ready means the sign-in worked; check says whether the app answered a read ("Connected, but WhatsApp says no phone numbers are set up."). It appears once the platform keeps checks for the workspace: treat a missing check as null. A connection ID from another workspace and one that does not exist both return 404 CONNECTION_NOT_FOUND. An x-company-id header naming a workspace your key does not belong to is refused before that, with 403 WORKSPACE_MISMATCH. A disconnected account remains in history with its current authorization epoch and disconnect progress.

Authorizations

Authorization
string
header
required

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

Path Parameters

id
string<uuid>
required

Response

Safe connection metadata and current verification state.

id
string<uuid>
required

Stable Yappr connection ID.

toolkit
string
required
label
string
required
Maximum string length: 200
state
enum<string>
required
Available options:
disconnected,
connecting,
verifying,
ready,
reconnect_required,
degraded
connected
boolean
required

An exact account was bound; this does not imply action readiness.

enabled
boolean
required
binding_revision
string
required

Decimal identity revision. Replacement creates a new revision.

Pattern: ^[0-9]+$
authorization_epoch
string
required

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.

Pattern: ^[0-9]+$
disconnect_progress
enum<string>
required
Available options:
none,
pending,
record_deleted,
manual_revocation_required,
unknown
created_at
string<date-time>
required
updated_at
string<date-time>
required
provider_identity
string | null

Verified provider identity, when available.

removed_at
string<date-time> | null

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
object

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.

started_by
object

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.

app_name
string | null

The app's display name, such as Google Calendar, for the toolkit slug beside it.

open_attempt
object | null

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.

last_attempt
object | null

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.

check
object | null

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.

Example: