Skip to main content
POST
Generate single-use WhatsApp Web migration code
Generates a one-time code (8 characters, A-Z0-9) bound to a session. The code is shown to the end user, who enters it in the Integration Assistant extension to migrate an already authenticated WhatsApp Web connection to this session — without scanning the QR code.
  • Validity: 30 minutes.
  • Single use: consumed on the first successful migration (a failure keeps the code valid until it expires, allowing another attempt).
  • Authentication: your apiKey in the Authorization header. The session given in sessionId must belong to your account.
This endpoint only generates the code. The migration itself is done by the extension, which reads the WhatsApp Web session credentials and sends them along with the code. See Install the Integration Assistant.
In the Dashboard, the code also appears on the Connect device screen, right below the QR code, ready to copy.

Authorizations

Authorization
string
header
required

API Key for authentication. Format: <API_KEY>

Path Parameters

sessionId
string
required

Response

200

Successful response