cURL
curl --request POST \ --url https://api.wapizap.com/api/v2/instances \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "minha-loja", "webhookUrl": "https://meusite.com/webhook", "qrcode": true, "integration": "baileys" } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "name": "<string>", "status": "connected", "phone": "<string>", "profilePicture": "<string>", "createdAt": "2023-11-07T05:31:56Z", "lastConnection": "2023-11-07T05:31:56Z" }
Cria uma nova instância WhatsApp
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
"minha-loja"
"https://meusite.com/webhook"
Gerar QR code imediatamente
baileys
Instância criada
connected
disconnected
connecting
error
Número WhatsApp conectado