---
title: "Send test notification (development only)"
method: POST
path: "/api/notifications/test"
tags: ["Notifications"]
---

# Send test notification (development only)

`POST /api/notifications/test`

## Request

- Base URL: `https://api.hiyd.ai`
- URL: `https://api.hiyd.ai/api/notifications/test`
- Auth: HTTP bearer

Sends straight through FCM (not the outbox) to the installation the user used most recently, or to the legacy app_user.fcm_token when no installation is registered. `target` in the response says which.

## Request body

- object
  - `title` string
  - `message` string
  - `dry_run` boolean: Ask FCM to validate the token and payload without delivering

## Response `200`

Test notification sent (or validated, when dry_run)

## Other responses

- `502`: FCM rejected the send; `code` carries the messaging/* reason and `hint` explains it

---

[API](https://skmtc.dev/hiyd/apis/hiyd-backend-api.md) - [All operations](https://skmtc.dev/hiyd/apis/hiyd-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hiyd/apis/hiyd-backend-api/revisions/23598d347e1b?raw)
