# Get plan limits

> GET /me/limits

Source: https://mockflow.com/developers/reference/me/get-limits

**GET** `https://api.mockflow.com/v1/me/limits`  
Scopes: `user:read`

**curl**

```bash
curl https://api.mockflow.com/v1/me/limits \
  -H "Authorization: Bearer $MOCKFLOW_API_KEY"
```

**JavaScript**

```javascript
const response = await fetch("https://api.mockflow.com/v1/me/limits", {
  method: "GET",
  headers: {
    Authorization: `Bearer ${process.env.MOCKFLOW_API_KEY}`
  }
});

const data = await response.json();
```

**Python**

```python
import os, requests

response = requests.get(
    "https://api.mockflow.com/v1/me/limits",
    headers={"Authorization": f"Bearer {os.environ['MOCKFLOW_API_KEY']}"},
)

response.raise_for_status()
data = response.json()
```

**200**

```json
{
  "plan": "basic",
  "boards": {
    "used": 0,
    "limit": 0
  },
  "spaces": {
    "used": 0,
    "limit": 0
  },
  "reviewersPerSpace": {
    "limit": 0
  },
  "trash": false,
  "moveBetweenSpaces": false
}
```

**429**

```json
{
  "error": {
    "code": "rate_limited",
    "message": "Too many requests.",
    "docsUrl": "https://mockflow.com/developers/concepts/errors#rate_limited"
  },
  "requestId": "req_45d49816999bac40"
}
```

What the workspace plan allows before you try. Basic makes three boards and one space, has no trash, cannot move boards between spaces, cannot generate with Mida and shares a space as reviewer only. Plus and Max are unlimited. `limit` is null when there is no cap.

### Authorization

- `Authorization` (string, required): `Bearer <key>`. The key needs `user:read` scope. Create and manage keys in the [developer console](/developers/console/); what each scope unlocks is on the [scopes page](/developers/concepts/scopes).

### Response

- `plan` (enum<string>): One of `basic`, `plus` or `max`.
- `boards` (object): - `used` (integer)
  - `limit` (integer | null)
- `spaces` (object): - `used` (integer)
  - `limit` (integer | null)
- `reviewersPerSpace` (object): - `limit` (integer | null)
- `trash` (boolean)
- `moveBetweenSpaces` (boolean)
- `generate` (boolean)
- `shareRoles` (string[])
- `upgradeUrl` (string)

### Errors

- 429 `rate_limited`: Too many requests.
