- "Today"- "Yesterday"- "Last 7 days"- "Last 30 days"- "This month"- "Last Month"01-06-202530-06-2025reportOption or a custom date range (startDate and endDate). Do not provide both in the same request.Response type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
{
"reportOption": "Last 7 days",
"startDate": "01-06-2025",
"endDate": "30-06-2025"
}| Field | Type | Description |
|---|---|---|
| reportOption | String | Predefined date range (Today, Yesterday, Last 7 days, Last 30 days, This month, Last Month) |
| startDate | String | Custom start date (dd-mm-yyyy) |
| endDate | String | Custom end date (dd-mm-yyyy) |
Content-Disposition: attachment; filename=user-usage.xlsx
Content-Type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
Binary Excel file stream: <xlsx binary data>
{
"status": true,
"message": "No usage data found for the given date range.",
}
{
"status": false,
"message": "Invalid report option"
}{
"status": false,
"message": "You are not Authorized"
}100 requests per minute per user/API key{
"status": false,
"message": "Rate limit exceeded."
}{
"status": false,
"message": "Service unavailable"
}{
"status": false,
"message": "<error message>"
}"status": false in the response body. Always inspect the status field to determine whether the operation succeeded.curl --location 'https://apis.autobg.ai/public/api/v1/user/getUsage' \
--header 'Authorization: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"reportOption": "Last 7 days",
"startDate": "",
"endDate": ""
}'{}