The Notifications API provides the in-app inbox for delivery drivers (Documentation Index
Fetch the complete documentation index at: https://mintlify.com/160906/Yakultt-App/llms.txt
Use this file to discover all available pages before exploring further.
Repartidor role). Notifications are created automatically by the Orders API — when a new order is assigned to a driver, or when an order’s status changes from outside the driver’s own actions. All endpoints identify the requesting user via the x-user-id request header rather than a Bearer token; omitting this header returns an empty result set rather than an error.
GET /api/notificaciones
Returns up to 50 notifications for the specified user, ordered from most recent to oldest.Pass the user’s numeric ID in the
x-user-id header. If the header is absent, the response will be an empty array.| Header | Type | Required | Description |
|---|---|---|---|
x-user-id | number | Yes | Numeric ID of the user whose notifications to retrieve. |
Unique numeric ID of the notification.
ID of the order that triggered this notification, or
null for informational notifications.Event type:
asignacion (order assigned), estado (status changed), or info (general message).Short display title shown in the notification badge.
Full human-readable notification body.
false if the notification has not yet been viewed; true once marked as read.Formatted timestamp of when the notification was created, e.g.
"15 Jan 14:05".PUT /api/notificaciones/:id/leida
Marks a single notification as read. The update only takes effect if theusuario_id on the notification matches the value in x-user-id.
Pass the user’s numeric ID in the
x-user-id header to confirm ownership before marking the notification.Numeric ID of the notification to mark as read.
| Header | Type | Required | Description |
|---|---|---|---|
x-user-id | number | Yes | Numeric ID of the user who owns the notification. |
PUT /api/notificaciones/leer-todas
Marks all unread notifications as read for the requesting user in a single operation.Pass the user’s numeric ID in the
x-user-id header. If the header is missing, the request has no effect and still returns { "ok": true }.| Header | Type | Required | Description |
|---|---|---|---|
x-user-id | number | Yes | Numeric ID of the user whose notifications to bulk-mark as read. |