---
title: Metrics
---

## Query Metrics
**Endpoint**: `GET /agent/v0/inboxes/{inbox_id}/metrics`
**Authentication**: `Authorization: Bearer <token>`
### Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `inbox_id` | path | string | Yes |  |
| `descending` | query | boolean | No |  |
| `end` | query | string | No |  |
| `event_types` | query | array\<`message.sent` \| `message.delivered` \| `message.bounced` \| `message.delayed` \| `message.rejected` \| `message.complained` \| `message.received`\> | No |  |
| `limit` | query | integer | No |  |
| `period` | query | string | No |  |
| `start` | query | string | No |  |

### Responses

#### `200`

Response with status 200

Content-Type: `application/json`

##### Example

```json
{}
```

#### `400`

Error response with status 400

Content-Type: `application/json`

##### Fields

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `errors` | object | Yes | Validation errors. |
| `name` | string | Yes | Name of error. |

##### Example

```json
{
  "errors": null,
  "name": "<string>"
}
```

