LinkCrypt REST API
A first-class REST API so your AI agents can search, save, and tag your personal link library — no scraping.
Authentication
Create a personal API key in Preferences (sign in required). Keys start with lc_ . Include on every request:
Authorization: Bearer YOUR_API_KEY Base URL: https://getlinkcrypt.com/api/v1
Search & lookup
/api/v1/searchFull-text search across title, description, domain, and saved page content (most powerful search).
| Param | Required | Notes |
|---|---|---|
| q | Yes | Search query |
| limit | No | Max results (default 20) |
| offset | No | Pagination |
Example
curl -s "https://getlinkcrypt.com/api/v1/search?q=python&limit=10" -H "Authorization: Bearer YOUR_API_KEY"
/api/v1/linksList links with filters and pagination.
| Param | Required | Notes |
|---|---|---|
| q | No | Filter title, description, domain |
| tags | No | Comma-separated; AND match (e.g. ai,python) |
| domain | No | Partial domain match |
| favorite | No | true | false |
| sort | No | created_at | title | click_count | updated_at |
| limit | No | Max 100 (default 20) |
| offset | No | Pagination |
Example
curl -s "https://getlinkcrypt.com/api/v1/links?tags=ai&limit=20" -H "Authorization: Bearer YOUR_API_KEY"
/api/v1/links/:idSingle link with full tag list.
| Param | Required | Notes |
|---|---|---|
| id | Yes | Link UUID |
Example
curl -s "https://getlinkcrypt.com/api/v1/links/LINK_ID" -H "Authorization: Bearer YOUR_API_KEY"
Save & update links
/api/v1/linksCreate a link. Tags can be provided; new tags are created automatically. AI tagging may run async.
Body: {"url":"https://…","title"?:string,"description"?:string,"tags"?:string[]}
Example
curl -s -X POST "https://getlinkcrypt.com/api/v1/links" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"url":"https://example.com","tags":["research"]}'/api/v1/links/:idUpdate metadata (partial body).
Body: {"title"?,"url"?,"description"?,"is_favorite"?:boolean}
Example
curl -s -X PATCH "https://getlinkcrypt.com/api/v1/links/LINK_ID" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"is_favorite":true}'Tags
/api/v1/tagsAll tags with link counts.
Example
curl -s "https://getlinkcrypt.com/api/v1/tags" -H "Authorization: Bearer YOUR_API_KEY"
/api/v1/tagsCreate a tag.
Body: {"name":string,"color"?: "#hex"}
Example
curl -s -X POST "https://getlinkcrypt.com/api/v1/tags" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"name":"research","color":"#10B981"}'/api/v1/links/:id/tagsTags on a link.
| Param | Required | Notes |
|---|---|---|
| id | Yes | Link UUID |
Example
curl -s "https://getlinkcrypt.com/api/v1/links/LINK_ID/tags" -H "Authorization: Bearer YOUR_API_KEY"
/api/v1/links/:id/tagsAdd tag to link (creates tag if missing).
Body: {"name":string}
Example
curl -s -X POST "https://getlinkcrypt.com/api/v1/links/LINK_ID/tags" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"name":"ai"}'/api/v1/links/:id/tags/:tagIdRemove a tag from a link (does not delete the link).
Example
curl -s -X DELETE "https://getlinkcrypt.com/api/v1/links/LINK_ID/tags/TAG_ID" -H "Authorization: Bearer YOUR_API_KEY"
/api/v1/tags/:idUpdate tag (name, description, color).
Body: {"name"?,"description"?,"color"?}
Example
curl -s -X PATCH "https://getlinkcrypt.com/api/v1/tags/TAG_ID" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"color":"#EF4444"}'/api/v1/tags/:idDelete tag globally and remove associations.
Example
curl -s -X DELETE "https://getlinkcrypt.com/api/v1/tags/TAG_ID" -H "Authorization: Bearer YOUR_API_KEY"
Stats & analysis
/api/v1/analyze/statsLibrary overview: totals, links added (day/week/month), top domains & tags, tag growth.
Example
curl -s "https://getlinkcrypt.com/api/v1/analyze/stats" -H "Authorization: Bearer YOUR_API_KEY"
/api/v1/analyze/digestAI digest across your library (themes, habits, suggestions).
Body: {"period":"week"|"month"|"all","focus"?:string}
Example
curl -s -X POST "https://getlinkcrypt.com/api/v1/analyze/digest" -H "Authorization: Bearer YOUR_API_KEY" -H "Content-Type: application/json" -d '{"period":"week"}'Use with your AI agent
Step-by-step guides for connecting Claude, ChatGPT, and Obsidian-style workflows:
All responses are JSON. Errors: { "error": "message" } with appropriate HTTP status.