> ## Documentation Index
> Fetch the complete documentation index at: https://docs.zeplo.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GET Message Analytics

> Get message delivery and engagement analytics.

## Message analytics

`GET /api/analytics/messages`

Retrieve message delivery, engagement, and volume analytics.

### Headers

**Cookie** `string` *required*

Session cookie (login via POST /api/auth/login)

**startDate** `string` *required*

Start date (ISO 8601)

**endDate** `string` *required*

End date (ISO 8601)

**channelId** `string`

Filter by channel

**granularity** `string`

Time granularity: `hour`, `day`, `week`, or `month`

```bash cURL theme={null}
curl "https://zeplo.ai/api/analytics/messages?startDate=2026-01-01&endDate=2026-01-31&granularity=day" \
  -H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw"
```

```json Response theme={null}
{
  "success": true,
  "data": {
    "summary": {
      "totalSent": 5000,
      "totalDelivered": 4850,
      "totalRead": 3200,
      "totalReplied": 450,
      "totalFailed": 150,
      "deliveryRate": 97.0,
      "readRate": 66.0,
      "replyRate": 9.3
    },
    "timeline": [
      {
        "date": "2026-01-01",
        "sent": 200,
        "delivered": 195,
        "read": 130,
        "replied": 20,
        "failed": 5
      }
    ]
  }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.