Skip to content

Billing

Check the billing status and credit balances for your workspace.

View as Markdown

Get billing overview

Returns the billing status and current credit balances for the workspace associated with your API key. Requires the read scope.

GEThttps://api.smoketest.sh/v1/billingscope: read
Shell
curl https://api.smoketest.sh/v1/billing \
  -H "Authorization: Bearer $SMOKETEST_API_KEY"

Sample response

JSON
{
  "workspaceId": "018e1234-abcd-7000-8000-abc123456789",
  "planKey": "smoketest",
  "status": "active",
  "cancelAtPeriodEnd": false,
  "currentPeriodStart": "2026-06-01T00:00:00.000Z",
  "currentPeriodEnd": "2026-07-01T00:00:00.000Z",
  "trialEndsAt": "2026-07-01T00:00:00.000Z",
  "subscriptionInterval": "month",
  "balances": {
    "trial": 0,
    "subscription": 480,
    "boost": 0,
    "total": 480
  },
  "usage": {
    "includedSubscriptionCredits": 500,
    "dailyCreditsUsed": 20,
    "dailyCreditCap": 100
  }
}
FieldTypeDescription
workspaceIdUUIDWorkspace this billing record belongs to
planKeystringActive plan identifier
statusstringSubscription status — "trial", "active", "past_due", or "cancelled"
cancelAtPeriodEndbooleanWhether the subscription is set to cancel at the end of the current period
currentPeriodStartISO 8601 | nullStart of the current billing period
currentPeriodEndISO 8601 | nullEnd of the current billing period
trialEndsAtISO 8601When the trial expires
subscriptionInterval"month" | "year" | nullBilling cadence
balances.trialintegerCredits remaining from the trial allowance
balances.subscriptionintegerCredits remaining from the subscription allowance
balances.boostintegerCredits from one-time boost purchases
balances.totalintegerTotal usable credits across all sources
usage.includedSubscriptionCreditsintegerCredits included per billing period on the current plan
usage.dailyCreditsUsedintegerCredits consumed today
usage.dailyCreditCapintegerMaximum credits that can be used per day

On this page