Push Notifications

Push notification token management

Register a token for push notifications

post
/push-register

Registers a push notification token for the authenticated user. The type of the token determines the handler used to send notifications. Currently supported types are iOS and Android, but other values are allowed for future compatibility. Both Android and iOS handlers use params to define the language of the notifications, default "en". Supported languages as of 2025-11 are English (en), Finnish (fi), Swedish (sv), French (fr), Russian (ru), and German (de). Rate limits apply per user account, IP address and total calls.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
tokenstringRequired

Push notification token, used to authenticate at the push notification services

Example: [email protected]
typestring · enumRequired

Device platform type

Example: iOSPossible values:
namestringRequired

Human-readable device name

Example: Otso's mobile phone 2
Responses
200

Push notification token registered successfully

application/json
Responseall of
post
/push-register
POST /push-register HTTP/1.1
Host: network.ruuvi.com
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 107

{
  "name": "Google Pixel 7",
  "params": {
    "language": "en"
  },
  "token": "dWD8xlZKS7y...******...rpeM",
  "type": "Android"
}
{
  "result": "success",
  "data": {
    "id": 6037729964,
    "lastAccessed": 1763900053,
    "name": "Otso's mobile phone 2"
  }
}

Last updated