API reference · Workspace
Get plan and payments
GET
https://goblins-call-api.onrender.com/v1/billingReturns the plan your workspace is on, its balance and its recent payments.
Needs a workspace API key.
Query parameters
userIdstringOptionalA workspace ID. A key belongs to one workspace, so this is never needed with one; naming another workspace answers 403.
Notes
- The plan figures in the sample are placeholders. Get the price list returns the real ones.
curl "https://goblins-call-api.onrender.com/v1/billing" \
-H "Authorization: Bearer $CRACKLE_API_KEY"Response · 200 OK
{
"plan": {
"id": "starter",
"name": "Starter",
"price": 29,
"includedCredit": 30,
"maxConcurrentCalls": 5,
"blurb": "…",
"features": [ … ]
},
"balance": 42.1853,
"payments": [
{
"id": "pay_…",
"kind": "plan",
"planId": "starter",
"amount": 29,
"credit": 30,
"currency": "USD",
"status": "paid",
"createdAt": "2026-10-01T09:00:00.000Z",
"paidAt": "2026-10-01T09:00:04.000Z"
}
]
}