Skip to main content
Retrieves a list of all beneficiarios in the system.

Endpoint

GET /beneficiarios

Authentication

This endpoint requires a valid JWT token.
Authorization: Bearer YOUR_JWT_TOKEN

Response

Returns an array of beneficiario objects.
id
number
Unique identifier for the beneficiario
nombre
string
Full name of the beneficiario
fechaIngreso
string
Date of entry
tiempoAsignado
number
Assigned time amount
unidadTiempo
string
Time unit (HORAS or MESES)
creadoEn
string
Timestamp when record was created

Example Request

curl -X GET http://localhost:3000/beneficiarios \
  -H "Authorization: Bearer YOUR_JWT_TOKEN"

Example Response

[
  {
    "id": 1,
    "nombre": "Juan Pérez García",
    "fechaIngreso": "2026-03-01",
    "tiempoAsignado": 6,
    "unidadTiempo": "MESES",
    "creadoEn": "2026-03-01T10:00:00.000Z"
  },
  {
    "id": 2,
    "nombre": "María López Ruiz",
    "fechaIngreso": "2026-03-02",
    "tiempoAsignado": 120,
    "unidadTiempo": "HORAS",
    "creadoEn": "2026-03-02T11:30:00.000Z"
  },
  {
    "id": 3,
    "nombre": "Carlos Hernández",
    "fechaIngreso": "2026-03-03",
    "tiempoAsignado": 12,
    "unidadTiempo": "MESES",
    "creadoEn": "2026-03-03T09:15:00.000Z"
  }
]

Build docs developers (and LLMs) love