Get connection status
Returns the current status and metadata of a single connection. Poll every 3–5 s during QR pairing — `status` becomes `"connected"` once the user scans the code. The `qr` field carries a NEW pairing code on each poll — re-render it every time. WhatsApp rotates the code roughly every 20 s, so a QR displayed for longer than that will not scan.
Returns the current status and metadata of a single connection. Poll every 3–5 s during QR pairing — status becomes "connected" once the user scans the code. The qr field carries a NEW pairing code on each poll — re-render it every time. WhatsApp rotates the code roughly every 20 s, so a QR displayed for longer than that will not scan.
The default way to authenticate. Create a key at https://developers.wasync.app/keys and send it as Authorization: Bearer wsk_live_….
The key is shown once at creation and stored only as a hash — lose it and you revoke it and create another. Each key carries its own scopes (whatsapp.read, whatsapp.send, whatsapp.events, whatsapp.manage) and an optional IP allowlist.
Errors: an unknown or revoked key returns 401 invalid_key; a key whose IP allowlist does not cover the calling address returns 403 ip_not_allowed (a distinct code on purpose — the key is fine, the address is not). Both carry a WWW-Authenticate: Bearer challenge. Scopes and the connection list are resolved live on every request, so revoking a key or narrowing it takes effect on the next call.
In: header
Path Parameters
Connection id (from POST /connections or GET /connections).
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/connections/string"{ "connection": { "id": "conn_8f3a21", "status": "connected", "phoneNumber": "40700000000", "label": "Support line", "provider": "qr", "licenseStatus": "active", "licenseExpires": "2019-08-24T14:15:22Z", "qr": "string", "phone": "40700000000", "license_status": "active", "license_expires": "2019-08-24T14:15:22Z" }}