Every HTTP request processed by the API is recorded in theDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/JorLOrT/rappi2/llms.txt
Use this file to discover all available pages before exploring further.
auditoria MongoDB collection by a middleware layer before the response is returned. Each document captures the request method, route, caller identity, response status code, client IP, and a SHA hash of the request payload. Records are automatically purged after 90 days via a MongoDB TTL index.
All endpoints require
Authorization: Bearer <token> and the auditoria:read permission.Audit log document fields
Each audit document stored in MongoDB contains the following fields:| Field | Type | Description |
|---|---|---|
_id | ObjectId | MongoDB document ID (returned as string id). |
usuario_id | integer | Authenticated user ID, or null for unauthenticated requests. |
ruta | string | Request path (e.g. /rutas/7). |
metodo | string | HTTP method: GET, POST, PATCH, DELETE, etc. |
ip | string | Client IP address, or null if not resolvable. |
status_code | integer | HTTP response status code. |
payload_hash | string | SHA hash of the request body, or null for requests without a body. |
timestamp | datetime | UTC time the request was processed. Auto-expires after 90 days. |
List audit entries
GET /auditoria
Returns audit log entries in descending timestamp order with optional filters.
Permission: auditoria:read
Filter to entries generated by a specific user.
Filter by HTTP method (e.g.
"POST", "DELETE").Pagination offset.
Maximum entries to return (max
500).Audit summary
GET /auditoria/resumen
Aggregated statistics over a time window: request count by status code, by method, top 10 most-requested routes, top 10 most-active users, and error breakdown (4xx/5xx).
Permission: auditoria:read
Analysis window in hours (
1–720, i.e. up to 30 days).The analysis window that was applied.
ISO 8601 start of the window.
Total number of requests in the window.
Request count keyed by HTTP status code (as strings).
Request count keyed by HTTP method.
Top 10 most-requested routes.
Top 10 most-active authenticated users.
Error request count keyed by status code (only codes >= 400).
Audit entry response schema
MongoDB ObjectId as a hex string.
Authenticated user ID.
null for unauthenticated requests.Request path.
HTTP method.
Client IP address.
HTTP response status code.
SHA hash of the request body.
null for GET/DELETE requests or empty bodies.ISO 8601 UTC timestamp of the request. Documents are automatically removed after 90 days.