RouteScope Self-Service
Get my total usage
🔑 Requires token authentication (TokenAuth)
Returns the cumulative consumption of the current token in OpenAI style (total tokens and total amount), useful for dashboard overview cards.
curl -X GET "https://webapi.routescope.ai/api/token/self/usage"{
"object": "usage",
"total_tokens": 4500,
"total_amount": 0.24,
"currency": "USD",
"amount_source": "logs"
}Authorization
BearerAuth
AuthorizationBearer <token>
Use Bearer Token for authentication.
Format: Authorization: Bearer sk-xxxxxx
In: header
Response Body
application/json
How is this guide?
Last updated on