API ReferenceNotifications
List the authenticated user's notifications.
Authorization
bearerAuth AuthorizationBearer <token>
AdonisJS access-token guard (middleware.auth({ guards: ["api"] })). Send Authorization: Bearer <oat_…> (issued by /auth/register, /auth/login, /auth/social/{google,apple}, or /auth/guest).
In: header
Query Parameters
unreadOnly?string
category?unknown
limit?number
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/v1/notifications"{ "data": { "items": [ { "id": "ntf_01jq8zd1a3c5e7g9j1l3n5p7q9", "type": "order_accepted", "category": "order", "title": "Order accepted", "body": "Crispy Cart accepted your order TM-20260520-0042. Estimated ready at 7:48 PM.", "relatedType": "order", "relatedId": "ord_01jq8z3a0n0y9v0x1g4t2c7m6e", "readAt": null, "createdAt": "2026-05-20T19:33:02.000Z" }, { "id": "ntf_01jq8zd2b4d6f8h0k2m4o6q8s0", "type": "payment_succeeded", "category": "payment", "title": "Payment received", "body": "SAR 99.00 received for your featured-truck activation.", "relatedType": "payment_order", "relatedId": "pmo_01jq8z8b3d5f7h9k1m3n5p7q9r", "readAt": "2026-05-20T19:34:00.000Z", "createdAt": "2026-05-20T19:33:50.000Z" } ] }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7", "unreadCount": 1 }}{ "error": { "code": "AUTH_REQUIRED", "message": "Authentication is required to access this resource." }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "VALIDATION_ERROR", "message": "One or more fields are invalid.", "fields": [ { "path": "email", "rule": "email", "message": "Must be a valid email address." } ] }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}