/api/v1/instances/statusscope: instances:readStatus da instância WhatsApp
Retorna informações da organização vinculada à chave, incluindo o sessionId da instância WhatsApp, escopos concedidos e limites (rate limit e cota mensal).
Response (200)
{
"ok": true,
"data": {
"orgId": "b1a2...uuid",
"name": "Minha Empresa",
"whatsapp": {
"instanceId": "b1a2...uuid",
"status": "connected",
"phoneNumber": "5511999999999",
"error": null
},
"scopes": ["whatsapp:send", "instances:read"],
"rateLimitPerMinute": 60,
"monthlyQuota": 100000
}
}Exemplo cURL
curl -X GET https://gruposilvaenterprise.lovable.app/api/v1/instances/status \
-H "Authorization: Bearer gse_live_xxxxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"