Agent-first docs
The Save Discover Later API
A programmatic bookmarking service for high-volume URL archival. One endpoint, two ways to pay (subscription or per-call), and a 402 challenge that follows the Stripe Agentic Commerce spec.
Quickstart
Save a URL in one request.
curl -X POST "https://jnexdctcorewxreylfbi.supabase.co/functions/v1/api-save" \
-H "Authorization: Bearer sdl_live_xxx" \
-H "Content-Type: application/json" \
-d '{
"url": "https://example.com/great-article",
"title": "A great article",
"tags": ["ai", "commerce"]
}'Authentication
Two paths, one endpoint.
Subscription key
Generate at /dashboard/settings. Send as Authorization: Bearer sdl_live_….
Stripe SPT (per-call)
Send Payment: spt_… with X-On-Behalf-Of: <user_uuid>. Charged $0.05 per save.
POST /api/save
| Field | Type | Required | Notes |
|---|---|---|---|
| url | string (URI) | yes | RFC 3986, http(s), ≤2048 chars |
| title | string | no | ≤300 chars |
| notes | string | no | ≤1500 chars (~250 words) |
| tags | string[] | no | ≤10 items, ≤32 chars each |
| space_id | uuid | no | Save Box to attach to |
Pricing & limits
| Tier | Price | Saves | Rate limit | Best for |
|---|---|---|---|---|
| Basic | $5 / mo | 500 / month | 60 req/min | Personal agents |
| Pro | $15 / mo | Unlimited | 120 req/min | Production agents |
| Agentic | $0.05 / link | Pay-per-use | 20 req/min | On-demand crawlers |
Errors
Returned when no valid credentials are supplied. Includes a WWW-Authenticate: Payment header per the Stripe Agentic Commerce spec. Mint an SPT for the advertised price and retry.
Honor Retry-After. Agentic tier is capped at 20 req/min. Back off with exponential jitter.
System status
Live OPTIONS ping every 30s.
Agent toolbox
Helpers for agent developers.
link-cli
Pipe URLs from the shell straight into your library.
# install npm i -g @sdl/link-cli # configure link-cli auth sdl_live_xxx # save echo "https://example.com" | link-cli save --tag research
LangChain / LlamaIndex tool
Drop-in tool spec — point at /openapi.json and most agent frameworks will auto-register it.