---
title: "Plans"
method: GET
path: "/plans"
tags: ["Billing"]
---

# Plans

`GET /plans`

## Request

- Base URL: `https://api.onelence.com/v1`
- URL: `https://api.onelence.com/v1/plans`
- Auth: one of:
  - OAuth 2 (authorization code, authorization URL `https://api.onelence.com/oauth/authorize`, token URL `https://api.onelence.com/oauth/token`, scopes: `billing:subscribe`)
  - HTTP bearer

OneLence plans with monthly and yearly prices (USD) and limits; bots and crawlers use `monthly_bot_events`, apart from `monthly_events`; `current` marks the workspace's plan.

## Response `200`

Success.

- object
  - `object` 'list', required
  - `data` object[], required
    - `object` 'plan', required
    - `id` string, required
    - `name` string, required
    - `description` string, nullable, required
    - `current` boolean, required
    - `price_monthly` number, nullable, required
    - `price_yearly` number, nullable, required
    - `currency` 'USD', required
    - `limits` object, required
      - `websites` number, nullable, required
      - `team_members` number, nullable, required
      - `monthly_events` number, nullable, required
      - `monthly_bot_events` number, nullable, required
      - `monthly_conversions` number, nullable, required
      - `ai_credits_monthly` number, nullable, required
  - `has_more` boolean, required
  - `next_cursor` string, nullable, required

## Other responses

- `400`: Invalid input; `error.param` names the field.
- `401`: Missing, expired or revoked token. WWW-Authenticate points to the resource metadata.
- `402`: subscription_required or upgrade_required; the error carries billing_url.
- `403`: insufficient_scope or admin_required.
- `404`: Unknown endpoint, site, source or record.
- `429`: Rate limited. Retry after Retry-After seconds.
- `500`: OneLence could not complete the request.

---

[API](https://skmtc.dev/onelence/apis/onelence-api.md) · [All operations](https://skmtc.dev/onelence/apis/onelence-api/llms.txt) · [OpenAPI document](https://skmtc.dev/onelence/apis/onelence-api/revisions/971c72fe9a42?raw)
