API
A REST API for your saves, highlights, collections and summaries, for building your own tools on your library.
Getting started
All requests go to one base URL over HTTPS:
API keys
Create a key in Fold under Settings → Developers → New API key. Choose read-only, or read and write. Keys start with fold_sk_ and are shown once, so store yours somewhere safe.
Include your key with every request, like this:
$ curl https://api.fold.example.com/v1/saves \ -H "Authorization: Bearer fold_sk_xxxxxxxxxxxx"Rate limits
The free plan allows 500 requests a day, shared with MCP and the CLI. Pro has no daily limit, with a ceiling of 120 requests a minute. Every response carries X-RateLimit-Remaining; over the limit you’ll get a 429 with a Retry-After header.
Responses
Responses are JSON. Lists return a data array and a next_cursor to pass as cursor for the next page. Errors use standard HTTP status codes with a body like this:
{ "error": { "code": "not_found", "message": "No save with ID sv_0000." }}sv_ saves, hl_ highlights, co_ collections.Saves
Everything in a library is a save: an article, video, podcast, PDF or newsletter.
GET/saves
List saves, newest first.
| Parameter | Type | Description |
|---|---|---|
collection | string | Only saves in this collection (ID or name). |
kind | string | article, video, podcast, pdf or newsletter. Comma-separate several. |
limit | integer | Up to 100. Defaults to 25. |
cursor | string | The next_cursor from the previous page. |
$ curl https://api.fold.example.com/v1/saves?collection=work&limit=2 \ -H "Authorization: Bearer $FOLD_API_KEY"{ "data": [ { "id": "sv_3m9a", "kind": "podcast", "title": "Slow Software, Ep. 41 — Tools that wait for you", "url": "https://slowsoftware.fm/41", "collection": "Work", "saved_at": "2026-12-03T08:47:12Z" } ], "next_cursor": "c_9f2k1"}POST/saves
Save a link. Processing runs in the background; the save’s status moves from processing to ready.
| Parameter | Type | Description |
|---|---|---|
url | string | Required. The link to save. |
collection | string | Collection to file it in. |
tags | string[] | Tags to add. |
$ curl -X POST https://api.fold.example.com/v1/saves \ -H "Authorization: Bearer $FOLD_API_KEY" \ -H "Content-Type: application/json" \ -d '{"url": "https://structures.quarterly/singing-bridges", "tags": ["science"]}'{ "id": "sv_7q2c", "status": "processing", "url": "https://structures.quarterly/singing-bridges"}GET/saves/{id}
Get one save. Ask for the reader copy, summary or transcript with include.
| Parameter | Type | Description |
|---|---|---|
include | string | reader, summary, transcript. Comma-separate several. |
$ curl "https://api.fold.example.com/v1/saves/sv_8fk2?include=summary,transcript" \ -H "Authorization: Bearer $FOLD_API_KEY"{ "id": "sv_8fk2", "kind": "video", "title": "How tide tables are actually made", "summary": "A walkthrough of harmonic analysis: tide predictions are built by adding together dozens of regular waves…", "transcript": [ { "time": "00:14", "text": "So this is a tide gauge." } ]}DELETE/saves/{id}
Delete a save, with its highlights and notes. This can’t be undone.
$ curl -X DELETE https://api.fold.example.com/v1/saves/sv_7q2c \ -H "Authorization: Bearer $FOLD_API_KEY"{ "id": "sv_7q2c", "deleted": true }Highlights
Highlights belong to a save and can carry a note.
GET/saves/{id}/highlights
List a save’s highlights in reading order.
$ curl https://api.fold.example.com/v1/saves/sv_2b8d/highlights \ -H "Authorization: Bearer $FOLD_API_KEY"{ "data": [ { "id": "hl_51x", "text": "When the rhythm of the swirls matches the cable's own rhythm, the cable sings.", "color": "yellow", "note": "Same idea as resonance in the tide video." } ]}POST/saves/{id}/highlights
Highlight a passage. The text must appear in the save’s reader copy.
| Parameter | Type | Description |
|---|---|---|
text | string | Required. The exact passage. |
color | string | yellow, green or pink. Defaults to yellow. |
note | string | An optional note. |
$ curl -X POST https://api.fold.example.com/v1/saves/sv_2b8d/highlights \ -H "Authorization: Bearer $FOLD_API_KEY" \ -H "Content-Type: application/json" \ -d '{"text": "Engineers spent decades trying to silence that sound.", "color": "green"}'{ "id": "hl_52a", "color": "green" }Collections
Collections group saves. Smart collections fill themselves from rules and can’t be added to directly.
GET/collections
List collections with their save counts.
$ curl https://api.fold.example.com/v1/collections \ -H "Authorization: Bearer $FOLD_API_KEY"{ "data": [ { "id": "co_long", "name": "Long reads", "count": 31, "smart": true }, { "id": "co_work", "name": "Work", "count": 12, "smart": false } ]}POST/collections/{id}/saves
Add saves to a collection.
| Parameter | Type | Description |
|---|---|---|
ids | string[] | Required. Up to 100 save IDs. |
$ curl -X POST https://api.fold.example.com/v1/collections/co_work/saves \ -H "Authorization: Bearer $FOLD_API_KEY" \ -H "Content-Type: application/json" \ -d '{"ids": ["sv_3m9a", "sv_8fk2"]}'{ "added": 2 }Search and ask
Search returns matching saves; ask returns an answer written from them, with sources.
GET/search
Search titles, reader copies, highlights and transcripts.
| Parameter | Type | Description |
|---|---|---|
q | string | Required. What to look for. |
kind | string | Limit to some kinds of save. |
limit | integer | Up to 50. Defaults to 10. |
$ curl "https://api.fold.example.com/v1/search?q=resonance&limit=3" \ -H "Authorization: Bearer $FOLD_API_KEY"{ "data": [ { "id": "sv_8fk2", "title": "How tide tables are actually made", "match": "transcript", "at": "06:18" }, { "id": "sv_2b8d", "title": "Why some bridges sing in the wind", "match": "highlight" } ]}POST/ask
Answer a question from the library. Ask is part of Pro; on the free plan it returns 403 with the code plan_required.
| Parameter | Type | Description |
|---|---|---|
question | string | Required. A plain-language question. |
collection | string | Only use saves from this collection. |
$ curl -X POST https://api.fold.example.com/v1/ask \ -H "Authorization: Bearer $FOLD_API_KEY" \ -H "Content-Type: application/json" \ -d '{"question": "Which ferns grow in full sun?"}'{ "answer": "Most woodland ferns prefer dappled shade; royal fern and marsh fern tolerate full sun with constant moisture.", "sources": [{ "id": "sv_5p1e", "title": "A field guide to temperate ferns", "at": "p. 12" }]}