---
title: "Send test push notification to a user"
method: POST
path: "/admin/push-notifications/test"
tags: ["Admin - Push Notifications"]
---

# Send test push notification to a user

`POST /admin/push-notifications/test`

Sends a push notification with the avatar of the model from the user's most recent chat. Useful for testing push notification delivery with custom avatars.

## Request body

- SendTestPushDto
  - `userId` string, required — User ID to send test push notification to
  - `title` string — Optional custom title (defaults to model name)
  - `body` string — Optional custom body text

## Response `200`

Test push notification sent

- SendTestPushResponseDto
  - `success` boolean, required — Whether the push was successfully sent
  - `modelName` string, nullable, required — Model name from most recent chat
  - `avatarUrl` string, nullable, required — Avatar URL used in the notification
  - `fcmToken` string, nullable, required — Masked FCM token (last 8 chars)
  - `successCount` number, required — Number of successful deliveries
  - `failureCount` number, required — Number of failed deliveries

---

[API](https://skmtc.dev/miaai/apis/backend-template-api.md) · [All operations](https://skmtc.dev/miaai/apis/backend-template-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/miaai/backend-template-api/revisions/2a8d88a5124f/schema)
