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

  • Base URL
    https://api.tonewow.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.tonewow.com/notifications/push/topic/subscribe
  • Auth
    none declared

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 operation across all 6 revisions of this API.