Autional Autional
API Reference GitHub autional.com →

POST /internal/billing/endpoint-stats/import

Internal service call: Batch import API endpoint call counts, error counts, and average latency from audit logs, for billing and usage analysis

Billing Service - Internal None application/json

Request Body

Schema: dto.EndpointStatsImportRequest

FieldTypeRequiredExampleConstraintsDescription
records array of

See dto.EndpointStatsImportRecord

Yes

Responses

StatusDescriptionSchema
200Endpoint usage import successfulobject
400Invalid request parametersobject
401Unauthorizedobject
500Internal server errorobject

Referenced Schemas

dto.EndpointStatsImportRecord

FieldTypeRequiredExampleConstraintsDescription
date string Yes 2026-05-10
endpoint string Yes
app_id string No app_001
avg_latency_ms number No 12.5
error_count integer No 50
request_count integer No 15000