push-notifications

Subscribe device tokens to a Firebase topic

Subscribes one or more device tokens to a Firebase Cloud Messaging topic for targeted notifications

post/notifications/push/topic/subscribe

Request body

deviceTokensstring[] required

Array of device tokens to subscribe

topicstring required

Topic name to subscribe to

Example request

{
  "deviceTokens": [
    "fcm_token_1",
    "fcm_token_2"
  ],
  "topic": "news"
}

Response

Devices subscribed to topic successfully

messagestring

Example response

{
  "message": "Successfully subscribed to topic"
}

Changes

No recorded changes to this endpoint across all 1 revision of this API.