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>" }
Register or Update FCM Token
existingToken
fcmToken
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
API key required for authentication
Token registered or updated successfully