Skip to main content
GET
/
analytics
/
instances
/
{instanceId}
/
stats
Estatísticas da Instância
curl --request GET \
  --url http://localhost:3000/api/analytics/instances/{instanceId}/stats \
  --header 'Authorization: Bearer <token>'
instanceId
string
required
ID da instância.
from
string
required
Data de início (ISO 8601). Ex: 2026-01-01.
to
string
required
Data de fim (ISO 8601). Ex: 2026-01-31.
groupBy
string
default:"day"
Agrupamento: day, week ou month.

Resposta

{
  "sent": 1250,
  "delivered": 1180,
  "read": 950,
  "received": 340,
  "conversations": 200,
  "breakdown": [
    {
      "date": "2026-01-01",
      "sent": 42,
      "delivered": 40,
      "read": 35,
      "received": 12,
      "conversations": 8
    }
  ]
}