cURL
curl --request POST \ --url https://api.notifique.dev/v1/whatsapp/instances \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>" } '
{ "success": true, "data": { "instance": { "id": "<string>", "name": "<string>", "status": "<string>", "phoneNumber": "<string>", "createdAt": "2023-11-07T05:31:56Z" }, "connection": { "pairingCode": null, "code": "2@KbXFfHsvo+byvkP6k4VoBIE5gZFwYHT9y6dNt/c6Sfg6M+...", "base64": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAVwAAAFcCAYAAACEFgYs...", "count": 1 } } }
Cria uma nova instância WhatsApp no workspace. A resposta inclui o QR code (base64) para conectar o número ao WhatsApp. Escopo: whatsapp:instances:create.
API Key no header Authorization. Exemplo: Authorization: Bearer sk_live_xxxxx
Authorization: Bearer sk_live_xxxxx
3 - 1024
Instância criada e dados de conexão (connection: QR em base64, code, pairingCode e count).
true
Show child attributes
Was this page helpful?