# Usage endpoint

Use `GET /v1/me/usage?days=N` for recent daily usage records, and use the account or credits endpoint for current allowance windows.

```bash
curl "https://api.foxora.ai/v1/me/usage?days=30" \
  -H "Authorization: Bearer $FOXORA_ACCESS_TOKEN"
```

1. Choose a positive day count; the service defaults invalid input and caps the range at 180 days.
2. Read the returned `days` value as the applied range.
3. Aggregate or chart the `data` rows according to their returned fields.
4. Compare before and after a controlled request when diagnosing unexpected activity.

`/v1/me/usage` is a usage-log timeline, not the weekly/monthly credit-window response. Read `/v1/me` for account usage fields or `/v1/me/credits` for the current credit balance and windows.

**Expected result:** the response contains the applied day range and daily records for the authenticated account.
