Register native push-notification token
POST
/api/v1/account/push-token
const url = 'http://localhost:3001/api/v1/account/push-token';const options = { method: 'POST', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"app_version":"example","device_id":"example","platform":"example","token":"example"}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url http://localhost:3001/api/v1/account/push-token \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "app_version": "example", "device_id": "example", "platform": "example", "token": "example" }'Register a native FCM/APNs device token for the authenticated user. Distinct from /push/subscribe (WebPush/VAPID). SA-2026-ARCH P3-M1.
Authorizations
Section titled “Authorizations”Request Bodyrequired
Section titled “Request Bodyrequired”Device token registration
Media typeapplication/json
object
app_version
string
device_id
string
platform
Fcm or apns
string
token
string
Examplegenerated
{ "app_version": "example", "device_id": "example", "platform": "example", "token": "example"}Responses
Section titled “Responses”Registered
Media typeapplication/json
object
key
additional properties
any
Examplegenerated
{}Bad Request
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Unauthorized
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}Internal Server Error
Media typeapplication/json
object
error
string
success
boolean
Examplegenerated
{ "error": "example", "success": true}