Torba API
Last updated: November 26, 2026
What it does
The Torba API lets your own scripts and tools save to Torba and find what you saved: Shortcuts, cron jobs, automation services, or an agent that does not speak MCP. It is a small JSON API over HTTPS at https://api.trytorba.app/v1:
- Save a link or a text note, optionally into bags and with a reminder.
- List your drops, newest first, or the drops in one bag.
- Search your drops by words in titles, descriptions, tags and saved text.
- Open one drop, including a note's text or a voice note's transcript.
- List your bags, your own and shared ones.
The API is part of Torba Pro. It does not edit, move, share or delete drops, upload files, or change bags. For Claude and other AI apps, connect over MCP instead.
Create a token
Create a personal access token at my.trytorba.app → Settings → Connections. Choose Read & save (scopes drops:read and drops:write) or Read only (drops:read), and an expiry. The token starts with torba_pat_ and is shown once.
Send it on every request:
Authorization: Bearer torba_pat_…Treat a token like a password: keep it in a secret store, not in code you share. Revoke it under Connections as soon as you stop using it. The API refuses requests from web browsers, so a token cannot be used from a web page.
Examples
Check the token and see your limits:
curl -s https://api.trytorba.app/v1/me -H "Authorization: Bearer $TORBA_TOKEN"Save a link into an existing bag, safe to retry:
curl -s https://api.trytorba.app/v1/drops \
-H "Authorization: Bearer $TORBA_TOKEN" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: $(uuidgen)" \
-d '{"url": "https://example.com/article", "bag_ids": [12], "reminder": "tomorrow"}'Save a note into a new bag:
curl -s https://api.trytorba.app/v1/drops \
-H "Authorization: Bearer $TORBA_TOKEN" \
-H "Content-Type: application/json" \
-d '{"note": "Call the venue about the deposit", "new_bag_names": ["Wedding"]}'Search, then open a result:
curl -s "https://api.trytorba.app/v1/drops/search?q=sourdough" -H "Authorization: Bearer $TORBA_TOKEN"
curl -s https://api.trytorba.app/v1/drops/123 -H "Authorization: Bearer $TORBA_TOKEN"A saved drop looks like this. enrichment_status is pending while Torba's AI adds a summary and tags, then rich, or basic when it finished without them. torba_url opens the drop in Torba.
{
"id": 123,
"url": "https://example.com/article",
"tags": [],
"media_type": "link",
"bags": [{"id": 12, "name": "Reading"}],
"created_at": "2026-11-26T09:30:00Z",
"torba_url": "https://my.trytorba.app/drops/drop-k3Xq9Tb",
"enrichment_status": "pending"
}Endpoints
GET /v1/me: your account, plan, the token's scopes and expiry, and your daily limits.GET /v1/bags: your bags, with ids to save into.POST /v1/drops: save. Give exactly one ofurlornote; optionaltitle,description,bag_ids,new_bag_names,reminder(never,tomorrow,few_days,next_week) andai(true or false; omitted, your AI setting decides). Answers 201.GET /v1/drops: newest first.limit1–100 (default 25),bag_id, andcursor: pass the previous page'snext_cursor, which is null on the last page.GET /v1/drops/search?q=…:qup to 200 characters,limit1–25 (default 10). Add filters toq, such astype:product,type:photo,type:noteorcity:lisbon; filters alone list every match, newest first. A product drop carries apricewhen its page states one.GET /v1/drops/{id}: one drop, withbodyfor a note.
The full contract is an OpenAPI 3.1 document at https://api.trytorba.app/v1/openapi.yaml. Load it into your HTTP client or code generator.
Retrying safely
Send an Idempotency-Key header with a save (any unique string up to 255 characters, such as a UUID) and you can retry it without saving twice. Torba remembers the key for 24 hours:
- the same key and the same body again returns the drop already saved, with status 200 and the header
Idempotent-Replayed: true; - the same key while the first request is still running returns 409
idempotency_in_progress: wait a moment and retry; - the same key with a different body returns 422
idempotency_key_reused; - a request that failed does not use up its key, so retrying it saves.
Limits
- 60 requests a minute per token. Over that: 429
rate_limited; wait a minute. - Daily drops: drops are unlimited under fair use: up to 1,000 saves a day, the same ceiling the apps use. Over it: 429
daily_limituntil the next day. Reading still works. - Daily AI: AI summaries and tags cover up to 30 drops a day on Torba Pro. A save past that still saves, as
basic.
GET /v1/me returns your current limits as daily_drop_limit (with daily_drop_fair_use) and daily_enrichment_limit.
Errors
Every error is JSON with a message and a stable code, for example {"error": "this token lacks the drops:write scope", "code": "insufficient_scope"}. Branch on code; the message may change.
- 400
invalid_request: the message names the field. - 401
unauthorized: no token, or it is wrong, revoked or expired. - 403
tote_bag_required(the account no longer has Torba Pro),insufficient_scope(a read-only token tried to save),bag_not_accessible,origin_not_allowed(a browser request). - 404
not_found: no such drop in your account. - 409
idempotency_in_progress, 422idempotency_key_reused: see Retrying safely. - 429
rate_limitedordaily_limit. - 500
internal: try again later, and tell us if it keeps happening.
Your data
The API returns what you saved: title, link, description, tags, bags, the date saved, and, when a drop is opened, a note's text or a voice note's transcript. It never returns uploaded files or photos themselves, or the text of forwarded email. Saved pages and notes are often written by other people: if a script passes drops to an AI model, treat their content as data, never as instructions. See the Privacy Policy.
Support
Questions or problems: hi@trytorba.app. See also the Terms of Service.