Endpoints for the watchlist + alerts ecosystem. See Watchlist + alerts for the conceptual model.Documentation Index
Fetch the complete documentation index at: https://docs.simplefunctions.dev/llms.txt
Use this file to discover all available pages before exploring further.
Watched objects
| Endpoint | Purpose |
|---|---|
GET /api/watch | List watched objects |
POST /api/watch | Add (by ticker / URL / query / text) |
POST /api/watch/identify | Resolve free-text to a canonical watched object |
GET /api/watch/{id} | Detail |
PATCH /api/watch/{id} | Update |
DELETE /api/watch/{id} | Remove |
POST /api/watch/{id}/refresh | Force re-evaluation now |
Alert rules
| Endpoint | Purpose |
|---|---|
GET /api/alert-rules | List rules |
POST /api/alert-rules | Create rule |
GET /api/alert-rules/{id} | Detail |
PATCH /api/alert-rules/{id} | Update (pause/archive included) |
DELETE /api/alert-rules/{id} | Delete |
POST /api/alert-rules/{id}/test | Test fire |
price_above, price_below, econ_release, gov_action, semantic_match.
Webhook endpoints
| Endpoint | Purpose |
|---|---|
GET /api/webhook-endpoints | List endpoints |
POST /api/webhook-endpoints | Create |
GET /api/webhook-endpoints/{id} | Detail |
PATCH /api/webhook-endpoints/{id} | Update |
DELETE /api/webhook-endpoints/{id} | Delete |
POST /api/webhook-endpoints/{id}/test | Test delivery |
we_...) and signing secret. Store the secret — it isn’t shown again.
Alert deliveries
| Endpoint | Purpose |
|---|---|
GET /api/alert-deliveries | List recent deliveries |
id, ruleId, endpointId, status (pending, delivered, failed, paused), dedupeKey, attempts, lastResponseStatus, lastError.
Authentication
API key (sf_live_...) via Authorization: Bearer .... CLI sessions and Supabase JWT both work — see src/lib/workflow/auth.ts.
Resend webhook (Resend → SF receiver)
RESEND_WEBHOOK_SECRET.
Legacy
/api/watch/* and /api/alert-rules/* per drizzle migration 0041_watch_alert_workflows.sql. New integrations should use the new paths.
See also
Watchlist + alerts
Conceptual model and CLI walkthrough.
Webhook receiver
Receiver code samples.
Webhook events
Per-event payload schemas.