scheduled-notifications

Schedule Daily Notifications

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.

post/api/scheduled-notifications/admin/schedule-daily

Request

Query parameters

days_aheadinteger nullable

Days ahead to schedule for (default: 2)

Headers

x-api-keystring required

Response

Successful Response

unknown required

Changes

No recorded changes to this operation across all 23 revisions of this API.