---
title: "Get Billing State"
method: GET
path: "/api/billing/state"
tags: ["billing"]
---

# Get Billing State

`GET /api/billing/state`

Snapshot of plan + current-period usage for the dashboard.

## Response `200`

Successful Response

- BillingStateResponse
  - `plan_tier` string, required
  - `subscription_status` string, required
  - `pro_enabled` boolean, required
  - `can_manage_billing` boolean, required
  - `monthly_price_cents` integer, required
  - `monthly_mb_included` integer, required
  - `overage_per_gb_cents` integer, required
  - `used_bytes` integer, required
  - `period_start` string, date-time, nullable, required
  - `period_end` string, date-time, nullable, required
  - `trial_ends_at` string, date-time, nullable, required
  - `cancel_at_period_end` boolean, required
  - `has_subscription` boolean
  - `has_customer` boolean

---

[API](https://skmtc.net/codag/apis/infra-logs-templater.md) · [All operations](https://skmtc.net/codag/apis/infra-logs-templater/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/codag/infra-logs-templater/revisions/e43028aaffe3/schema)
