# List plans

`GET /v1/billing/plans`

The plans, what each allows in a month, what it costs by the month and by the year, what emails past a limit cost, and which one the workspace is on.

Needs the scope: `workspace:read`

## Returns

- `object` ("list"): Always `list`.
- `data` (object[]): Every plan, cheapest first.
- `data[].object` ("plan"): Always `plan`.
- `data[].id` (string): The id of the plan: `free`, `pro` or `max`. One of: `free`, `pro`, `max`.
- `data[].name` (string): The name of the plan.
- `data[].priceCents` (integer): What it costs a month, in cents of a US dollar.
- `data[].yearlyPriceCents` (integer): What a year costs when it is paid by the year, in cents of a US dollar.
- `data[].extraEmailCents` (number | null): What every 1,000 emails past a limit cost, in cents of a US dollar. `null` when sending stops at the limit instead.
- `data[].limits` (Record<string, number>): What the plan allows in a month, by limit id.
- `data[].current` (boolean): Whether the workspace is on this plan now.
- `data[].sold` (boolean): Whether this installation sells the plan by the month, so a checkout can be opened.
- `data[].soldYearly` (boolean): Whether this installation sells the plan by the year.
- `connected` (boolean): Whether a payment provider is connected. Without one no plan can be bought.
- `interval` (string | null): How the current plan is paid: by the `month` or by the `year`. `null` when nobody pays for it. One of: `month`, `year`.

## Example

cURL:

```bash
curl "$OPENSEND_API_URL/v1/billing/plans" \
  -H "Authorization: Bearer $OPENSEND_API_KEY"
```

TypeScript:

```ts
await opensend.billing.plans()
```

CLI:

```bash
opensend billing plans
```

MCP:

```json
{
  "name": "billing_plans",
  "arguments": {}
}
```

Answer:

```json
{
  "object": "list",
  "data": [
    {
      "object": "plan",
      "id": "free",
      "name": "Free",
      "priceCents": 0,
      "yearlyPriceCents": 0,
      "extraEmailCents": null,
      "limits": {
        "transactional": 5000,
        "marketing": 5000,
        "received": 5000,
        "contacts": 2000,
        "domains": 5,
        "members": 5,
        "requests": 100000,
        "storage": 1073741824
      },
      "current": false,
      "sold": false,
      "soldYearly": false
    },
    {
      "object": "plan",
      "id": "pro",
      "name": "Pro",
      "priceCents": 2000,
      "yearlyPriceCents": 20000,
      "extraEmailCents": 70,
      "limits": {
        "transactional": 75000,
        "marketing": 75000,
        "received": 75000,
        "contacts": 15000,
        "domains": 25,
        "members": 15,
        "requests": 1000000,
        "storage": 10737418240
      },
      "current": false,
      "sold": true,
      "soldYearly": false
    },
    {
      "object": "plan",
      "id": "max",
      "name": "Max",
      "priceCents": 9000,
      "yearlyPriceCents": 90000,
      "extraEmailCents": 45,
      "limits": {
        "transactional": 200000,
        "marketing": 200000,
        "received": 200000,
        "contacts": 60000,
        "domains": 1000,
        "members": 50,
        "requests": 10000000,
        "storage": 107374182400
      },
      "current": false,
      "sold": true,
      "soldYearly": false
    }
  ],
  "connected": true,
  "interval": null
}
```
