---
docId: doc_ab25e974f12545b5bcef82c9c7ea17b0
title: Get the usage summary
description: "Read a workspace summary of messages, credits, conversations, and autonomy."
api:
  group: estadisticas
  auth: bearer
  operations:
    - operationId: getUsageSummary
      method: GET
      path: /v1/usage/summary
      postmanName: Get the usage summary
---

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

# Get the usage summary

Read the workspace summary: total and billable messages, failed messages, credits used, conversations, and autonomy rate.

## Example

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

```bash
curl https://api.platic.ai/v1/usage/summary \
  -H "Authorization: Bearer $PLATIC_API_KEY"
```

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

```ts
await platic.usage.summary();
```

</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 | — |

## Response

```json
{
  "status": "success",
  "data": {
    "workspaceId": "g6yCA16pkWl5eXo7KszB",
    "billingType": "subscription",
    "plan": {
      "name": "Growth",
      "credits": 6500
    },
    "billingPeriod": {
      "startDate": "2026-06-01T00:00:00.000Z",
      "endDate": "2026-06-30T23:59:59.999Z"
    },
    "range": {
      "startDate": "2026-06-01T00:00:00.000Z",
      "endDate": "2026-06-30T23:59:59.999Z"
    },
    "dataSince": "2026-05-21T06:00:00.000Z",
    "messages": {
      "totalMessages": 1200,
      "billableMessages": 1188,
      "nonBillableMessages": 12,
      "failedMessages": 12,
      "serviceCount": 950,
      "humanServiceCount": 120,
      "campaignCount": 250,
      "creditsUsed": 1320,
      "credits": 6500,
      "totalChangePct": -8.8,
      "serviceChangePct": -11.2,
      "campaignChangePct": 0
    },
    "comments": {
      "received": 340,
      "agentReplies": 210
    },
    "conversations": {
      "conversationCount": 340,
      "assistedConversationCount": 28,
      "assistanceRequestCount": 35,
      "autonomyRate": 91.76
    },
    "freshness": {
      "usage": {
        "source": "transactions",
        "lastUpdated": null,
        "expectedLagSeconds": 0
      },
      "conversations": {
        "source": "daily_aggregations",
        "lastUpdated": "2026-06-29T18:00:05.000Z",
        "expectedLagMinutes": 60
      }
    },
    "generatedAt": "2026-06-29T18:05:12.000Z"
  }
}
```

## Response fields

<Collapsible summary="Show all fields">

| Field | Description |
|-------|-------------|
| `workspaceId` | Workspace ID |
| `billingType` | Workspace billing type |
| `plan` | Workspace plan and included credits |
| `billingPeriod` | Active billing period of the workspace |
| `range` | Effective date range evaluated |
| `dataSince` | Earliest reliable date for billable metrics |
| `messages.totalMessages` | Total volume, including failed/non-billable messages |
| `messages.billableMessages` | Messages that are charged |
| `messages.nonBillableMessages` | Messages that are not charged |
| `messages.failedMessages` | Failed messages; they do not consume balance |
| `messages.serviceCount` | Service messages |
| `messages.humanServiceCount` | Part of `serviceCount` sent by a person from the inbox |
| `messages.campaignCount` | Campaign or template messages |
| `messages.credits` | Workspace included credits |
| `messages.creditsUsed` | Estimated credits consumed (omitted for enterprise workspaces) |
| `messages.totalChangePct` | Percentage change vs the previous period |
| `comments.received` | Instagram and Facebook comments received in the range |
| `comments.agentReplies` | Charged comment replies the agent delivered (private replies sent by your team are not included) |
| `conversations.conversationCount` | Total conversations (posts excluded) |
| `conversations.assistedConversationCount` | Conversations that required human assistance |
| `conversations.assistanceRequestCount` | Assistance requests recorded |
| `conversations.autonomyRate` | Percentage of conversations resolved without human assistance |
| `freshness` | Latest update and expected lag per source. `usage.source` is `transactions` when messages were counted exactly (ranges up to 92 days) and `daily_aggregations` on longer ranges and on enterprise |
| `generatedAt` | When the response was generated |

</Collapsible>

## Errors

| Status | `details.code` | When it happens |
|--------|----------------|-----------------|
| `400` | `INVALID_REQUEST` | A query parameter is not valid: one the endpoint does not know or a date that is not ISO 8601 with offset. `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": "unrecognized_keys",
        "keys": ["from"],
        "path": [],
        "message": "Unrecognized key(s) in object: 'from'"
      }
    ]
  }
}
```

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

<Note type="note">

For enterprise workspaces, `messages` includes `credits` (the workspace allotment) but not `creditsUsed`, because enterprise billing uses customer-specific rates.

</Note>

<Note type="tip">

For daily or dimensional breakdowns, use [Message Usage](/api-reference/usage/messages) or [Conversation Usage](/api-reference/usage/conversations).

</Note>
