# Get conversation analytics

Fetches conversation analytics.

```http
GET https://api.pozy.ai/v1/analytics/inbox/conversations/{conversationId}
```

- Area: Analytics / Inbox Analytics
- Auth: Authorization: Bearer pz_live_...

## Path parameters

- `conversationId` (string, required)

## Query parameters

- `fromDate` (string (date), required)
- `toDate` (string (date))

## Example request

```bash
curl -X GET "https://api.pozy.ai/v1/analytics/inbox/conversations/6e525f3820fc636aa96d2ee9?fromDate=2026-10-01" \
  -H "Authorization: Bearer $POZY_API_KEY"
```

```ts
const res = await fetch("https://api.pozy.ai/v1/analytics/inbox/conversations/6e525f3820fc636aa96d2ee9?fromDate=2026-10-01", {
  headers: { Authorization: `Bearer ${process.env.POZY_API_KEY}` },
});
const data = await res.json();
if (!res.ok) throw new Error(data?.error ?? `Request failed with status ${res.status}`);
console.log(data);
```

```python
import os
import requests

resp = requests.get(
    "https://api.pozy.ai/v1/analytics/inbox/conversations/6e525f3820fc636aa96d2ee9",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    params={
        "fromDate": "2026-10-01",
    },
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200

- `success`, boolean
- `conversationId`, string
- `mongoId`, string
- `platform`, string: Can be null
- `from`, string (date)
- `to`, string (date): Can be null
- `summary`, object
  - `received`, integer
  - `sent`, integer
  - `read`, integer
  - `failed`, integer
  - `totalMessages`, integer
  - `firstMessageAt`, string (date-time): Can be null
  - `lastMessageAt`, string (date-time): Can be null
- `timeseries`, array of object
  - `date`, string (date)
  - `sent`, integer
  - `received`, integer
  - `read`, integer
  - `failed`, integer
- `bySource`, array of object
  - `source`, string
  - `count`, integer

```json
{
  "success": true,
  "conversationId": "6e525f3820fc636aa96d2ee9",
  "mongoId": "69a579625d8d26a9e12912c0",
  "platform": "instagram",
  "from": "2026-10-01",
  "to": "2026-10-01",
  "summary": {
    "received": 1,
    "sent": 1,
    "read": 1,
    "failed": 1,
    "totalMessages": 42,
    "firstMessageAt": "2026-10-02T09:00:00.000Z",
    "lastMessageAt": "2026-10-02T09:00:00.000Z"
  },
  "timeseries": [
    {
      "date": "2026-10-02T09:00:00.000Z",
      "sent": 1,
      "received": 1,
      "read": 1,
      "failed": 1
    }
  ],
  "bySource": [
    {
      "source": "string",
      "count": 42
    }
  ]
}
```
