Retrieves usage data for all agents accessible by a user within a date range. If agentId is provided, returns data for that specific agent only. Requires X-Authorization header with valid API key.
GET/api/usageX-Authorization: Your API key (required)uid (string, required): Your user IDstartDate (string, required): Start date in YYYY-MM-DD formatendDate (string, required): End date in YYYY-MM-DD formatagentId (string, optional): Specific agent ID to get usage for (if not provided, returns usage for all accessible agents)400 Bad Request: Missing required parameters, invalid date format, or invalid date range401 Unauthorized: Invalid or missing API key404 Not Found: User not found or agent not found/access denied500 Internal Server Error: Server errorrequestedAgentId field is only included when filtering for a specific agentUser ID
Start date in YYYY-MM-DD format
End date in YYYY-MM-DD format
Optional agent ID to filter data for specific agent
Successful response