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

# Send notification to all users

`POST /device-tokens/notifications/send-to-all-users`

Send push notification to all active device tokens

## Request body

- SendNotificationToTokensDto
  - `deviceTokens` string[], required — Array of device tokens 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.dev/tonewow/apis/tonewow-database-api/revisions/60d5bbdc852a?raw)
