Autional Autional
API Reference GitHub autional.com →

GET /billing/usage/{tenant_id}/current

Query the resource usage (user count, storage, API calls) for the current billing period, for real-time usage monitoring

Billing Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
tenant_id path string Yes Tenant ID
app_id query string No Application ID (optional)

Responses

StatusDescriptionSchema
200Current usage query successfuldto.CurrentUsageDetailResponse
400Invalid request parametersobject
401Unauthorizedobject
500Internal server errorobject

Referenced Schemas

dto.CurrentUsageDetailResponse

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

dto.CurrentUsageResponse

FieldTypeRequiredExampleConstraintsDescription
api_calls_today integer No 150
storage_gb number No 2.5
users integer No 8