Pular para o conteúdo

Connect Whatsapp Channel

POST
/api/v1/channels/{channel_id}/whatsapp/connect

Start WhatsApp connection and get QR code.

Only works for WhatsApp channels.

IMPORTANTE: Esta funcao SEMPRE garante que eventos estejam configurados no WuzAPI antes de tentar conectar. Sem eventos, webhooks nao chegam.

channel_id
required
Channel Id
integer
x-tenant-id
Any of:
integer

Successful Response

WhatsAppQRResponse

QR code for WhatsApp connection.

object
qr_code
Qr Code

Base64 encoded QR code (empty if already connected)

string
""
expires_at
Any of:
string format: date-time
connected
Connected
boolean
phone_number
Any of:
string

Validation Error

HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string