Retrieve every evidence file (photos and documents) attached to a specific expediente. Records are returned in descending order by upload date so the most recent file appears first in the array.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.
Endpoint
Administrador, Operador, Tecnico) may call this endpoint.
Path Parameters
The siniestro number of the parent expediente (e.g.
SIN-2024-001). Must match the no_siniestro primary key on the expediente table.Example Request
Response
200 — Success
Returns a JSON array of evidencia objects. An empty array ([]) is returned when no evidence has been uploaded yet.
Auto-incremented primary key of the evidencia record.
Siniestro number of the parent expediente this file belongs to.
MIME type of the uploaded file as reported by the client, e.g.
image/jpeg, application/pdf.Original filename as provided by the uploader before any server-side renaming.
Absolute filesystem path where the file is stored on the server, e.g.
.../evidencias/SIN-2024-001/evidencias/1713900000000_damage-photo.jpg.ISO 8601 timestamp of when the record was created. Defaults to the database server’s current time at insert. Example:
"2024-04-23T18:25:43.511Z".Storage location enum. Always
"Local" for files uploaded through this API — cloud storage is reserved for future use.Possible values: Local | NubeID of the
usuario who uploaded the file. null if the uploader could not be determined.Results are ordered by
fecha_carga DESC — the most recently uploaded file appears first in the array.Example Response Body
Error Responses
| Status | Meaning |
|---|---|
400 | no_siniestro path parameter is missing or not a valid string. |
401 | Missing or invalid Bearer token. |
500 | Internal server error — check server logs for details. |