flow api
Calls · POST

callsAuthCode

Calls (beta): link calling with an 8-character code instead of scanning callsQr. On the phone: WhatsApp > Linked devices > Link a device > Link with phone number instead, then type the code.

Video walkthrough: callsAuthCode · 14 seconds · click the bar to jump to a step

Endpoint

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

Request body

{
  "phoneNumber": "972501234567"
}

Example

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

Response

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

Notes

  • phoneNumber: the number being linked, in international format, digits only (e.g. 972501234567).
  • The code is valid for about 2 minutes; ask for a new one if it expires.
  • Returns {"status":false,"message":"calls are already linked for this instance"} when calling is already linked.
Green API compatible. callsAuthCode 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, 429 rate limit reached (wait the seconds in the Retry-After header), 400 with a message for anything else.

More calls methods

Try it on your own number

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

Start free trial