Autional Autional
API Reference GitHub autional.com →

GET /billing/usage/{tenant_id}/timeline

Query usage change time series data for a specified number of days, returning daily user count, API calls, storage, and bandwidth usage, for trend analysis charts

Billing Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
tenant_id path string Yes Tenant ID
app_id query string No Application ID (optional)
days query integer No 30 Number of days

Responses

StatusDescriptionSchema
200Usage time series query successfuldto.UsageTimelineDetailResponse
400Invalid request parametersobject
401Unauthorizedobject
500Internal server errorobject

Referenced Schemas

dto.UsageTimelineDetailResponse

FieldTypeRequiredExampleConstraintsDescription
code integer No
data dto.UsageTimelineResponse No
message string No
timestamp string No

dto.UsageTimelinePoint

FieldTypeRequiredExampleConstraintsDescription
api_requests integer No 15000
bandwidth_gb number No 15
date string No 2026-05-01
storage_gb number No 2.5
users integer No 120

dto.UsageTimelineResponse

FieldTypeRequiredExampleConstraintsDescription
app_id string No app_001
days integer No 30
tenant_id string No tnt_xyz789
timeline array of

See dto.UsageTimelinePoint

No