> ## 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 Campaign Analytics

> Get delivery and engagement analytics for a campaign.

## Campaign analytics

`GET /api/campaigns/:id/analytics`

Retrieve delivery and engagement statistics for a specific campaign.

### Headers

**Cookie** `string` *required*

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

### Path parameters

**id** `integer` *required*

Campaign ID.

```bash cURL theme={null}
curl https://zeplo.ai/api/campaigns/1/analytics \
  -H "Cookie: connect.sid=s%3A7HImZ-T2BxWSbUsf9dtWdOlBW4rVuORO.5J0Do0NyvBu%2BkTvu1aHvtNs00BKhkpUKTwiokLS0cpw"
```

```json Response theme={null}
{
  "success": true,
  "data": {
    "campaignId": 1,
    "campaignName": "New Year Promo",
    "status": "completed",
    "summary": {
      "totalRecipients": 500,
      "sent": 480,
      "delivered": 470,
      "read": 320,
      "replied": 45,
      "failed": 20
    },
    "deliveryRate": 97.9,
    "readRate": 68.1,
    "replyRate": 9.6,
    "failureRate": 4.2,
    "timeline": [
      {
        "timestamp": "2026-01-01T09:00:00Z",
        "event": "started",
        "count": 0
      },
      {
        "timestamp": "2026-01-01T09:05:00Z",
        "event": "sent",
        "count": 240
      },
      {
        "timestamp": "2026-01-01T09:15:00Z",
        "event": "completed",
        "count": 480
      }
    ],
    "failedRecipients": [
      {
        "contactId": 15,
        "phone": "919876543215",
        "error": "Invalid phone number",
        "errorCode": 131009
      }
    ]
  }
}
```


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