Skip to content

Get AI usage summary for billing (Admin only)

Request

Returns aggregated AI usage metrics with breakdown by model and operation type. Perfect for billing reports and cost monitoring. Requires admin authentication.

Security
authJWT
Bodyapplication/jsonrequired

AI usage summary request with date range

string
curl -i -X POST \
  https://docs.pers.ninja/_mock/swagger/analytics/ai/usage \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "startDate": "2026-03-01T00:00:00Z",
    "endDate": "2026-03-31T23:59:59Z"
  }'

Responses

AI usage summary successfully retrieved

Response
No content