Push Notifications

Register FCM token

Register or update a Firebase Cloud Messaging token for push notifications. If the token already exists, updates lastUsedAt.

post/v1/fcm-tokens

Request

  • Base URL: http://localhost:4000
  • URL: http://localhost:4000/v1/fcm-tokens
  • Auth: HTTP bearer

Request body

tokenstring required

FCM device token from Firebase

platform'ios' | 'android' | 'web' required

Device platform

appVersionstring

App version string

Response

Token registered

successboolean
idstring uuid

Example response

{
  "success": true
}

Changes

No recorded changes to this operation across all 2 revisions of this API.