---
title: "Get Billing Entitlement"
method: GET
path: "/api/billing/entitlement"
---

# Get Billing Entitlement

`GET /api/billing/entitlement`

Fetch internal per-org entitlement state for billing/paywall decisions.

The optional ``plan_slug`` query param is sent by the frontend (derived from
Clerk's ``has({ plan })``).  When it differs from the stored plan_slug we
trigger an immediate Clerk sync so credit limits update without waiting for
the nightly job.

## Query parameters

- `plan_slug` string, nullable
- `fresh` boolean
- `user_id` string
- `org_id` string

## Response `200`

Successful Response

- EntitlementResponse — Internal billing entitlement payload for frontend gating.
  - `user_id` string, required
  - `org_id` string, required
  - `subscription_status` string, required
  - `is_paid_org` boolean, required
  - `is_paying_org` boolean, required
  - `low_balance_threshold_usd` number
  - `auto_recharge_enabled` boolean
  - `auto_recharge_amount_usd` number
  - `monthly_credit_limit` integer, required
  - `monthly_credits_used` integer, required
  - `monthly_credits_remaining` integer, required
  - `monthly_credits_exhausted` boolean, required
  - `monthly_period_start` string, nullable
  - `monthly_period_end` string, nullable
  - `monthly_exhausted_at` string, nullable
  - `extra_credit_balance` integer
  - `total_available_credits` integer
  - `ai_usage_allowed` boolean
  - `minimum_required_credits` integer
  - `free_trial_credits` integer
  - `requires_billing_paywall` boolean, required
  - `paywall_reason` string, nullable
  - `credits_reset_at` string, nullable
  - `billing_path` string, nullable
  - `has_payment_method` boolean
  - `plan_slug` string, nullable
  - `plan_name` string, nullable
  - `server_time` string, nullable
  - `is_trialing` boolean
  - `trial_started_at` string, nullable
  - `trial_ends_at` string, nullable
  - `trial_forfeited` boolean
  - `has_ever_paid` boolean

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/every/apis/every-api.md) · [All operations](https://skmtc.net/every/apis/every-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/every/every-api/versions/9744001af85d/schema)
