Account
Get Usage
Changed onGet daily usage data for the authenticated user, broken down by AI platform. Returns an array of per-day entries sorted by date ascending.
SDK Usage:
const usage = await client.getUsage(30);
get/api/user/usage
Request
- Base URLhttps://api.privacypal.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
daysinteger
Number of days to look back (default 30)
Response
Daily usage data sorted by date ascending
Example response
[
{
"date": "2026-02-19"
}
]Changes
- breaking
the
response's property type changed from no type toobjectfor status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status - info
added the optional property
/to the response with the status
- breaking
- info
endpoint added
- info