Skip to main content
GET
Account Usage
Use the declared scope and time parameters below to request aggregate usage. See Usage for the Console workflow and per-request records.

Request contract

  • Method and path: GET /usage
  • Request URL template: https://api.aisa.one/v1/usage
  • start_time: query; required
  • end_time: query; optional
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

start_time
integer<int64>
required

Window start as a Unix timestamp in seconds.

end_time
integer<int64>

Window end as a Unix timestamp in seconds. Defaults to the current time.

Response

Usage totals and per-day buckets over the window.

bucket_width
string

Bucket granularity (e.g. 1d).

buckets
object[]

Per-bucket usage, ordered by time.

currency
string

ISO currency code (always USD).

end_time
integer<int64>

Echoed window end (Unix seconds).

scope
string

Aggregation scope implied by the credential (e.g. key or account).

start_time
integer<int64>

Echoed window start (Unix seconds).

totals
object

Aggregate totals across the whole window.