# List plans

`GET /api/v1/plans`

The plans with their limits, features and prices. Any token may read them.

Sign-in: a dashboard session, any API token or the `monitorly` CLI's sign-in.

Section: Plans and billing. Operation id in openapi.json: `list_plans`.

## Responses

Errors are `application/problem+json` (`Problem`); branch on `type`.

### 200

The plan catalogue.

`application/json`: PlansView

| Field | Type | Required | Description |
|---|---|---|---|
| `checksPerPack` | integer | yes | Checks in one add-on pack. |
| `maxPacks` | integer | yes | The most packs of each kind one subscription can have. |
| `plans` | array of PlanView | yes |  |
| `serversPerPack` | integer | yes | Servers (private nodes) in one add-on pack. |

### 400

Bad Request.

- `auth.credentials_conflict`: the request carries both a session cookie and a token

### 401

Unauthorized.

- `auth.unauthenticated`, `auth.session_expired`: no session, or it ended
- `token.invalid`: the token is malformed, unknown, revoked or expired, or its creator left the workspace

### 403

Forbidden.

- `auth.forbidden`: your role is too low for this
- `token.scope_missing`: the token lacks the scope this needs; `detail` names it

### 429

Too Many Requests.

- `token.rate_limited`: more than 10 requests a second with this token

Schemas named above are listed with their fields in [the schema list](https://docs.monitorly.cloud/api/reference/schemas.md).
