Feed

Ingest behavioural feed signals

Changed on

Authenticated. When UserSettings.analyticsPersonalization is false (#614), the payload is dropped at this endpoint and never persisted. Opted-in bodies are validated (zod) and stored as FeedSignal rows (#685): at most 50 events per request plus a 64KB body ceiling enforced before JSON parsing; unknown kind/filter rejected per event; dwellMs must be a finite positive number (booleans/numeric strings rejected), minimum normalized 1, clamped to 60s; opted-in writes are capped at 30 batches/min/user (429 RATE_LIMITED); client at clamped into the previous 24 hours ending at createdAt (future pinned to now). accepted counts the rows that survived validation (0 on the opt-out path). Rows older than FEED_SIGNAL_RETENTION_DAYS (default 90) are hard-deleted by the daily /api/cron/feed-signal-retention cron.

post/api/feed/signals

Request

  • Base URL
    https://app.d-sports.org
  • Auth
    HTTP bearer

Response

{ success, data: { ingested: boolean, accepted: number } }

Changes