Skip to main content
POST
Check that a connected account actually works
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.
A WhatsApp account whose Facebook sign-in has no WhatsApp Business number answers:
ready stays the sign-in fact; check is what the read found. 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:
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/ 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).

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

What the read found. ready stays the sign-in fact.

connection_id
string<uuid>
required
ready
enum<boolean>
required

The account's sign-in is finished (state ready).

Available options:
true
check
object
required

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

Example: