Request Pairing Code

Beta

Generate a WhatsApp pairing code for phone-number login instead of scanning QR.

POSThttps://api.waplix.io/api/v1/client/request_pairing_code
Authentication
Authorization: Bearer YOUR_API_KEY
Parameters Specification
instance_id
stringReq

Waplix instance id slot

phone
stringReq

Phone number with country code (8 to 15 digits)

Usage Notes
Pairing codes can only be requested before a WhatsApp session is linked. Rejects with INSTANCE_ALREADY_CONNECTED otherwise.
Request Payload Example
Request
curl -X POST "https://api.waplix.io/api/v1/client/request_pairing_code" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "instance_id": "demo_instance",
  "phone_number": "15551234567"
}'
Success Response
Response · 200 OK
{
  "success": true,
  "message": "Pairing code requested",
  "data": {
    "instance_id": "demo_instance",
    "phone": "15551234567",
    "pairing_code": "12345678"
  },
  "error": null
}
Was this page helpful?