---
title: "Send notification"
method: POST
path: "/api/notifications/send"
tags: ["notifications"]
---

# Send notification

`POST /api/notifications/send`

Send a Firebase notification to one user (self by default). Uses notification logs as source of truth.

## Request body

- SendNotificationRequest — Request model for sending a notification to a user.
  - `user_id` string, uuid, nullable — Target user ID. If omitted, sends to the authenticated user.
  - `title` string, required — Notification title
  - `body` string, required — Notification body
  - `notification_type` 'chat' | 'booking' | 'payment' | 'subscription' | 'event' | 'general' | 'daily_morning' | 'daily_evening' | 'lunch' | 'journey' | 'corabea_plus' | 'diary_shared' | 'kit_document' — Notification type constants for FCM notifications.
  - `data` object, nullable — Optional FCM data payload (string key-value pairs)
  - `notification_metadata` object, nullable — Optional metadata for backend logs (chat_id, appointment_id, etc.)
  - `active_only` boolean — If true, send only to active FCM tokens

## Response `200`

Successful Response

- SendNotificationResponse — Response model for sending notifications.
  - `success_count` integer, required — Number of successful notifications sent
  - `failure_count` integer, required — Number of failed notifications
  - `total_devices` integer, required — Total number of devices with FCM tokens
  - `results` object[] — Detailed results per device

## Other responses

- `422` — Validation Error

---

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