Baileys Instance icon

Baileys Instance

Use the wa-instance API built on Baileys 7

Instance → Request Pairing Code

AI-generated

Summary

Requests a WhatsApp pairing code for a specific phone number when the instance is configured in code pairing mode.

Inputs

  • phoneNumber — International number to pair. If empty, the backend falls back to WA_PHONE_NUMBER.

Output shape

a single record

Returns the pairing code and phone number.

Examples

Example 1: Pairing a new WhatsApp account using a pairing code instead of QR.

Set resource to Instance, operation to Request Pairing Code, and enter the phone number (e.g., 34600111222).

Links

Discussion