Alerts are generated automatically by FridgeRadar whenever inventory items approach or pass their expiry date. Each alert belongs to the authenticated user and may be linked to a specific inventory entry. These endpoints let you list, inspect, acknowledge, count, and delete alerts. All routes require a valid Bearer token — responses are scoped toDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/EstefanoARG/FridgeRadar/llms.txt
Use this file to discover all available pages before exploring further.
current_user automatically.
List Alerts
When
true, only unread alerts are returned. Omit or set to false to retrieve all alerts regardless of read status.- GET /api/v1/alertas
- Response 200
AlertaResponse
Unique identifier for the alert.
ID of the user who owns this alert.
ID of the inventory item that triggered the alert, or
null if the alert is not linked to a specific item.Short headline for the alert (e.g.
"Leche próxima a vencer").Full descriptive message explaining the alert.
Alert category such as
expiracion_proxima or producto_vencido.true if the user has acknowledged the alert, false otherwise.ISO 8601 timestamp indicating when the alert was created.
Count Unread Alerts
Returns a lightweight count of how many alerts have not yet been read. Useful for notification badges without fetching the full alert list.- GET /api/v1/alertas/contar
- Response 200
Total number of unread alerts for the authenticated user.
Get One Alert
Fetches a single alert by its ID. The service validates that the alert belongs to the authenticated user.The unique identifier of the alert to retrieve.
- GET /api/v1/alertas/{id_alerta}
- Response 200
Mark Alert as Read
Setsleida = true on the specified alert, acknowledging it on behalf of the authenticated user. Returns the updated AlertaResponse.
The unique identifier of the alert to mark as read.
- PATCH /api/v1/alertas/{id_alerta}
- Response 200
Delete Alert
Permanently removes an alert. Returns204 No Content on success. The service verifies ownership before deletion.
The unique identifier of the alert to delete.
- DELETE /api/v1/alertas/{id_alerta}
- Response 204