---
title: "Subscribe device tokens to a Firebase topic"
method: POST
path: "/notifications/push/topic/subscribe"
tags: ["push-notifications"]
---

# Subscribe device tokens to a Firebase topic

`POST /notifications/push/topic/subscribe`

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

## Request body

- SubscribeToTopicDto
  - `deviceTokens` string[], required — Array of device tokens to subscribe
  - `topic` string, required — Topic name to subscribe to

## Response `200`

Devices subscribed to topic successfully

- object
  - `message` string

## Other responses

- `400` — Bad request - Invalid device tokens or topic name

---

[API](https://skmtc.dev/tonewow/apis/tonewow-database-api.md) · [All operations](https://skmtc.dev/tonewow/apis/tonewow-database-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/tonewow/tonewow-database-api/revisions/f36472974ad4/schema)
