GET /api/v2/notifications#
The console inbox: announcements to every console user, and which notices the caller has read. Any role; not gated on the workspace profile.
Authentication: Bearer token
Responses
200 The inbox
| Field | Type | Description |
|---|
jsonapi required | object | |
version required | string | |
data required | object | |
type required | string one of notifications | |
id required | string | |
attributes required | NotificationsAttrs | |
announcements required | array<Announcement> | Active announcements and those that ended in the last 30 days, newest first. Global: the same for every console user. |
id required | string (uuid) | |
tone required | string one of info, warning, danger | |
title required | string | |
body required | string | null | |
action_url required | string | null | |
action_label required | string | null | |
starts_at required | string | |
ends_at required | string | null | Null while open-ended. In the past for an announcement that ended in the last 30 days. |
read_keys required | array<string> | Notice keys this account has read: release:<version>, announcement:<id> or notice:<id>. |
notices | array<object> | Notices to this organization’s people (#062): a pack update, applicants out of date, a finished projection. Newest first; each has a key to mark read. |
relationships | object | |
meta | object | |
included | array<object> | |
type required | string | |
id required | string | |
attributes required | object | |
meta | object | |
401 Unauthenticated
| Field | Type | Description |
|---|
jsonapi required | object | |
version required | string | |
errors required | array<object> | |
status required | string | |
code required | string | |
title required | string | |
detail | string | |
source | object | |
pointer | string | |
parameter | string | |
meta | object | |
GET /api/v2/notifications/preferences#
Which notices reach the caller by email, and how often (at once, in a daily summary, or not at all). Any role.
Authentication: Bearer token
Responses
200 OK
| Field | Type | Description |
|---|
jsonapi required | object | |
version required | string | |
data required | object | |
type required | string one of notification_preferences | |
id required | string | |
attributes required | object | |
relationships | object | |
meta | object | |
included | array<object> | |
type required | string | |
id required | string | |
attributes required | object | |
meta | object | |
401 Missing or invalid user identity
| Field | Type | Description |
|---|
jsonapi required | object | |
version required | string | |
errors required | array<object> | |
status required | string | |
code required | string | |
title required | string | |
detail | string | |
source | object | |
pointer | string | |
parameter | string | |
meta | object | |
404 Not found
| Field | Type | Description |
|---|
jsonapi required | object | |
version required | string | |
errors required | array<object> | |
status required | string | |
code required | string | |
title required | string | |
detail | string | |
source | object | |
pointer | string | |
parameter | string | |
meta | object | |
PUT /api/v2/notifications/preferences#
Change the caller’s email preferences. A withdrawn pack is always sent at once and cannot be changed.
Authentication: Bearer token
Request body application/json
| Field | Type | Description |
|---|
preferences required | array<object> | |
category required | string one of pack_update, pack_withdrawn, effective_date, library_update, projection_done, drift_detected, remediation_progress, auto_patch, billing, api | |
email required | string one of immediate, daily, off | |
Responses
200 OK
| Field | Type | Description |
|---|
jsonapi required | object | |
version required | string | |
data required | object | |
type required | string one of notification_preferences | |
id required | string | |
attributes required | object | |
relationships | object | |
meta | object | |
included | array<object> | |
type required | string | |
id required | string | |
attributes required | object | |
meta | object | |
401 Missing or invalid user identity
| Field | Type | Description |
|---|
jsonapi required | object | |
version required | string | |
errors required | array<object> | |
status required | string | |
code required | string | |
title required | string | |
detail | string | |
source | object | |
pointer | string | |
parameter | string | |
meta | object | |
404 Not found
| Field | Type | Description |
|---|
jsonapi required | object | |
version required | string | |
errors required | array<object> | |
status required | string | |
code required | string | |
title required | string | |
detail | string | |
source | object | |
pointer | string | |
parameter | string | |
meta | object | |
422 Validation error
| Field | Type | Description |
|---|
jsonapi required | object | |
version required | string | |
errors required | array<object> | |
status required | string | |
code required | string | |
title required | string | |
detail | string | |
source | object | |
pointer | string | |
parameter | string | |
meta | object | |
POST /api/v2/notifications/read#
Mark notices read for the caller. Idempotent: a key already read keeps its first read time.
Authentication: Bearer token
Request body application/json
| Field | Type | Description |
|---|
keys required | array<string> | |
Responses
204 Marked read
No body.
401 Unauthenticated
| Field | Type | Description |
|---|
jsonapi required | object | |
version required | string | |
errors required | array<object> | |
status required | string | |
code required | string | |
title required | string | |
detail | string | |
source | object | |
pointer | string | |
parameter | string | |
meta | object | |
422 Validation error: 1 to 100 keys, each release:<version>, announcement:<id> or notice:<id>
| Field | Type | Description |
|---|
jsonapi required | object | |
version required | string | |
errors required | array<object> | |
status required | string | |
code required | string | |
title required | string | |
detail | string | |
source | object | |
pointer | string | |
parameter | string | |
meta | object | |