v13

latestOpenAPI 3.1.0raw.githubusercontent.com2026-08-022830130.4 KB
Authorization

Get API Usage Logs

Retrieve detailed API usage logs for your account.

Returns a list of API calls with timestamps, features used, status codes, and credits consumed. Useful for monitoring usage patterns and debugging.

Legacy path: /logs (still supported)

post/v1/usage

Request body

start_timestring date-time

Start time filter (ISO 8601). Defaults to 30 days ago.

end_timestring date-time

End time filter (ISO 8601). Defaults to now.

limitinteger

Maximum number of logs to return

Example request

{
  "start_time": "2026-01-01T00:00:00Z",
  "end_time": "2026-01-31T23:59:59Z"
}

Response

Usage logs retrieved successfully

statusstring
countinteger

Number of logs returned

Example response

{
  "status": "success",
  "logs": [
    {
      "request_id": "req_2xYz7KpL8mN3Ab",
      "feature": "cdsl_cas_parser",
      "path": "/v4/cdsl/parse",
      "status_code": 200,
      "credits": 1,
      "timestamp": "2026-01-15T14:30:00Z"
    }
  ],
  "count": 25
}