API ReferenceREST /api/v1Sign in

GET /api/v1/plans is public and returns the latest public version per plan code. Staff can patch limits on a plan id (PATCH /api/v1/plans/:id/limits), which versions the plan.

List public catalog

Retrieve one code

GET /api/v1/plans/:code

Markdown source
---
title: Plans
nav: Plans
group: Core resources
order: 80
---

# Plans

`GET /api/v1/plans` is public and returns the latest public version per plan code. Staff can patch limits on a plan id (`PATCH /api/v1/plans/:id/limits`), which versions the plan.

## List public catalog

```curl
curl {{API}}/api/v1/plans
```

```node
const { items } = await fetch(`${api}/api/v1/plans`).then((r) => r.json());
```

```python
urllib.request.urlopen(f"{api}/api/v1/plans")
```

## Retrieve one code

`GET /api/v1/plans/:code`

```curl
curl {{API}}/api/v1/plans/starter
```

```node
await fetch(`${api}/api/v1/plans/${code}`).then((r) => r.json());
```

```python
urllib.request.urlopen(f"{api}/api/v1/plans/starter")
```