product-updates

Generate Product Update

Generate and optionally send a product update email based on recent GitHub activity.

This endpoint:

  1. Fetches recent commits and merged PRs from the specified GitHub repository
  2. Uses an LLM to draft a professional product update email
  3. Sends the email to the specified recipient

Authentication: Requires x-cron-secret header matching CRON_SECRET env var.

This endpoint can be triggered:

  • Manually for one-off updates
  • By a Supabase Edge Function (bi-weekly)
post/api/v1/internal/product-updates/generate

Request

  • Base URL: https://api.seoproai.co
  • URL: https://api.seoproai.co/api/v1/internal/product-updates/generate
  • Auth: one of:
    • HTTP bearer
    • OAuth 2 (authorization code, authorization URL https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/authorize, token URL https://dajosjnaalanhqksxrpe.supabase.co/auth/v1/token)

Headers

x-cron-secretstring required

Request body

ownerstring

GitHub repository owner

repostring

GitHub repository name

since_daysinteger

Days to look back for changes

recipient_emailstring nullable

Override recipient email

dry_runboolean

If true, generate but don't send email

Response

Successful Response

statusstring required
messagestring required
commits_countinteger
prs_countinteger
subjectstring nullable
body_previewstring nullable
dry_runboolean
broadcast_createdboolean
broadcast_idstring nullable
bento_dashboard_urlstring nullable

Changes

No recorded changes to this operation across all 1 revision of this API.