Rensei docs
API ReferenceNotifications

Register (or refresh) a push device token for the authenticated user.

Upserts a per-user APNs or web-push device token. The write is scoped to the authenticated user; a credential with no user identity is rejected. Re-registering a live token bumps last-seen and refreshes its mutable fields.

POST
/api/notifications/devices

Authorization

headerAuthorizationBearer <rsk_live_*>

Rensei API key presented as Authorization: Bearer rsk_live_. Required API-key scopes are recorded per operation in x-rensei-required-scopes.

Request Body

application/json
  1. body
platform*string
Value in"apns""webpush"
token*string
Length1 <= length
environment?string
Value in"production""sandbox"
bundleId?string
Length1 <= length
deviceLabel?string
Length1 <= length <= 200
webPushP256dh?string
Length1 <= length
webPushAuth?string
Length1 <= length

Response Body

Device token registered.

application/json
  1. response
id*string
Example Request
curl -X POST 'https://app.rensei.ai/api/notifications/devices' \  -H 'Content-Type: application/json' \  -d '{  "platform": "apns",  "token": "string"}'
Example Response
{  "id": "string"}