Docs Open org

API reference

Notifications API

Notifications

GET /me/notification-prefs

Per-kind notification channels.

Responses

200
OK. NotificationPrefs application/json

PUT /me/notification-prefs

Replaces per-kind notification channels.

Request body

application/json, NotificationPrefs.

FieldTypeDescription
kinds requiredKindPref[]Per-kind channels; kinds not listed use in-app and push.

Responses

200
OK. NotificationPrefs application/json

POST /me/push-subscriptions

Registers a device for Web Push.

Request body

application/json, NewPushSubscription.

FieldTypeDescription
endpoint requiredstringThe push service endpoint.
keys requiredPushKeysThe subscription keys.

Responses

201
Created. PushSubscription application/json

DELETE /me/push-subscriptions/{id}

Removes a push subscription.

Parameters

NameInTypeDescription
id requiredpathstring (uuid)The subscription

Responses

204
No content

GET /orgs/{org}/notifications

Your notifications, newest first. Ones deferred by quiet hours or a hidden hat appear once they're due. Confirmation questions appear only while their confirmation is pending and unexpired.

Parameters

NameInTypeDescription
org requiredpathstringThe org slug.
unreadquerybooleanOnly unread.
limitqueryinteger (int32)Page size.
cursorquerystringCursor.

Responses

200
OK. Paged_NotificationView application/json

POST /orgs/{org}/notifications/read

Marks notifications read.

Parameters

NameInTypeDescription
org requiredpathstringThe org slug.

Request body

application/json, MarkRead.

FieldTypeDescription
allbooleanOr every notification.
idsstring (uuid)[]These notifications.

Responses

200
OK. Marked application/json