Actions51
- API Actions
- Chat Actions
- Contact Actions
- Group Actions
- Instance Actions
- Message Actions
- Message Queue Actions
- Product Actions
- Status Actions
Instance → Get QRCode Phone
AI-generatedSummary
Fetch the phone code for a given WhatsApp number
Inputs
- phoneNumber (required) — Phone number with country code (e.g., 5511999999999)
Output shape
single object wrapped in an array (the array contains a json field with the API response)
On success an array with one element is returned; the element's json property holds the phone code response. Errors are thrown for missing phone number or invalid responses.
Examples
Example 1: Get phone code for a Brazilian number
phoneNumber: 5511999999999