Skip to main content
POST
/
v1
/
whatsapp
/
instances
Criar instância (WhatsApp)
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
    }
  }
}

Authorizations

Authorization
string
header
required

API Key no header Authorization. Exemplo: Authorization: Bearer sk_live_xxxxx

Body

application/json
name
string
required
Required string length: 3 - 1024

Response

Instância criada e dados de conexão (connection: QR em base64, code, pairingCode e count).

success
boolean
Example:

true

data
object