Skip to main content
You can monitor your account in two ways:
  • Usage headers on every job you create and poll. They cost no extra request.
  • Account endpoints under /api/v2/account for balance, limits, usage, ledger, and plan.
All account endpoints are read-only and free. They use the same x-api-key as your jobs.

Usage headers

On job creation

POST /api/v2/jobs responses report your headroom after this request:
A header is missing when the request was refused before that number was checked. For example, a concurrency 429 carries no X-Credits-Remaining. The concurrency figures are advisory: parallel requests can see the same headroom.

On polls

GET /api/v2/jobs/{jobId} and the CSV export report that job’s own credits: Both headers also appear on the 404 of a job whose results expired. That 404 shows the charge that stands.

Account overview

GET /api/v2/account returns the source/operation pairs you can use, your balance, and your current headroom:
limits.daily is null when no daily limit applies. Check remaining before you submit a large batch.

Usage per month

GET /api/v2/account/usage aggregates one calendar month (UTC). Pass period=YYYY-MM for a past month; the default is the current month:
  • credits comes from your credit ledger. It is the figure you are billed on.
  • totals, by_day, and by_endpoint come from your jobs.
  • unsettled counts queries in jobs never polled to completion. Their outcome is unknown.
  • For the current month, credits.remaining is your spendable balance now. For a past month, it is what that month’s grants still held when they expired.
GET /api/v2/account/usage/periods lists every month since your account was created.

Credits and ledger

GET /api/v2/account/credits returns your balance, the grants it consists of, and every credit movement, newest first:
amount is always positive; type (grant, debit, refund) gives the direction. Page with limit (1–200) and cursor.

Billing

GET /api/v2/account/billing returns your plan as managed in the dashboard:
  • subscription is null without an active plan, including enterprise contracts.
  • low_credits is true when less than 20% of your allowance remains.
  • pending_payment is true while a payment is open or has failed.
To buy credits or change your plan, use Billing in the dashboard. See Credits and billing.

Job history

GET /api/v2/jobs lists your jobs with what each was billed and refunded. See List your jobs.