Skip to main content
GET
Get Billing Info

Authorizations

anchor-api-key
string
header
required

API key for your Anchor Browser account, sent as the anchor-api-key header on every request. Create one at app.anchorbrowser.io (API Access), or obtain one programmatically via the unauthenticated agent-access flow (POST /v1/agent-access).

Query Parameters

from_date
string<date-time>

Start of the usage window (ISO 8601 format, UTC). Passing any of from_date, to_date, or granularity adds a usage block to the response. Defaults to 30 days ago.

to_date
string<date-time>

End of the usage window (ISO 8601 format, UTC). Defaults to now.

granularity
enum<string>
default:day

Time granularity for the usage time series.

Available options:
hour,
day,
week,
month

Response

Billing information retrieved successfully.

data
object
usage
object

Credits-usage time series. Present only when at least one of the from_date, to_date, or granularity query parameters is provided. Sums per-session credits bucketed by session creation time (UTC); recent buckets can still grow while sessions settle. Unlocker credits are tracked per calendar month and are not included in this series, so the bucket total can be lower than credits_used. The series matches GET /v1/sessions/history?metrics=credits_used.