> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lupin.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Metrics & events

> Usage series, event queries and the label audit log.

# Metrics & events

## Usage

```
GET /v0/metrics/usage
GET /v0/projects/:project_id/metrics/usage
GET /v0/emails/inboxes/:inbox_id/metrics/usage
```

```json theme={null}
{ "message_count": [{ "timestamp": "…", "value": 42 }], "storage_bytes": […] }
```

Available types by scope: inbox adds `storage_bytes`, `message_count`,
`thread_count`; project adds `inbox_count`, `domain_count`; org adds `pod_count`.
Unknown-at-scope types are 400.

## Events

```
GET /v0/metrics/events[?type=message.sent&before=…&after=…]
```

Time-ordered sends, receives, bounces, opens and label changes.
`GET /v0/emails/inboxes/:inbox_id/events` is the pure audit log:
`label.added` / `label.removed` with message, label and timestamps.
