cURL
curl --request GET \ --url https://{base_url}/account/stats \ --header 'X-API-Key: <api-key>'
{ "user_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "usage": { "jobs": { "summary": { "total": 123, "completed": 123, "failed": 123, "in_progress": 123, "in_queue": 123, "cancelled": 123, "success_rate": 123 }, "detail": [ { "type": "PREDICT", "total": 123, "completed": 123, "failed": 123, "in_progress": 123, "in_queue": 123, "cancelled": 123 } ] }, "files": { "summary": { "total": 123, "total_pages": 123, "total_size_mb": 123 }, "detail": [ { "type": "<string>", "total": 123, "total_pages": 123, "total_size_mb": 123 } ] } }, "generated_at": "2023-11-07T05:31:56Z" }
Retrieve usage statistics for the authenticated user, including job and file usage metrics
API key for authentication
Start date for filtering statistics (YYYY-MM-DD format)
End date for filtering statistics (YYYY-MM-DD format)
Account usage statistics
UUID of the authenticated user
Show child attributes
Timestamp when statistics were generated
Was this page helpful?