Autional Autional
API Reference GitHub autional.com →

GET /billing/usage/{tenant_id}/endpoints

Query the TopN ranking of API endpoint call counts, including request count, error count, and average latency, for analyzing hot endpoints

Billing Service `bearerAuth` application/json

Request Parameters

NameInTypeRequiredDefaultExampleConstraintsDescription
tenant_id path string Yes Tenant ID
app_id query string No Application ID (optional)
limit query integer No 20 Number of results
days query integer No 7 Number of days

Responses

StatusDescriptionSchema
200Endpoint usage ranking query successfuldto.EndpointUsageDetailResponse
400Invalid request parametersobject
401Unauthorizedobject
500Internal server errorobject

Referenced Schemas

dto.EndpointUsageDetailResponse

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

dto.EndpointUsageItem

FieldTypeRequiredExampleConstraintsDescription
avg_latency_ms number No 12.5
endpoint string No
error_count integer No 50
request_count integer No 15000

dto.EndpointUsageListResponse

FieldTypeRequiredExampleConstraintsDescription
app_id string No app_001
days integer No 7
endpoints array of

See dto.EndpointUsageItem

No
tenant_id string No tnt_xyz789