Skip to content

Register native push-notification token

POST
/api/v1/account/push-token
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.

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"
}

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
}