---
title: "Get the account's plan and usage"
method: GET
path: "/api/billing"
tags: ["Billing"]
---

# Get the account's plan and usage

`GET /api/billing`

## Request

- Base URL: `https://slimlytics.com`
- URL: `https://slimlytics.com/api/billing`
- Auth: HTTP bearer

Session login only; API and agent tokens are refused (403).

## Response `200`

Plan, subscription, and usage

- object
  - `enabled` boolean, required
  - `plan` object
    - `id` string, required
    - `name` string, required
    - `sites` integer, nullable: Maximum owned sites; null is unlimited
    - `dailyPageViews` integer, nullable: Soft daily limit across the account's sites; null is unlimited
    - `monthlyPriceCents` integer
    - `annualPriceCents` integer
    - `currency` string
  - `planSource` 'default' | 'stripe' | 'admin'
  - `subscriptionStatus` string, nullable
  - `interval` 'month' | 'year' | 'null', nullable
  - `currentPeriodEnd` string, date-time, nullable
  - `usage` object
    - `sites` integer
    - `pageViewsToday` integer
  - `plans` object[]
    - `id` string, required
    - `name` string, required
    - `sites` integer, nullable: Maximum owned sites; null is unlimited
    - `dailyPageViews` integer, nullable: Soft daily limit across the account's sites; null is unlimited
    - `monthlyPriceCents` integer
    - `annualPriceCents` integer
    - `currency` string
  - `checkoutAvailable` boolean

## Other responses

- `401`: Authentication required
- `403`: Insufficient site role

---

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