# Usage snapshot (default) or billed-spend metering (with params)

Returns the usage snapshot (default) or billed-spend metering (with params).

```http
GET https://api.pozy.ai/v1/usage
```

- Area: Workspace / Usage
- Auth: Authorization: Bearer pz_live_...

## Query parameters

- `reconcile` (boolean)
- `range` (string): one of cycle, prev-cycle, 7d, 14d, 30d, 3mo, 12mo, custom
- `from` (string (date))
- `to` (string (date))
- `granularity` (string): one of day, month, total
- `groupBy` (string): one of profile, account
- `profileId` (string)
- `accountId` (string)

## Example request

```bash
curl -X GET "https://api.pozy.ai/v1/usage" \
  -H "Authorization: Bearer $POZY_API_KEY"
```

```ts
const res = await fetch("https://api.pozy.ai/v1/usage", {
  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/usage",
    headers={"Authorization": f"Bearer {os.environ['POZY_API_KEY']}"},
    timeout=30,
)
resp.raise_for_status()
print(resp.json())
```

## Response 200


```json
{
  "billingSystem": "stripe",
  "planName": "Acme",
  "billingPeriod": "monthly",
  "signupDate": "2026-10-02T09:00:00.000Z",
  "billingAnchorDay": 1,
  "hasAccess": true,
  "customerId": "691909ff82eb5ed7c816716d",
  "isInvitedUser": true,
  "autoUpgradeEnabled": true,
  "limits": {
    "uploads": 1,
    "profiles": 1
  },
  "usage": {
    "uploads": 1,
    "profiles": 1,
    "lastReset": "2026-10-02T09:00:00.000Z",
    "connectedAccounts": 42,
    "xApiCalls": {
      "x_api_005": 1,
      "x_api_010": 1,
      "x_api_015": 1
    },
    "xApiCallsByOperation": {
      "key": 1
    }
  },
  "spend": {
    "currentPeriodCents": 1,
    "creditsRemainingCents": 1,
    "xSpendCents": 1,
    "xSpendLimitCents": 1
  }
}
```
