Chat icon

Chat

Interact with the Chat API

Actions253

Inbox → WhatsApp Get Pair Code

AI-generated

Summary

Retrieve the WhatsApp pair code for a QuePasa inbox.

Inputs

  • accountId (required) — Select the account to use.
  • whatsappSpecialInboxId (required) — Select the QuePasa WhatsApp inbox to use.
  • historySyncDays — Number of days of WhatsApp history QuePasa should import while connecting.
  • phoneNumber (required) — Phone number used by QuePasa to generate the pair code, including country code and digits only if possible.

Output shape

object with 'pairCode' field (string)

Returns a single record; the pair code is in the 'pairCode' property. No pagination or additional fields are required.

Examples

Example 1: Connect a new WhatsApp inbox to QuePasa

Select the account, select the inbox, enter the phone number, optionally set history sync days.

Example 2: Obtain pair code for inbox 123 using account 456

accountId = 456, whatsappSpecialInboxId = 123, phoneNumber = 5511999999999, historySyncDays = 3.

Example 3: Retrieve pair code as part of an onboarding workflow

Configure the operation with required resources and optional history days; capture the returned 'pairCode' for later use.

Links

Discussion