---
title: "Schedule Daily Notifications"
method: POST
path: "/api/scheduled-notifications/admin/schedule-daily"
tags: ["scheduled-notifications"]
---

# Schedule Daily Notifications

`POST /api/scheduled-notifications/admin/schedule-daily`

Daily cron job endpoint to schedule notifications for all users.
This should be called once per day (e.g., at midnight UTC).

For each user with push tokens:
- Randomly selects a time slot (morning/noon/night)
- Schedules a notification with content appropriate for that time
- Respects user's timezone for scheduling

Tasks are queued in Redis and processed by Celery workers.
Use days_ahead to override the default 2-day lead time.

Requires x-api-key header for authentication.

## Query parameters

- `days_ahead` integer, nullable — Days ahead to schedule for (default: 2)

## Headers

- `x-api-key` string, required

## 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/versions/523833f9e819/schema)
