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/pending endpoint aggregates every task with a status of Pendiente or En Progreso across all projects accessible to the authenticated user. Tasks are returned ordered by their deadline (fecha_limite) in ascending order so the most time-sensitive items appear first. Tasks without a deadline are sorted to the end of the list. This endpoint is suited for driving a global task queue or dashboard urgency feed.

Authentication

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

Request

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

Response

Returns a JSON array of task objects ordered by deadline ascending (nulls last).

Response fields

id
string
required
Unique identifier for the task.
title
string
required
Title of the task.
description
string | null
required
Optional longer description of the task. null when not set.
priority
string
required
Task priority level. One of "Alta", "Media", or "Baja".
status
string
required
Current task status. One of "Pendiente" or "En Progreso".
projectId
string
required
Identifier of the project this task belongs to.
projectName
string
required
Display name of the project this task belongs to.
deadline
string | null
required
ISO 8601 date string representing the task’s due date (e.g. "2024-09-15"), or null if no deadline has been set.

Example response

[
  {
    "id": "d4e5f6a7-b8c9-0123-def0-234567890123",
    "title": "Fix checkout flow bug",
    "description": "Users are unable to complete payment on mobile Safari.",
    "priority": "Alta",
    "status": "En Progreso",
    "projectId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "projectName": "Website Redesign",
    "deadline": "2024-08-01"
  },
  {
    "id": "e5f6a7b8-c9d0-1234-ef01-345678901234",
    "title": "Write onboarding copy",
    "description": null,
    "priority": "Media",
    "status": "Pendiente",
    "projectId": "b2c3d4e5-f6a7-8901-bcde-f12345678901",
    "projectName": "Mobile App MVP",
    "deadline": "2024-08-15"
  },
  {
    "id": "f6a7b8c9-d0e1-2345-f012-456789012345",
    "title": "Update brand guidelines document",
    "description": "Incorporate new color palette approved in June.",
    "priority": "Baja",
    "status": "Pendiente",
    "projectId": "c3d4e5f6-a7b8-9012-cdef-123456789012",
    "projectName": "Q3 Marketing Campaign",
    "deadline": null
  }
]
An empty array ([]) is returned when there are no pending or in-progress tasks.

Code examples

curl --request GET \
  --url https://your-app.com/api/dashboard/pending \
  --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