Documentation Index
Fetch the complete documentation index at: https://mintlify.com/itsdivyanshjha/Meta-Data-Tag-Generator/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/history/stats
Get comprehensive statistics for the current user’s dashboard, including job counts, document metrics, and recent activity.Authentication
Requires valid JWT access token in Authorization header.Response
Total number of jobs created by the user
Total number of documents across all jobs
Number of successfully processed documents
Number of failed documents
Count of jobs grouped by status
Last 5 jobs (most recent first)
Example Request
cURL
Example Response
Use Cases
Dashboard Metrics
Display key metrics on user dashboard:
- Total documents processed
- Success/failure rates
- Recent activity timeline
Usage Analytics
Track usage patterns:
- Job completion rates
- Processing throughput
- Error analysis
Progress Monitoring
Monitor ongoing work:
- Active job count
- Documents in processing
- Recent completions
Billing Integration
Calculate usage for billing:
- Total documents processed
- API calls made
- Processing time consumed
Implementation Example
React Dashboard
Error Responses
| Status | Description |
|---|---|
| 401 | Unauthorized - Invalid or missing token |
| 500 | Internal Server Error |
Performance Notes
The stats endpoint fetches up to 1000 jobs to calculate statistics. For users with large job histories, this may take a few seconds. Consider caching the results on the frontend.