flow api
Account · POST

getAuthorizationCode

Link a number with an 8-character pairing code instead of scanning a QR code. Handy when the console is open on the same phone.

Endpoint

POST https://flowapi.pro/waInstance{idInstance}/getAuthorizationCode/{apiTokenInstance}

Request body

{
  "phoneNumber": 972501234567
}

Example

curl -X POST "https://flowapi.pro/waInstance{idInstance}/getAuthorizationCode/{apiTokenInstance}" \
  -H "Content-Type: application/json" \
  -d '{"phoneNumber":972501234567}'

Response

{
  "status": true,
  "code": "ABCD-1234"
}

Notes

  • In WhatsApp: Linked devices → Link a device → Link with phone number, then enter the code.
Green API compatible. getAuthorizationCode uses the same name, request body and response as Green API, so existing code works after you change the host to flowapi.pro. Errors: 401 wrong instance or token, 402 trial ended or number not covered by your plan, 400 with a message for anything else.

More account methods

Try it on your own number

7 days free, no credit card. Then $10 per number per month.

Start free trial