Account
Get User Stats
Changed onGet usage statistics for the authenticated user, including total prompts, sensitive elements detected, conversations, and a per-platform breakdown. Optionally filter by number of days.
SDK Usage:
const stats = await client.getUserStats(7); // Last 7 days
const allTime = await client.getUserStats(null); // All time
get/api/user/stats
Request
- Base URLhttps://api.privacypal.ai
- AuthHTTP bearer
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
daysinteger nullable
Number of days to look back. Omit or pass null for all-time stats.
Response
User statistics
Changes
- breaking
the response's body type changed from no type to
objectfor 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