Skip to content

Billing API

Access your current subscription details, plan quotas, and usage metrics. Billing endpoints are read-only via the Public API.

All endpoints require either a JWT token or an API key (gf_...) in the Authorization header.

MethodPathScopeDescription
GET/api/v1/billing/subscriptionread:billingCurrent subscription and plan features
GET/api/v1/billing/usageread:billingCurrent period usage metrics
GET/api/v1/billing/invoicesread:billingInvoice history
Terminal window
curl https://devcore.getghostflow.io/api/v1/billing/subscription \
-H "Authorization: Bearer gf_your_api_key"

Response 200 OK:

{
"plan": "professional",
"status": "active",
"features": {
"maxCampaigns": 100,
"maxCustomDomains": 20,
"maxEvents": 5000000,
"aiCloaking": true,
"abTesting": true,
"apiAccess": true
},
"currentPeriodStart": "2025-06-01T00:00:00Z",
"currentPeriodEnd": "2025-07-01T00:00:00Z"
}
Terminal window
curl https://devcore.getghostflow.io/api/v1/billing/usage \
-H "Authorization: Bearer gf_your_api_key"