Skip to main content
POST
/
v1
/
usage
/
summary
Get Usage Summary
curl --request POST \
  --url https://api.casparser.in/v1/usage/summary \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "start_time": "2023-11-07T05:31:56Z",
  "end_time": "2023-11-07T05:31:56Z"
}
'
{
  "status": "success",
  "summary": {
    "total_credits": 45.5,
    "total_requests": 42,
    "by_feature": [
      {
        "feature": "cdsl_cas_parser",
        "credits": 15,
        "requests": 15
      }
    ]
  }
}

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 start of current month.

end_time
string<date-time>

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

Response

Usage summary retrieved successfully

status
string
Example:

"success"

summary
object