scheduled-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

Request

Query parameters

start_hours_aheadinteger nullable

Hours ahead of now for window start (default: 47)

end_hours_aheadinteger nullable

Hours ahead of now for window end (default: 48)

Headers

x-api-keystring required

Response

Successful Response

unknown required

Changes

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