Median

GET /billing/overview

Updated Oct 1, 20261 minute read

Read the plan and credits

Owners and admins only. The plan, credits left, add-ons, the monthly total, and this period's usage, from the cached billing customer. Money is in microcredits: 1,000,000 is one credit, which is one USD. The card and billing address are never returned.

Part of Billing.

Responses

StatusDescription
200The billing page's numbers.
400The request is malformed, and the message names the field.
401The bearer token is missing, revoked, or expired.
403The token's person does not hold the role this needs.
429Too many requests. Wait the seconds in Retry-After. Limits depend on the plan. See rate limits.

200 body

FieldTypeRequiredDescription
plan"explore" | "standard" | "pro"No
planGrantedbooleanNo
status"active" | "past_due" | "canceled" | "none"No
periodStartnumber | nullNo
periodEndnumber | nullNo
includedMicrocreditsintegerNo
availableMicrocreditsintegerNo
monthlyMicrocreditsintegerNo
purchasedMicrocreditsintegerNo
freeTasksAllowanceMicrocreditsintegerNo
recurringTotalUsdnumberNo
cancellationScheduledbooleanNo
addOnsobject[]No
addOns[].id"site" | "api_higher" | "api_highest" | "unlimited_api"No
addOns[].monthlyUsdnumberNo
addOns[].grantedbooleanNo
currentPeriodUsageobjectNo
currentPeriodUsage.amountMicrocreditsintegerNo
currentPeriodUsage.inputTokensintegerNo
currentPeriodUsage.outputTokensintegerNo
currentPeriodUsage.quantityByServiceobjectNo
currentPeriodUsage.quantityByService.aiintegerNo
currentPeriodUsage.quantityByService.emailintegerNo
currentPeriodUsage.quantityByService.scrapeintegerNo

Example request

curl https://api.median.sh/v1/billing/overview \
  -H "Authorization: Bearer $BEARER_AUTH"

Still need help?

    Esc