Api referenceUsage
List usage logs
Authorization
sessionBearerAuth AuthorizationBearer <token>
In: header
Query Parameters
from?string
to?string
cursor?string
limit?string
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/v2/usage/logs"{ "data": [ { "request_id": "string", "ts": "2019-08-24T14:15:22Z", "model": "string", "api_key_id": "string", "status": "string", "modality": "string", "billable_units": 0, "tokens_in": 0, "tokens_out": 0, "cost_credits": "string", "latency_ms": 0, "error": "string", "operation_id": "string", "status_history": [ { "status": "queued", "ts": "2019-08-24T14:15:22Z", "cost_credits": "string", "error": "string" } ] } ], "next_cursor": "string"}