Skip to content
Notice This app is in Beta Testing We are still testing Record Sender, so features may change.
Sign in

Notifications — API reference

The Notification Hub: the signed-in person's notices in the credential's account, read pointers, preferences, mutes, the account's defaults, push devices and test pushes. Every call is about a person: a key without one gets 403 `person_required`.

← All groups
GET /api/v1/notifications

The person's notices, newest first

Page with `before` = the previous answer's `next_before`.

Any valid credential · paginated · notifications.index

ParameterInTypeDescription
unreadquerybooleanOnly unread
categoryquerystring
kindquerystring
beforequerystring (date-time)Older than (the previous page's `next_before`)
sincequerystring (date-time)Changed since
limitqueryintegerDefault 50, at most 200
cursorquerystringThe `next_cursor` of the previous page
Responses 200 · 401 · 429

200 Success

has_more boolean
next_before string | null Cursor for the next page
next_cursor string | null Pass as `cursor` for the next page; null on the last
notifications * [Notification]
fields

Notification

actor object | null
fields
id string | null
name string | null
body string | null
category string
channels [string]
count integer Grouped notices
created_at string (date-time)
data object | null
group_key string | null
id * string (uuid)
kind string
link string | null
mute_keys [string]
priority string
privacy string
read_at string | null
subject object | null
fields
id string
type string
title string
type string The preference row it belongs to
updated_at string (date-time)
unread integer Unread count

401 Problem details (401)

429 Problem details (429)

GET /api/v1/notifications/defaults

The account's notification defaults

Any valid credential · notifications.defaults

Responses 200 · 401 · 429

200 Success

defaults object The account's defaults

401 Problem details (401)

429 Problem details (429)

PUT /api/v1/notifications/defaults

Change the account's notification defaults

Only people who manage the account (`account:manage`).

Any valid credential · notifications.put_defaults

Request body application/json
digest "off" | "hourly" | "daily"
digest_hour integer 0–23
mode "all" | "direct"
push_content "full" | "sender" | "generic"
types object type → {channel → bool}
Responses 200 · 401 · 402 · 422 · 429

200 Success

defaults object

401 Problem details (401)

402 Problem details (402)

422 `invalid` (+`field`)

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

GET /api/v1/notifications/mutes

The person's mutes

Any valid credential · paginated · notifications.mutes

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 429

200 Success

has_more boolean
mutes * [NotificationMute]
fields

NotificationMute

created_at string (date-time)
key string
label string | null
until string | null
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

429 Problem details (429)

PUT /api/v1/notifications/mutes

Mute a conversation, thread, calendar, file or type

Any valid credential · notifications.put_mute

Request body application/json
for_minutes integer Or for this many minutes
key * string `<type>:<id>` (chat_conversation, chat_thread, calendar, calendar_event, file, type, …)
label string
until string (date-time) Until when (default: until unmuted)
Responses 200 · 401 · 402 · 422 · 429

200 Success

mute NotificationMute
fields

NotificationMute

created_at string (date-time)
key string
label string | null
until string | null

401 Problem details (401)

402 Problem details (402)

422 `invalid`: bad or missing key

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

DELETE /api/v1/notifications/mutes/{key}

Unmute

Any valid credential · notifications.delete_mute

ParameterInTypeDescription
key *pathstringThe mute key `<type>:<id>`
Responses 204 · 401 · 402 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/notifications/preferences

The person's notification preferences

Any valid credential · notifications.preferences

Responses 200 · 401 · 429

200 Success

preferences * NotificationPreferences
fields

NotificationPreferences

digest "off" | "hourly" | "daily"
digest_hour integer
dnd object
fields
availability string | null
now boolean
schedule any
last_digest_at string | null
mode "all" | "direct"
push_configured object
fields
apns boolean
fcm boolean
xmpp boolean
push_content "full" | "sender" | "generic"
sms_available boolean Telenaas is connected
sms_number string | null
sms_security boolean
types object type → {channel → bool}

401 Problem details (401)

429 Problem details (429)

PUT /api/v1/notifications/preferences

Change the person's notification preferences

`types` is merged into what is stored; critical rows and locked channels are ignored.

Any valid credential · notifications.put_preferences

Request body application/json

NotificationPreferencesInput

digest "off" | "hourly" | "daily"
digest_hour integer 0–23
mode "all" | "direct" direct = only mentions and direct notices push / email
push_content "full" | "sender" | "generic"
sms_number string
sms_security boolean Security notices by SMS
types object type → {channel → bool}, merged into what is stored
Responses 200 · 401 · 402 · 422 · 429

200 Success

preferences * NotificationPreferences
fields

NotificationPreferences

digest "off" | "hourly" | "daily"
digest_hour integer
dnd object
fields
availability string | null
now boolean
schedule any
last_digest_at string | null
mode "all" | "direct"
push_configured object
fields
apns boolean
fcm boolean
xmpp boolean
push_content "full" | "sender" | "generic"
sms_available boolean Telenaas is connected
sms_number string | null
sms_security boolean
types object type → {channel → bool}

401 Problem details (401)

402 Problem details (402)

422 `invalid` (+`field`)

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

POST /api/v1/notifications/read

Mark notices read

Send one of: `ids`, `id`, `all: true`, `before` (a device's read pointer) or `subject: {type, id}`.

Any valid credential · Idempotency-Key · notifications.read

Request body application/json
all boolean
before string (date-time) Everything up to this time
id string (uuid)
ids [string (uuid)]
subject object
fields
id * string
type * string
Responses 200 · 401 · 402 · 409 · 422 · 429

200 Success

read integer How many were marked
unread integer

401 Problem details (401)

402 Problem details (402)

409 Problem details (409)

422 `invalid`: send ids, all, before or subject

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

POST /api/v1/notifications/test

Send a test notification

To every channel, or (`/push/devices/{id}/test`, or `device_id` in the body) to one push device — sent `high` so it skips that device's quiet mode and do-not-disturb.

Any valid credential · Idempotency-Key · notifications.test

Request body application/json
device_id string (uuid) One push device
Responses 201 · 401 · 402 · 409 · 422 · 429

201 Success

deliveries [NotificationDelivery]
fields

NotificationDelivery

attempts integer
channel string
created_at string (date-time)
device_id string | null
id string (uuid)
next_attempt_at string | null
reason string | null
sent_at string | null
status string
summary string | null
target string | null
notification Notification
fields

Notification

actor object | null
fields
id string | null
name string | null
body string | null
category string
channels [string]
count integer Grouped notices
created_at string (date-time)
data object | null
group_key string | null
id * string (uuid)
kind string
link string | null
mute_keys [string]
priority string
privacy string
read_at string | null
subject object | null
fields
id string
type string
title string
type string The preference row it belongs to
updated_at string (date-time)

401 Problem details (401)

402 Problem details (402)

409 Test notifications are turned off or muted for the person

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/notifications/types

Notification types, categories, channels and kinds

Any valid credential · notifications.types

Responses 200 · 401 · 429

200 Success

categories [object]
fields
key string
label string
channels [string]
kinds [string]
types [object]
fields
category string
critical boolean
defaults object Channel → on
description string
direct boolean
email_by_source any
key string
label string
locked any Channels that cannot be turned off
priority string
privacy string

401 Problem details (401)

429 Problem details (429)

GET /api/v1/notifications/unread

Unread counts

Any valid credential · notifications.unread

Responses 200 · 401 · 429

200 Success

by_category object Category → unread count
unread integer

401 Problem details (401)

429 Problem details (429)

DELETE /api/v1/notifications/{id}

Delete a notice

Any valid credential · notifications.delete

ParameterInTypeDescription
id *pathstring (uuid)
Responses 204 · 401 · 402 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

GET /api/v1/notifications/{id}

One notice with its deliveries

Any valid credential · notifications.show

ParameterInTypeDescription
id *pathstring (uuid)
Responses 200 · 401 · 404 · 429

200 Success

notification * Notification & object
fields
actor object | null
fields
id string | null
name string | null
body string | null
category string
channels [string]
count integer Grouped notices
created_at string (date-time)
data object | null
deliveries [NotificationDelivery]
fields

NotificationDelivery

attempts integer
channel string
created_at string (date-time)
device_id string | null
id string (uuid)
next_attempt_at string | null
reason string | null
sent_at string | null
status string
summary string | null
target string | null
group_key string | null
id * string (uuid)
kind string
link string | null
mute_keys [string]
priority string
privacy string
read_at string | null
subject object | null
fields
id string
type string
title string
type string The preference row it belongs to
updated_at string (date-time)

401 Problem details (401)

404 Problem details (404)

429 Problem details (429)

DELETE /api/v1/push/devices

Unregister a push device by its token

Any valid credential · notifications.delete_device_by_token

Request body application/json
token * string
Responses 204 · 401 · 402 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

404 No such device

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 `invalid`: token is required

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

GET /api/v1/push/devices

The person's push devices

Any valid credential · paginated · notifications.devices

ParameterInTypeDescription
cursorquerystringThe `next_cursor` of the previous page
limitqueryintegerPage size
Responses 200 · 401 · 429

200 Success

devices * [PushDevice]
fields

PushDevice

app string
created_at string (date-time)
current boolean Registered by this session
environment string
id string (uuid)
last_error string | null
last_used_at string | null
locale string | null
name string | null
platform string
provider string
quiet boolean
quiet_until string | null
token_hint string The token, masked
updated_at string (date-time)
has_more boolean
next_cursor string | null Pass as `cursor` for the next page; null on the last

401 Problem details (401)

429 Problem details (429)

POST /api/v1/push/devices

Register a push device

Belongs to the app session that registered it and goes when it signs out; an `rs_` key gets 403 `session_required`.

Any valid credential · Idempotency-Key · notifications.register_device

Request body application/json
app "user" | "business" Default user
environment "production" | "sandbox"
locale string
name string
platform * "ios" | "android" | "desktop" | "linux"
provider "apns" | "fcm" | "none" Default by platform
token * string APNs / FCM token (8–4096 bytes)
topic string Bundle id override
Responses 201 · 401 · 402 · 403 · 409 · 422 · 429

201 Success

device PushDevice
fields

PushDevice

app string
created_at string (date-time)
current boolean Registered by this session
environment string
id string (uuid)
last_error string | null
last_used_at string | null
locale string | null
name string | null
platform string
provider string
quiet boolean
quiet_until string | null
token_hint string The token, masked
updated_at string (date-time)

401 Problem details (401)

402 Problem details (402)

403 Problem details (403)

409 Problem details (409)

422 `invalid` (+`field`)

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

429 Problem details (429)

DELETE /api/v1/push/devices/{id}

Remove a push device

Any valid credential · notifications.delete_device

ParameterInTypeDescription
id *pathstring (uuid)
Responses 204 · 401 · 402 · 404 · 422 · 429

204 Done (no content)

401 Problem details (401)

402 Problem details (402)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

PATCH /api/v1/push/devices/{id}

Quiet mode, name or locale of a push device

Any valid credential · notifications.update_device

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
locale string
name string
quiet boolean
quiet_for integer Minutes
quiet_until string (date-time)
Responses 200 · 401 · 402 · 404 · 422 · 429

200 Success

device PushDevice
fields

PushDevice

app string
created_at string (date-time)
current boolean Registered by this session
environment string
id string (uuid)
last_error string | null
last_used_at string | null
locale string | null
name string | null
platform string
provider string
quiet boolean
quiet_until string | null
token_hint string The token, masked
updated_at string (date-time)

401 Problem details (401)

402 Problem details (402)

404 Problem details (404)

422 Problem details (422)

429 Problem details (429)

POST /api/v1/push/devices/{id}/test

Send a test notification

To every channel, or (`/push/devices/{id}/test`, or `device_id` in the body) to one push device — sent `high` so it skips that device's quiet mode and do-not-disturb.

Any valid credential · Idempotency-Key · notifications.test_post

ParameterInTypeDescription
id *pathstring (uuid)
Request body application/json
device_id string (uuid) One push device
Responses 201 · 401 · 402 · 404 · 409 · 422 · 429

201 Success

deliveries [NotificationDelivery]
fields

NotificationDelivery

attempts integer
channel string
created_at string (date-time)
device_id string | null
id string (uuid)
next_attempt_at string | null
reason string | null
sent_at string | null
status string
summary string | null
target string | null
notification Notification
fields

Notification

actor object | null
fields
id string | null
name string | null
body string | null
category string
channels [string]
count integer Grouped notices
created_at string (date-time)
data object | null
group_key string | null
id * string (uuid)
kind string
link string | null
mute_keys [string]
priority string
privacy string
read_at string | null
subject object | null
fields
id string
type string
title string
type string The preference row it belongs to
updated_at string (date-time)

401 Problem details (401)

402 Problem details (402)

404 Problem details (404)

409 Test notifications are turned off or muted for the person

Problem

code * string Stable machine-readable code (snake_case)
detail string A sentence an app can show
error object | string Legacy member kept for existing clients (deprecated)
errors object Field → messages, for validation errors
instance string The request path
message string Legacy member of the mobile sign-in errors (deprecated)
request_id string
status * integer
title * string
type string (uri) A URI identifying the problem type (https://recordsender.com/problems/<code>)

422 Problem details (422)

429 Problem details (429)