Skip to main content
POST
/
v1
/
usage
Get API Usage Logs
curl --request POST \
  --url https://api.casparser.in/v1/usage \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "start_time": "2026-01-01T00:00:00Z",
  "end_time": "2026-01-31T23:59:59Z",
  "limit": 100
}
'
{
  "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
}

Authorizations

x-api-key
string
header
required

Your API key for authentication. Use sandbox-with-json-responses as Sandbox key.

Body

application/json
start_time
string<date-time>

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

Example:

"2026-01-01T00:00:00Z"

end_time
string<date-time>

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

Example:

"2026-01-31T23:59:59Z"

limit
integer
default:100

Maximum number of logs to return

Required range: 1 <= x <= 500

Response

Usage logs retrieved successfully

status
string
Example:

"success"

logs
object[]
count
integer

Number of logs returned

Example:

25