---
title: "Send notification to topic"
method: POST
path: "/device-tokens/notifications/send-to-topic"
tags: ["device-tokens"]
---

# Send notification to topic

`POST /device-tokens/notifications/send-to-topic`

Send push notification to all devices subscribed to a topic

## Request body

- SendNotificationToTopicDto
  - `topic` string, required — Topic name to send notification to
  - `payload` PushNotificationPayloadDto, required
    - `title` string, required — Notification title
    - `body` string, required — Notification body
    - `data` object — Additional data payload
    - `imageUrl` string — Image URL for notification
    - `clickAction` string — Click action for Android

## Response `200`

Notification sent successfully

- NotificationResponseDto
  - `successCount` number, required — Number of successful notifications sent
  - `failureCount` number, required — Number of failed notifications
  - `results` string[], required — Detailed results for each notification attempt

## Other responses

- `400` — Bad Request

---

[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)
