Every state change on a work order automatically generates a history entry (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/CLINTONARMANDO/apiregistropendientes/llms.txt
Use this file to discover all available pages before exploring further.
historial). This creates a tamper-evident audit trail showing who changed what and when — essential for SLA tracking, dispute resolution, and field operations review.
Manual entries can also be created to record events that fall outside the standard state machine, such as phone calls with the client, supervisor instructions, or equipment notes.
Base path: /api/historiales
All historial endpoints require a valid
Authorization: Bearer <token> header.POST /api/historiales
Create a manual history entry on a work order. Use this for events that are not driven by a state change — for example, logging a phone call, recording a supervisor decision, or noting an exception.Request body
ID of the work order this entry belongs to.
ID of the employee recording this event.
The
EstadoPendiente value to associate with this log entry. Use the current state of the pendiente when recording a manual event. One of: REGISTRADO, ASIGNADO, EN_PROGRESO, PAUSADO, REVISION, POR_VALIDAR, OBSERVADO, FINALIZADO, POSTERGADO, CANCELADO.Free-text description of the event being logged.
Response — 200 OK
Returns the newly createdHistorialResponse:
History entry ID.
Parent work order ID.
Full employee object for the person who recorded this entry.
The
EstadoPendiente value captured in this entry.Event description text.
ISO 8601 timestamp of when this entry was created.
Examples
GET /api/historiales/pendiente/
Retrieve the complete history for a work order, ordered byfechaCreacion descending (newest entry first). This includes both automatically generated entries from state changes and any manually created entries.
Path parameters
ID of the work order whose history you want to retrieve.
Response — 200 OK
Returns an array ofHistorialResponse objects ordered newest-first.
History entry ID.
Work order ID.
The employee who generated or recorded this entry.
The state of the work order at the time this entry was created.
Description of what happened.
ISO 8601 creation timestamp.
Example
cURL