Skip to main content
POST
/
instances
/
{id}
/
connect
Conectar Instância
curl --request POST \
  --url https://api.wapizap.com/api/v2/instances/{id}/connect \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "pairingCode": false
}
'
{
  "qrcode": {
    "pairingCode": "<string>",
    "base64": "<string>"
  },
  "ttl": 60
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
string<uuid>
required

Body

application/json
pairingCode
boolean
default:false

Retornar código de pareamento (8 dígitos)

Response

200 - application/json

QR code gerado

qrcode
object
ttl
integer

Tempo de vida em segundos

Example:

60