---
docId: doc_af23f368c4d247c4b9ccce0f4118c8e0
title: Get conversation usage
description: "Read conversation and autonomy metrics by platform, agent, channel, or tag."
api:
  group: estadisticas
  auth: bearer
  operations:
    - operationId: getUsageConversations
      method: GET
      path: /v1/usage/conversations
      postmanName: Get conversation usage
---

<script>
  import { Note, Ways, Collapsible } from '$lib/components';
</script>

# Get conversation usage

Read conversation and autonomy metrics by platform, agent, channel, or tag.

## Example

<Ways tabs="api,sdk">
<Ways.Way name="api">

```bash
curl "https://api.platic.ai/v1/usage/conversations?breakdown=agent" \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

</Ways.Way>
<Ways.Way name="sdk">

```ts
await platic.usage.conversations({ breakdown: "agent" });
```

</Ways.Way>
</Ways>

## Query parameters

| Parameter | Type | Description | Required |
|-----------|------|-------------|----------|
| `workspace` | string | Workspace ID. Required when your credential covers several workspaces ([list workspaces](/api-reference/workspaces)); without it the answer is `400` | When the credential has several |
| `startDate` | string | ISO 8601 start date with offset. If omitted, uses the start of the billing period | — |
| `endDate` | string | ISO 8601 end date with offset. If omitted, uses the end of the billing period | — |
| `breakdown` | enum | Breakdown dimension: `platform` (default), `agent`, `channel`, or `tag` | — |

## Response

```json
{
  "status": "success",
  "data": {
    "workspaceId": "g6yCA16pkWl5eXo7KszB",
    "billingPeriod": {
      "startDate": "2026-06-01T00:00:00.000Z",
      "endDate": "2026-06-30T23:59:59.999Z"
    },
    "conversations": {
      "range": {
        "startDate": "2026-06-01T00:00:00.000Z",
        "endDate": "2026-06-30T23:59:59.999Z"
      },
      "freshness": {
        "source": "daily_aggregations",
        "lastUpdated": "2026-06-29T18:00:05.000Z",
        "expectedLagMinutes": 60
      },
      "summary": {
        "conversationCount": 340,
        "assistedConversationCount": 28,
        "assistanceRequestCount": 35,
        "autonomyRate": 91.76
      },
      "breakdown": {
        "dimension": "platform",
        "totals": [
          { "key": "whatsapp", "label": "WhatsApp", "value": 300 }
        ],
        "series": [
          { "date": "2026-06-29T12:00:00.000Z", "key": "whatsapp", "label": "WhatsApp", "value": 40 }
        ]
      }
    }
  }
}
```

## Response fields

<Collapsible summary="Show all fields">

| Field | Description |
|-------|-------------|
| `workspaceId` | Workspace ID |
| `billingPeriod` | Active billing period for the workspace |
| `conversations.range` | Effective date range evaluated |
| `conversations.summary.conversationCount` | Total conversations |
| `conversations.summary.assistedConversationCount` | Conversations that required human assistance |
| `conversations.summary.assistanceRequestCount` | Assistance requests recorded |
| `conversations.summary.autonomyRate` | Percentage of conversations resolved without human assistance |
| `conversations.breakdown.dimension` | Breakdown dimension applied |
| `conversations.breakdown.totals` | Per-key totals with `key`, `label`, and `value` |
| `conversations.breakdown.series` | Daily series per breakdown key |
| `conversations.freshness` | Latest update and expected lag |

</Collapsible>

## Errors

| Status | `details.code` | When it happens |
|--------|----------------|-----------------|
| `400` | `INVALID_REQUEST` | A query parameter is not valid: one the endpoint does not know, a date that is not ISO 8601 with offset, or a value outside the allowed list (`breakdown`). `details.issues` says which one |
| `400` | `INVALID_REQUEST` | Your credential covers several workspaces and you did not send `?workspace=`, or you sent one it does not cover. `details.available` lists the IDs you can use and `details.requested` the one you sent |
| `401` | `UNAUTHENTICATED` | The credential is missing or invalid |
| `403` | `FORBIDDEN` | With an OAuth token, the person has no access to the dashboard (statistics) in that workspace. The message is `Missing dashboard permission` |
| `404` | `NOT_FOUND` | The workspace no longer exists. This is rare |

```json
{
  "code": 400,
  "error": "Bad Request - The request has validation errors",
  "details": {
    "code": "INVALID_REQUEST",
    "message": "The request has validation errors",
    "issues": [
      {
        "code": "invalid_string",
        "validation": "datetime",
        "path": ["startDate"],
        "message": "Invalid datetime"
      }
    ]
  }
}
```

The general error format is in [Errors](/api-reference/errors).

<Note type="note">

These metrics are computed from hourly aggregates, so they may lag by up to ~60 minutes. Check `conversations.freshness` for the latest update.

</Note>
