---
title: Usage Summary
description: Get recent workspace usage and billing counters.
icon: gauge
---

Return recent usage, render-credit counters, and workspace summary data for dashboard screens.

## Endpoint

```txt
GET https://api.pixmato.com/v1/usage/summary
```

## Request

```bash
curl "https://api.pixmato.com/v1/usage/summary" \
  -H "Cookie: __Secure-better-auth.session_token=..."
```

## Response

```json
{
  "billing": {
    "plan": {
      "id": "free",
      "name": "Free",
      "renderCreditLimit": 100
    },
    "credits": {
      "used": 23,
      "limit": 100,
      "remaining": 77,
      "percentUsed": 0.23
    }
  },
  "summary": {
    "renderCount": 24,
    "completedCount": 23,
    "failedCount": 1,
    "avgDurationMs": 842,
    "templateCount": 7,
    "activeApiKeyCount": 1,
    "assetCount": 3
  },
  "daily": [],
  "recent": []
}
```

`percentUsed` is a ratio from `0` to `1`; multiply by 100 for a percentage label.
