Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/Taykl12/Classify/llms.txt

Use this file to discover all available pages before exploring further.

The /api/dashboard/featured endpoint retrieves projects that have been marked as favorites (es_favorito = true), enriched with a count of tasks that have not yet reached a Completado (Completed) status. Results are capped at 10 and ordered from the most to least work outstanding, making it ideal for populating a dashboard “at-a-glance” widget.

Authentication

All requests must include a valid Bearer token in the Authorization header.
Authorization: Bearer <token>

Request

GET /api/dashboard/featured
This endpoint accepts no query parameters or request body.

Response

Returns a JSON array of up to 10 favorited project objects, sorted by pendingTasks in descending order.

Response fields

id
string
required
Unique identifier for the project.
name
string
required
Human-readable display name of the project.
pendingTasks
number
required
Count of tasks in this project whose status is not Completado.

Example response

[
  {
    "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "name": "Website Redesign",
    "pendingTasks": 14
  },
  {
    "id": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "name": "Mobile App MVP",
    "pendingTasks": 7
  },
  {
    "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
    "name": "Q3 Marketing Campaign",
    "pendingTasks": 3
  }
]
An empty array ([]) is returned when the authenticated user has no favorited projects.

Code examples

curl --request GET \
  --url https://your-app.com/api/dashboard/featured \
  --header "Authorization: Bearer <token>"

Error responses

StatusMeaning
401Missing or invalid Authorization header / token.
500Unexpected server error while querying the database.

Build docs developers (and LLMs) love