List notifications
const url = 'https://work.optidata.cloud/api/notifications/central?tab=for-me&pageSize=7&page=1&locale=pt_BR&timeZone=America%2FSao_Paulo';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://work.optidata.cloud/api/notifications/central?tab=for-me&pageSize=7&page=1&locale=pt_BR&timeZone=America%2FSao_Paulo' \ --header 'Authorization: Bearer <token>'The notification centre, paginated newest first. tab=for-me returns the
caller’s own notifications; tab=general returns tenant-wide
announcements. Each item carries a resolved_message rendered in the
requested locale and time zone.
Authorizations
Section titled “Authorizations”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters”Which stream to read.
Items per page.
1-based page number.
Locale used to render each message.
Example
pt_BRIANA time zone used to render dates inside messages.
Example
America/Sao_PauloResponses
Section titled “ Responses ”A page of notifications.
object
object
Absent on endpoints that use the simple paginator.
Navigation links of a paginated envelope.
object
Absent on endpoints that use the simple paginator.
One notification delivered to a user, or a tenant-wide announcement.
object
Recipient. null on tenant-wide announcements.
The underlying notification, enriched with a rendered message.
object
Localised, plain-text rendering of the notification.
Example
{ "pagination": { "current_page": 1, "per_page": 30, "data": [ { "notification": { "key": "drive.share.permission_created" } } ] }}Missing, malformed or expired authentication key.
Authentication failures use an error key rather than message.
object
Examples
No bearer token sent
{ "error": "JWT passport exception: Missing bearer token in request"}The request body or query string failed validation.
object
The first validation message.
Validation messages keyed by field name.
object
Examples
{ "message": "The name field is required.", "errors": { "name": [ "The name field is required." ] }}Rate limit exceeded. Retry after the window resets.
Generic error envelope used by policy, binding and framework failures.
object
Human-readable description of the failure.
Examples
{ "message": "Too Many Attempts."}