# Get plan limits and usage

`GET /api/v1/workspaces/{workspaceId}/quotas`

The workspace's plan, each limit with how much of it is used, and the shortest check interval. Any member; any token may read it.

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

Section: Workspaces. Operation id in openapi.json: `get_workspace_quotas`.

## Parameters

| Name | In | Required | Type | Description |
|---|---|---|---|---|
| `workspaceId` | path | yes | string (uuid) | The workspace's id. |

## Responses

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

### 200

The limits and usage.

`application/json`: WorkspaceQuotas

| Field | Type | Required | Description |
|---|---|---|---|
| `addons` | AddonsView | no | Add-on packs bought on top of the plan. |
| `apiTokens` | QuotaUse | yes |  |
| `channels` | QuotaUse | yes |  |
| `checks` | QuotaUse | yes |  |
| `features` | PlanFeatures | no |  |
| `history` | HistoryQuota | no |  |
| `members` | QuotaUse | no | Members, the owner included, and invites still open. Always sent; optional in the schema because it was added after the first clients (as every field below). |
| `minInterval` | IntervalQuota | yes |  |
| `plan` | PlanRef | no | The plan these limits come from. |
| `privateNodes` | QuotaUse | yes |  |
| `projects` | QuotaUse | no |  |
| `source` | PlanSource | no |  |
| `statusPages` | QuotaUse | yes |  |
| `subscribersPerPage` | QuotaUse | yes | Email subscribers of one status page; `used` is the largest number any page of the workspace has. |

### 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

### 404

Not Found.

- `request.not_found`: it does not exist, or you cannot see 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).
