Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/sheeplettuce/Monitor/llms.txt

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

List all damage surveys stored in Monitor API, optionally filtered by claim number. Results are returned in descending order by id (most recent first) and always include nested cost concepts.

Endpoint

GET /api/levantamientos
All requests must include a valid Bearer token. Any authenticated role (Administrador, Operador, Tecnico) may call this endpoint.

Query Parameters

no_siniestro
string
Filter results to levantamientos linked to this siniestro number. When omitted, all records are returned. The value must match the no_siniestro field on an existing expediente.Example: SIN-2024-001

Request Examples

# List all levantamientos
curl http://localhost:3000/api/levantamientos \
  -H "Authorization: Bearer $TOKEN"
# Filter by siniestro number
curl "http://localhost:3000/api/levantamientos?no_siniestro=SIN-2024-001" \
  -H "Authorization: Bearer $TOKEN"

Response

200 — Success

Returns an array of levantamiento objects. The array is empty ([]) when no records match the filter.
[
  {
    "id": 42,
    "no_siniestro": "SIN-2024-001",
    "fecha": "2024-01-15T12:00:00.000Z",
    "orden": "ORD-0042",
    "marca": "Toyota",
    "tipo": "Sedán",
    "modelo": "Corolla",
    "placas": "ABC-1234",
    "kilometraje": "84500",
    "no_puertas": "4",
    "color": "Blanco",
    "serie": "1HGBH41JXMN109186",
    "eco": "ECO-042",
    "asegurado_tercero": "Asegurado",
    "nombre_propietario": "Juan Pérez",
    "telefono": "5551234567",
    "direccion": "Calle Reforma 123, CDMX",
    "pega": null,
    "cristales": true,
    "aire": false,
    "vestiduras": false,
    "rin": false,
    "direccion_veh": false,
    "tipo_pintura": true,
    "trasmision": false,
    "levantamiento_concepto": [
      {
        "id": 7,
        "id_levantamiento": 42,
        "claves": "CR-001",
        "concepto": "Cambio de parabrisas",
        "costo": "3500.00"
      }
    ]
  }
]

Error Responses

StatusDescription
401Missing or invalid Authorization header.
500Unexpected server error.

Build docs developers (and LLMs) love