Create a new insurance claim record in Monitor API. The siniestro number (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.
no_siniestro) is the primary key — it must be unique across all records. On success the API automatically sets estado to Ingreso and writes the first historial_estado audit entry. Técnico users do not have write access and will receive 403.
Endpoint
Administrador or Operador only.
Request body
Unique claim identifier that becomes the primary key (e.g.
"SIN-2024-001"). Leading and trailing whitespace is trimmed automatically. Returns 400 if blank, 409 if already taken.Vehicle fields
Vehicle make (e.g.
"Toyota").Vehicle model (e.g.
"Corolla").Body type or trim level (e.g.
"Sedán", "SUV").Vehicle color (e.g.
"Blanco").License plate number.
Free-text vehicle description (VIN, additional notes, etc.).
Client fields
Full name of the policyholder / vehicle owner.
Client contact phone number.
Client email address.
Administrative fields
Invoice number for the repair.
Internal work-order reference.
Service advisor’s name.
Body technician assigned to this unit.
Mechanic assigned to this unit.
General notes or observations about the repair.
Foreign key referencing the
aseguradora table. Use GET /api/expedientes/aseguradoras to look up valid IDs.Date fields
All date fields accept"YYYY-MM-DD" strings. The API parses them at 12:00:00 local time to prevent UTC day-shift issues.
Date the vehicle entered the shop. Format:
"YYYY-MM-DD".Date the damage estimate was completed. Format:
"YYYY-MM-DD".Date the insurer authorized the repair. Format:
"YYYY-MM-DD".Date all replacement parts arrived. Format:
"YYYY-MM-DD".Date the vehicle repair was finished. Format:
"YYYY-MM-DD".Insurer-communication fields
Free-text notes exchanged with the insurer.
ISO 8601 timestamp of the latest insurer comment. Example:
"2024-03-20T10:30:00.000Z".Custom dato fields
Four generic slot pairs for shop-specific milestones or tracking values. Each pair has a text label (up to 500 chars) and an ISO timestamp.Custom tracking label slot 1.
ISO 8601 timestamp for
dato1.Custom tracking label slot 2.
ISO 8601 timestamp for
dato2.Custom tracking label slot 3.
ISO 8601 timestamp for
dato3.Custom tracking label slot 4.
ISO 8601 timestamp for
dato4.Document checklist flags
Boolean flags indicating whether each required document has been handed in. Omit a field to leave it asnull (not yet confirmed).
Admission work order received.
Client government-issued ID received.
Vehicle registration card received.
Insurance policy cover page received.
Repair authorization letter received.
Deductible payment receipt received.
Final settlement document received.
Customer satisfaction survey completed.
The
estado field is not accepted in the request body. It is always hardcoded to Ingreso by the service layer. Status transitions are managed by a dedicated workflow module and cannot be set through this endpoint.creado_por is not a client-provided field. It is set automatically from the authenticated user’s JWT id claim.Request example
Response — 201 Created
Returns the full expediente object as persisted. All fields are included (same schema asGET /api/expedientes/:no_siniestro without nested relations).
The trimmed siniestro number echoed back.
Always
"Ingreso" for a newly created record.Set automatically from the authenticated user’s JWT
id claim.Example response body
Error responses
| Status | Body | Cause |
|---|---|---|
400 | { "error": "El No. Siniestro es obligatorio" } | no_siniestro is missing or blank in the request body |
401 | { "error": "Token requerido" } | No Authorization header provided |
401 | { "error": "Token inválido o expirado" } | JWT verification failed |
403 | { "error": "Acceso restringido a administradores y operadores" } | Authenticated user has Técnico role |
409 | { "error": "Ya existe un expediente con ese No. Siniestro" } | A record with that no_siniestro already exists |
500 | { "error": "Error interno al crear expediente" } | Database or internal server error |