TheDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/ericcobasdev/careertrack-api/llms.txt
Use this file to discover all available pages before exploring further.
GET /api/stats endpoint returns a summary of all job applications in the system. It aggregates application counts across each tracked status — applied, interview, offer, and rejected — making it ideal for building dashboard widgets, progress indicators, or at-a-glance pipeline summaries.
Endpoint
Authorization header.
| Detail | Value |
|---|---|
| Method | GET |
| Path | /api/stats |
| Auth required | Yes — Authorization: Bearer <token> |
Request Parameters
This endpoint takes no query parameters and no request body. Simply send a valid Bearer token and the server returns the aggregate stats.Example Request
Response (200 OK)
A successful request returns a JSON object with the following fields:Total number of job applications across the entire database.
Count of applications with status
applied.Count of applications with status
interview.Count of applications with status
offer.Count of applications with status
rejected.Error Responses
| Status | Meaning |
|---|---|
401 | Unauthorized — the Bearer token is missing, expired, or invalid. Ensure the Authorization header is present and the token was obtained from POST /auth/login. |
Dashboard Usage Example
The stats endpoint is well-suited for populating summary tiles or progress bars. The following snippet demonstrates how to fetch and display the pipeline overview in a JavaScript frontend:The stats reflect all job applications in the database. This endpoint does not support date-range filtering or any other query parameters — the counts always represent the full lifetime of the application history.