Restart a connection session
Restarts the WhatsApp adapter session without deleting the connection record. After a restart, poll `GET /connections/{id}` and re-render the QR code if `status` returns to `"connecting"`.
Restarts the WhatsApp adapter session without deleting the connection record. After a restart, poll GET /connections/{id} and re-render the QR code if status returns to "connecting".
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.
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/connections/string/restart"{ "ok": true, "recreated": false}Delete a connection DELETE
Permanently removes the connection and its adapter session. This cannot be undone — the user will need to create a new connection and go through QR pairing again.
Log out a connection POST
Logs the WhatsApp session out and clears session credentials. The connection record is preserved. To reconnect, call `POST /connections/{id}/restart` and re-scan the new QR code.