Notifications API Routes
A notification informs an admin user of store changes or status changes of background tasks.
These API routes allow admin users to view and manage notifications.
GET /admin/notifications#
List Notifications
Retrieve a list of notifications. The notifications can be filtered by fields such as id. The notifications can also be sorted or paginated.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Query parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.offsetnumberOptionallimitnumberOptionalorderstringOptional-.qstringOptionalidstring | string[]Optionalchannelstring | string[]Optional$andobject[]Optional$orobject[]Optionalwith_deletedbooleanOptionaltostring | string[]Optional"" to retrieve notifications for all admin users.Request examples
Responses
200 OK
limitnumberoffsetnumbercountnumbernotificationsobject[]The list of notifications.
notificationsobject[]estimate_countnumberOptional400, 401, 404, 409, 422, 500: an error response is returned.
GET /admin/notifications/{id}#
Get a Notification
Retrieve a notification by its ID. You can expand the notification's relations or select the fields that should be returned.
Authentication: secret API key (HTTP Basic authorization), cookie session, JWT bearer token.
Path parameters
idstringQuery parameters
fieldsstringOptional+ it will be added to the default fields, using - will remove it from the default fields. without prefix it will replace the entire default fields.Request examples
Responses
200 OK
notificationobjectThe notification's details.
notificationobject400, 401, 404, 409, 422, 500: an error response is returned.