Z-API WhatsApp icon

Z-API WhatsApp

Integration with Z-API (WhatsApp) organized by resources (messages, groups, chats, contacts, products, queue, instance, status, etc.).

Instance → Get QRCode Phone

AI-generated

Summary

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

Links

Discussion