Skip to main content
POST
/
tokens
cURL
curl --request POST \
  --url https://our-secret-api-url.com/tokens \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '
{
  "fcmToken": "<string>",
  "existingToken": "<string>"
}
'
{
  "message": "<string>"
}
Pass existingToken to update it with the fcmToken

Authorizations

Authorization
string
header
required

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

Headers

X-API-KEY
string
required

API key required for authentication

Body

application/json
fcmToken
string
required
existingToken
string

Response

Token registered or updated successfully

message
string