v4
latestOpenAPI 3.1.02026-08-08221179273.1 KBscheduled-notifications
Generate Content
Hourly cron job endpoint to pre-generate notification content. By default processes a 1-hour time slice 47-48 hours ahead. Use start_hours_ahead and end_hours_ahead query params to override.
For each notification in the slice:
- Determines type (personalized vs template) via probability
- Template: inserts content directly into DB
- Personalized: submits Gemini batch (results collected via retry)
Requires x-api-key header for authentication.
post/api/scheduled-notifications/admin/generate-content
Query parameters
start_hours_aheadinteger nullable
Hours ahead of now for window start (default: 47)
Hours ahead of now for window start (default: 47)
end_hours_aheadinteger nullable
Hours ahead of now for window end (default: 48)
Hours ahead of now for window end (default: 48)
Headers
x-api-keystring required
Response
Successful Response
{"stackTrail":"paths:/api/scheduled-notifications/admin/generate-content:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}