Firebase Admin icon

Firebase Admin

Interact with Firebase Firestore, Auth, and Storage using Firebase Admin SDK

Cloud Messaging → Subscribe to Topic

AI-generated

Summary

Subscribe one or more device registration tokens to a specified Firebase Cloud Messaging topic within a given Firebase project.

Inputs

  • Project Name or ID — Select the Firebase project by name or ID; you can choose from the list or specify one using an expression.
  • Topic (required) — Specify the topic name to subscribe to, without the '/topics/' prefix.
  • Device Tokens (required) — Provide one or multiple device registration tokens as a comma-separated string or JSON array to be subscribed to the topic.

Output shape

a JSON object containing the response from Firebase Admin SDK about the subscription operation, including any success or error information per device token

The output includes details on whether the subscription of each device token to the topic was successful or failed; no pagination applies.

Links

Discussion