---
title: "Test Notification"
method: POST
path: "/api/scheduled-notifications/admin/test"
tags: ["scheduled-notifications"]
---

# Test Notification

`POST /api/scheduled-notifications/admin/test`

Generate a test notification for a user.
Shows exactly what would be generated by the production batch system.

Args:
- x-user-id (header): The user ID to generate notification for
- sendToDevice (body): If true, actually sends the notification to the user's device. Default: false
- deliveryMethod (body): "push" for regular push notification, "live_activity" for iOS Live Activity. Default: "push"
- notificationType (body): "personalized", "prayer", or "journaling". Default: "personalized"
- timeOfDay (body): "morning", "noon", "evening", "night", or "generic". Default: "generic"
- interruptionLevel (body): Optional Expo iOS interruption level for push tests. Use "time-sensitive" to test Time Sensitive notifications.

Returns:
- notification_type: Type of notification generated
- notification: The generated title and body
- memories_count: How many memories were used (only for personalized)
- sent_to_device: Whether notification was sent to device
- delivery_method: How the notification was delivered

Requires x-api-key header for authentication.

## Headers

- `x-user-id` string, required
- `x-api-key` string, required

## Request body

- TestNotificationRequest
  - `sendToDevice` boolean
  - `deliveryMethod` string
  - `notificationType` string
  - `timeOfDay` string
  - `imageUrl` string, nullable
  - `senderName` string, nullable
  - `interruptionLevel` string, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/usecreed/apis/creed-api.md) · [All operations](https://skmtc.net/usecreed/apis/creed-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usecreed/creed-api/revisions/523833f9e819/schema)
