GET /api/v1/status with status:read remains the normal bound-phone status check. An HTTP health response proves the process responds; it does not prove WhatsApp connectivity.
Inspect and pair
GET /api/v1/connection requires connection:read and reports status, expected bound accountId, observed connectedAccountId, confirmed, mismatch, paused and version.
An owner can issue a pre-pairing key limited to connection:read, connection:pair, connection:disconnect and optional logs:read. No message/chat authority is available until the phone is confirmed. Confirmation binds the key to that number; it does not add other scopes.
- Call
POST /api/v1/connection/startwithconnection:pair, a stableIdempotency-Keyand{}. - Fetch
GET /api/v1/connection/qrwithconnection:pairwhile pairing is needed. The response containsmimetype: "image/png"and base64datawith private no-store handling. - Show the QR privately to the authorised person and link WhatsApp.
- Call
POST /api/v1/connection/confirmwith the same scope, a new operation key and{"accountId":"<connected-number-with-country-code>"}. The account must match the currently linked number and any immutable existing binding.
Disconnect deliberately
POST /api/v1/connection/disconnect requires separate connection:disconnect permission, a stable operation key and current state:
connectedAccountId, or the bound accountId when offline. Use null only when no number is linked. expectedVersion is the integer version from the latest connection inspection; 3 above is an example. Disconnection pauses sending, automation and schedules before logging out the selected phone’s current session. It does not delete session files manually or affect unrelated runtimes. Use the API reference for the response schema.
Review the effect in your host before submitting. An uncertain result must never automatically retry. Do not restart stopped/pairing sessions or clear storage as a recovery shortcut. See safe requests and connection help.