API ReferenceNotifications
Show the caller's per-category push notification preferences.
Returns `{ category: boolean }` for any category the user has explicitly toggled. Any category omitted from the result is treated as `true` (push enabled).
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
Response Body
application/json
application/json
curl -X GET "https://example.com/api/v1/notifications/preferences"{ "data": { "preferences": { "order": true, "payment": true, "promotion": false, "offer": false } }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}{ "error": { "code": "AUTH_REQUIRED", "message": "Authentication is required to access this resource." }, "meta": { "requestId": "req_01jq8z1mxc0e0v6r3xj0a8h9k7" }}