Skip to main content
POST
/
v1
/
notifications
/
register-device-token
Register Device Token
curl --request POST \
  --url https://api.tradearies.dev/v1/notifications/register-device-token \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "deviceToken": "fGxY8Z9abc123def456ghi789jkl012mno345pqr678stu901vwx234yz"
}'
{
"message": "Device token registered successfully"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
deviceToken
string
required

The FCM device token obtained from Firebase Cloud Messaging

Example:

"fGxY8Z9abc123def456ghi789jkl012mno345pqr678stu901vwx234yz"

Response

Device token registered successfully

message
string
Example:

"Device token registered successfully"