Skip to content
Skip to Content
DevelopersAPI referenceBilling

Get the user's plan, its limits and their usage

GET
/v1/billing

Limits are the effective ones, with the server's own ceilings applied. null means no limit; 0 means none allowed. read_only is the reason the library is read-only (a PlanLimit with reason: over_limit), or null. API keys need read on account.

Authorization

bearer
headerAuthorizationBearer <token>

A personal API key (ga_…), sent as Authorization: Bearer ga_…. A key gets 403 on a resource it has no access to, and on anything that changes data without write access.

Response Body

The plan

application/json
  1. response
plan*string
Value in"beta""free""plus""pro"
name*string
source*string

default: no plan granted, the server's default applies

Value in"default""subscription"
status*string
Value in"trialing""active""past_due""canceled""expired"
provider*string

Who bills the plan; empty on the default plan. paddle plans are managed through POST /v1/billing/portal

Value in"""manual""paddle"
cancel_at_period_end*boolean

A cancellation is scheduled for the end of the period

current_period_end?|

When the plan ends; null means until changed

Formatdate-time
limits*

null means no limit.

features*
usage*
read_only*|null
Example Request
curl -X GET 'https://example.com/v1/billing'
Example Response
{  "plan": "beta",  "name": "string",  "source": "default",  "status": "trialing",  "provider": "",  "cancel_at_period_end": true,  "current_period_end": "2019-08-24T14:15:22Z",  "limits": {    "items": 0,    "storage_bytes": 0,    "ai_daily_calls": 0,    "chat_turns_per_hour": 0,    "lists": 0,    "smart_lists": 0,    "members_per_list": 0,    "api_requests_per_minute": 0,    "devices": 0,    "reminders": 0,    "public_links": 0  },  "features": {    "semantic_search": true,    "sharing": true,    "chat": true,    "platform_extraction": true,    "archive": true,    "video_download": true,    "api": "none",    "webhooks": true,    "rules": true,    "priority_queue": true  },  "usage": {    "items": 0,    "storage_bytes": 0,    "lists": 0,    "smart_lists": 0,    "devices": 0,    "reminders": 0,    "ai_calls_today": 0,    "public_links": 0  },  "read_only": {    "message": "string",    "type": "plan_limit",    "code": "plan_limit",    "reason": "limit",    "plan": "beta",    "limit": "items",    "allowed": 0,    "current": 0,    "feature": "semantic_search",    "upgrade_to": "plus"  }}