Notifications operations

In-product notifications.

Each operation below is reachable at POST /v1/op/{operation_id} or the resource path POST /v1/{resource}/{action}, with a Bearer token (a gpra_ API key or a session token). Back to the Operations Reference index.

notifications.dismiss

Dismiss one of the caller’s notifications (hide it from the list).

Scopenotifications:write
Side-effectcompute
HTTPPOST /v1/op/notifications.dismiss · POST /v1/notifications/dismiss
Python / TypeScriptclient.notifications.dismiss(…)
CLIgeopera notifications dismiss …

RequestNotificationRef

FieldTypeRequiredDescription
notification_idstringyes

ResponseNotificationOutput.

notifications.list

List the caller’s notifications, newest first (user-scoped inbox).

Scopenotifications:read
Side-effectread
HTTPPOST /v1/op/notifications.list · POST /v1/notifications/list
Python / TypeScriptclient.notifications.list(…)
CLIgeopera notifications list …

RequestNotificationsListInput

FieldTypeRequiredDescription
unread_onlyboolean
limitinteger
offsetinteger

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.

notifications.mark_all_read

Mark all of the caller’s unread notifications as read.

Scopenotifications:write
Side-effectcompute
HTTPPOST /v1/op/notifications.mark_all_read · POST /v1/notifications/mark_all_read
Python / TypeScriptclient.notifications.mark_all_read(…)
CLIgeopera notifications mark-all-read …

Request_Empty (see the OpenAPI schema for fields).

ResponseMarkAllReadOutput.

notifications.mark_read

Mark one of the caller’s notifications as read.

Scopenotifications:write
Side-effectcompute
HTTPPOST /v1/op/notifications.mark_read · POST /v1/notifications/mark_read
Python / TypeScriptclient.notifications.mark_read(…)
CLIgeopera notifications mark-read …

RequestNotificationRef

FieldTypeRequiredDescription
notification_idstringyes

ResponseNotificationOutput.

notifications.unread_count

Count the caller’s unread, undismissed notifications (lightweight poll).

Scopenotifications:read
Side-effectread
HTTPPOST /v1/op/notifications.unread_count · POST /v1/notifications/unread_count
Python / TypeScriptclient.notifications.unread_count(…)
CLIgeopera notifications unread-count …

Request_Empty (see the OpenAPI schema for fields).

Response — a streaming or binary payload (NDJSON / file / tile). Call the HTTP endpoint directly; the JSON SDK return does not apply.