Bookmarks
Create, read, update, search, and delete bookmarks
List Bookmarks
GET /bookmarksScope: bookmarks:read
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results to return (default: 50, max: 200) |
collectionId | string | Filter by collection ID |
domain | string | Filter by domain (e.g., github.com) |
type | string | Filter by type: link, article, image, video, document |
isFavorite | boolean | Filter favorites only |
tag | string | Filter by tag name (case-insensitive). See Filtering by tag |
tagId | string | Filter by tag ID. Use it for hierarchical tags such as dev/frontend. Don't combine with tag |
sortBy | string | Sort field: newest (default), oldest, title, domain |
cursor | string | Opaque pagination cursor from a previous response. Pass to fetch the next page |
Response:
{
"data": {
"data": [
{
"id": "abc123",
"url": "https://example.com",
"title": "Example Site",
"description": "An example website",
"excerpt": "",
"note": "My personal notes",
"type": "link",
"isFavorite": false,
"tags": ["dev", "reference"],
"collectionId": "col_xyz",
"domain": "example.com",
"favicon": "https://example.com/favicon.ico",
"coverImage": null,
"clickCount": 0,
"metadataStatus": "success",
"linkStatus": "ok",
"lastCheckedAt": "2026-01-15T12:00:00Z",
"httpStatusCode": 200,
"embeddable": true,
"siteRisk": { "level": "endOfLife", "findingCount": 1 },
"savedAt": "2026-01-15T10:30:00Z",
"createdAt": "2026-01-15T10:30:00Z"
}
],
"cursor": "eyJwb3MiOjUwfQ",
"hasMore": true,
"truncated": false
},
"meta": {
"requestId": "req_abc123"
}
}Pagination:
The response data object includes cursor-based pagination fields alongside the bookmark array:
| Field | Type | Description |
|---|---|---|
data.data | array | Array of bookmark objects |
data.cursor | string | null | Opaque cursor to pass as the cursor query parameter for the next page. null when there are no more results |
data.hasMore | boolean | Whether more results exist beyond this page |
data.truncated | boolean | true when the sort covered only the newest matches and more matches exist that cannot be fetched (see below) |
meta.requestId | string | Unique request identifier |
All sort modes (newest, oldest, title, domain) return the same envelope shape and page with cursor, with one exception: a title or domain sort combined with isFavorite=true (and no domain, collectionId or type filter). That combination sorts only a window of the most recently saved favorites and cannot continue, so cursor is null, hasMore is false, and truncated is true when more favorites exist beyond that window. Use newest or oldest to page through every favorite.
When two or more of domain, collectionId, type and isFavorite are combined, only the first is looked up directly and the rest are applied to each page. On a large library a page can then hold fewer than limit bookmarks, or none, while hasMore is true. Keep following cursor until it is null.
Filtering by tag
tag or tagId lists one tag's bookmarks with the same envelope and cursor as any other listing, and combines with collectionId, domain, type and isFavorite. A few rules differ:
sortBymust benewestoroldest. They order by when the bookmark was added to bookmark.land (createdAt), not bysavedAt, so imported bookmarks follow their import order. Any other sort fails with400 TAG_FILTER_SORT_UNSUPPORTED.- Pass
tagortagId, not both (400 TAG_FILTER_CONFLICT). - The other filters are applied to each page, so a page can hold fewer than
limitbookmarks, or none, whilehasMoreistrue. Keep followingcursoruntil it isnull.truncatedis alwaysfalse. - A cursor only works with the same tag, filters and sort it came from. Anything else fails with
400 PAGINATION_CURSOR_INVALID. - A tag that doesn't exist returns an empty list.
curl "https://api.bookmark.land/v1/bookmarks?tag=work&domain=github.com&limit=100" \
-H "Authorization: Bearer bkl_your_token"Bookmark fields
Every endpoint that returns bookmarks (list, get, search, the trash list, the Vulnerable list, and the collection, tag and smart-folder bookmark lists) uses the same shape. The trash list adds trashedAt and deletesAt. Fields with no value are left out.
| Field | Type | Description |
|---|---|---|
metadataStatus | string | pending, success or failed: whether the title, description and images have been fetched |
linkStatus | string | unknown, ok, broken or checking: the result of the last visit to the page |
lastCheckedAt | string | When the page was last visited (ISO 8601) |
httpStatusCode | number | HTTP status of the last visit |
lastCheckErrorKind | string | Why the last visit failed: timeout, abort, dns, ssrf, tls, http, blocked or unknown |
embeddable | boolean | false when the site refuses to be shown in a frame |
savedAt | string | When the bookmark was saved (ISO 8601). Differs from createdAt for imported bookmarks |
siteRisk | object | Present only when the bookmark's site shows a Site security label in the app. See Site Security |
Get Bookmark
GET /bookmarks/:idScope: bookmarks:read
Response: single bookmark object (same shape as list items)
Create Bookmark
POST /bookmarksScope: bookmarks:write
Body:
{
"url": "https://example.com",
"title": "Example Site",
"description": "Optional description",
"note": "Optional personal note",
"tags": ["dev", "reference"],
"collectionId": "col_xyz",
"type": "link",
"isFavorite": false
}| Field | Type | Required | Description |
|---|---|---|---|
url | string | Yes | The URL to bookmark |
title | string | No | Override the auto-detected title |
description | string | No | Override the auto-detected description |
note | string | No | Personal notes |
tags | string[] | No | Tags to apply |
collectionId | string | No | Collection to add to |
type | string | No | Content type override |
isFavorite | boolean | No | Mark as favorite (default: false) |
onDuplicate | string | No | What to do when the URL is already saved: create (default) saves a second copy, return returns the existing bookmark. Can also be sent as the ?onDuplicate= query parameter. If you send both, they must match |
Response:
{
"data": {
"bookmarkId": "abc123",
"duplicate": false,
"restored": false,
"created": true
},
"meta": {
"requestId": "req_abc123"
}
}| Field | Type | Description |
|---|---|---|
bookmarkId | string | The new bookmark, the restored bookmark, or (with onDuplicate: "return") the existing one |
duplicate | boolean | true when the URL was already saved and not in the trash |
restored | boolean | true when the URL was in your trash and that bookmark was restored |
created | boolean | true when a new bookmark was saved. false when one was restored or returned |
URLs are compared after normalization, so http://www.example.com/page/?utm_source=x#top matches https://example.com/page: http becomes https, a leading www., tracking parameters such as utm_source, the #fragment and a trailing slash are ignored.
If the URL is in your trash, that bookmark is restored instead of creating a new one (restored: true, created: false). This happens with either onDuplicate value.
If the URL is already saved, what happens depends on onDuplicate:
onDuplicate | Result |
|---|---|
create (default) | A second copy is saved: { "bookmarkId": "<new id>", "duplicate": true, "restored": false, "created": true } |
return | Nothing is written and the existing bookmark comes back: { "bookmarkId": "<existing id>", "duplicate": true, "restored": false, "created": false } |
With return, the other fields in the body (title, tags, collectionId and so on) don't change the existing bookmark. Use PATCH /bookmarks/:id to update it. They are still validated first, though: a collectionId that doesn't exist or is in the trash fails the request instead of returning the existing bookmark. Returning an existing bookmark doesn't count toward your plan's bookmark limit, so it works even when the limit is reached.
curl -X POST "https://api.bookmark.land/v1/bookmarks?onDuplicate=return" \
-H "Authorization: Bearer $BOOKMARK_LAND_TOKEN" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com"}'Update Bookmark
PATCH /bookmarks/:idScope: bookmarks:write
Body: any subset of bookmark fields (partial update)
{
"title": "Updated Title",
"note": "New notes"
}Delete Bookmark (Soft)
DELETE /bookmarks/:idScope: bookmarks:write
Moves the bookmark to trash. It can be restored within 30 days.
List Trashed Bookmarks
GET /bookmarks/trashedScope: bookmarks:read
Bookmarks in your trash, most recently trashed first. Use it to find the id to pass to Restore Bookmark or Permanently Delete Bookmark.
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results per page (default: 50, max: 200) |
cursor | string | Opaque pagination cursor from a previous response. Empty or absent starts at the first page |
Response: the same envelope and bookmark shape as List Bookmarks, with two extra fields on each bookmark:
{
"data": {
"data": [
{
"id": "abc123",
"url": "https://example.com",
"title": "Example Site",
"domain": "example.com",
"tags": ["dev"],
"isFavorite": false,
"type": "link",
"createdAt": "2026-01-15T10:30:00Z",
"trashedAt": "2026-10-20T09:00:00Z",
"deletesAt": "2026-11-19T09:00:00Z"
}
],
"cursor": "eyJwb3MiOjUwfQ",
"hasMore": true,
"truncated": false
},
"meta": {
"requestId": "req_abc123"
}
}| Field | Type | Description |
|---|---|---|
trashedAt | string | When the bookmark was moved to the trash (ISO 8601). Absent for bookmarks trashed before this date was recorded |
deletesAt | string | When the bookmark will be permanently deleted (ISO 8601), 30 days after it was trashed |
A page can hold fewer than limit bookmarks, or none, while hasMore is true, because bookmarks already being permanently deleted are left out. Keep following cursor until it is null. truncated is always false.
Restore Bookmark
POST /bookmarks/:id/restoreScope: bookmarks:write
Restores a trashed bookmark. Find trashed bookmark ids with List Trashed Bookmarks.
Permanently Delete Bookmark
DELETE /bookmarks/:id/permanentScope: destructive
Permanently deletes the bookmark and all associated data (tags, highlights, uploads). This cannot be undone.
Set Favorite
PUT /bookmarks/:id/favoriteScope: bookmarks:write
Body:
{
"isFavorite": true
}Move Bookmark
POST /bookmarks/:id/moveScope: bookmarks:write
Body:
{
"collectionId": "col_xyz"
}Pass null for collectionId to move to Unsorted.
Search Bookmarks
GET /bookmarks/searchScope: bookmarks:read
Query Parameters:
| Parameter | Type | Required | Description |
|---|---|---|---|
q | string | Yes | Search query (alias: query). Searches active bookmarks across title, description, URL, tags, notes, highlights, and readable page text. Supports composable operators (#tag, -exclude, domain:, type:, is:, saved:, in:title|url|notes|highlights|page, title:, url:, collection:, quoted phrases, bare hostnames, and pasted URLs) |
limit | number | No | Maximum number of results to return (1–200, default 50) |
Response: data is the array of matching bookmarks. truncated (beside data, not inside it) is true when the search stopped at one of its read limits, so more matches may exist: narrow the query to find them. It is also true when limit left out matches the search found; raising limit (up to 200) returns them. It is also true when some returned bookmarks have no siteRisk because their Site was not checked within the limit; for those bookmarks a missing siteRisk does not mean the site is safe.
{
"data": [ { "id": "...", "title": "..." } ],
"truncated": false,
"meta": { "requestId": "..." }
}List Domains
GET /bookmarks/domainsScope: bookmarks:read
Returns all domains with bookmark counts.
{
"data": [
{ "domain": "github.com", "count": 42 },
{ "domain": "stackoverflow.com", "count": 15 }
]
}Get Stats
GET /bookmarks/statsScope: bookmarks:read
{
"data": {
"total": 1234,
"favorites": 89,
"unsorted": 45,
"typeCounts": {
"link": 800,
"article": 300,
"video": 100,
"image": 30,
"document": 4
},
"noTags": 200
}
}Site Security
bookmark.land scans each bookmarked site's homepage for the software it reports and flags sites running versions with known vulnerabilities or past end-of-life. The API returns these results only for your own bookmarks. You can't look up a site by name.
siteRisk on a bookmark:
| Field | Type | Description |
|---|---|---|
level | string | vulnerable (a known CVE affects the version), endOfLife (the version no longer gets security fixes) or possiblyAffected (a CVE matches a Linux distribution's package version, which may already carry the fix) |
findingCount | number | Number of findings behind the label |
Sites with no known issues, or not scanned yet, have no siteRisk.
List Vulnerable Bookmarks
GET /bookmarks/vulnerableScope: bookmarks:read
Your non-trashed bookmarks whose site has a siteRisk, newest first. Returns at most 100 bookmarks and has no pagination.
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results (default and maximum: 100) |
collectionId | string | Filter by collection ID |
domain | string | Filter by domain |
type | string | Filter by type: link, article, image, video, document |
Response: array of bookmarks (same shape as list items)
Rate limit: 30 requests per minute, like search.
Get a Bookmark's Site Security
GET /bookmarks/:id/site-securityScope: bookmarks:read
The full result for the bookmark's site. The app shows the same details when you click the label.
{
"data": {
"site": "example.com",
"riskLevel": "endOfLife",
"scanOutcome": "ok",
"lastScannedAt": "2026-10-30T08:00:00.000Z",
"detectedSoftware": [
{ "product": "PHP", "version": "7.4.33" }
],
"findings": [
{
"product": "PHP",
"version": "7.4.33",
"level": "endOfLife",
"cycle": "7.4",
"eolDate": "2022-11-28"
}
]
}
}| Field | Type | Description |
|---|---|---|
riskLevel | string | vulnerable, endOfLife, possiblyAffected, noKnownIssues or unknown (not scanned yet, or nothing recognised) |
scanOutcome | string | ok, blocked (the site refused the scan) or failed. Absent before the first scan |
lastScannedAt | string | When the site was last scanned (ISO 8601) |
detectedSoftware | array | Products and versions the site reports |
findings[].level | string | vulnerable, endOfLife or possiblyAffected |
findings[].cycle, findings[].eolDate | string | The release line and its end-of-life date, for endOfLife findings |
findings[].cveId, findings[].cvss | string, number | The CVE and its CVSS score, for vulnerable and possiblyAffected findings |
findings[].kev | boolean | true when the CVE is in CISA's Known Exploited Vulnerabilities catalog |
Scans are passive: one ordinary request for the homepage, reading what the site already sends to any visitor. Sites are rescanned every week by default.
Cover Image
Upload, replace, or remove a bookmark's cover image. Uses a four-step upload flow:
- Request an upload URL (creates a server-side reservation)
- Upload the image binary directly to the storage URL
- Claim the upload for the reservation
- Save it as the bookmark's cover
Requirements: A paid plan (Pro). Free accounts cannot upload cover images.
Limits: 10 MB per file, 500 MB total storage. Accepted types: JPEG, PNG, GIF, WebP.
Get Upload URL
POST /bookmarks/:id/cover/upload-urlScope: bookmarks:write
Response:
{
"data": {
"uploadUrl": "https://storage.example.com/upload?token=...",
"reservationId": "res_abc123"
}
}The uploadUrl is a temporary, single-use URL valid for 15 minutes. You may have up to 5 outstanding reservations at a time. Over that, the request fails with 429 TOO_MANY_PENDING_UPLOADS and a Retry-After header: the seconds until your oldest reservation expires.
Upload the Image
Upload the binary file directly to the uploadUrl returned above. This request goes to the storage service, not the API:
curl -X POST "$UPLOAD_URL" \
-H "Content-Type: image/jpeg" \
--data-binary @photo.jpgResponse:
{
"storageId": "kg2abc123..."
}Claim the Upload
POST /bookmarks/:id/cover/claimScope: bookmarks:write
Ties the uploaded file to your reservation. The cover isn't set yet.
Body:
{
"reservationId": "res_abc123",
"storageId": "kg2abc123..."
}| Field | Type | Required | Description |
|---|---|---|---|
reservationId | string | Yes | Reservation ID from the upload URL step |
storageId | string | Yes | Storage ID returned from the upload step |
Response:
{
"data": { "success": true }
}A reservation can be claimed once. Claiming it again fails with 409 RESERVATION_ALREADY_CLAIMED, so a client retrying this step can treat that error as success and go on to save. Other errors: RESERVATION_INVALID, RESERVATION_EXPIRED (more than 15 minutes since the upload URL), STORAGE_ID_ALREADY_CLAIMED and UPLOAD_NOT_FOUND.
Save Cover Image
POST /bookmarks/:id/coverScope: bookmarks:write
Body:
{
"reservationId": "res_abc123",
"fileName": "cover.jpg"
}| Field | Type | Required | Description |
|---|---|---|---|
reservationId | string | Yes | Reservation ID of a claimed upload. The server reads the stored file from it |
fileName | string | No | File name to keep with the image |
A reservation that was never claimed fails with 400 UPLOAD_NOT_CLAIMED.
The server validates the file type, size, and storage quota before accepting. If the bookmark already has a cover image, the old one is replaced and its storage is freed.
Response:
{
"data": {
"url": "https://storage.example.com/api/storage/abc-123"
}
}Remove Cover Image
DELETE /bookmarks/:id/coverScope: bookmarks:write
Removes the cover image and frees the storage quota.
Response:
{
"data": {
"success": true
}
}Cover Image Errors
| Code | Status | Description |
|---|---|---|
INVALID_FILE_TYPE | 422 | File is not JPEG, PNG, GIF, or WebP |
FILE_TOO_LARGE | 422 | File exceeds 10 MB |
STORAGE_LIMIT_REACHED | 422 | Total storage quota (500 MB) exceeded |
RESERVATION_INVALID | 400 | Reservation expired, already used, or doesn't match this bookmark |
TOO_MANY_PENDING_UPLOADS | 429 | 5 outstanding upload reservations already exist |
Bookmark Tags
List Tags on a Bookmark
GET /bookmarks/:id/tagsScope: bookmarks:read
Response:
{
"data": [
{
"id": "tag_abc",
"name": "development",
"color": "blue",
"parentId": null,
"count": 42,
"createdAt": "2026-01-10T08:00:00Z"
}
],
"meta": {
"requestId": "req_abc123"
}
}Add Tag to Bookmark
POST /bookmarks/:id/tagsScope: tags:write
Body:
{
"name": "important"
}Remove Tag from Bookmark
DELETE /bookmarks/:id/tags/:tagIdScope: tags:write
List Bookmarks by Tag Name
Also documented under Tags.
GET /tags/:name/bookmarksScope: bookmarks:read
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results to return (default: 50, max: 200) |
Response:
{
"data": {
"bookmarks": [ ... ],
"tag": {
"id": "tag_abc",
"name": "development",
"color": "blue",
"parentId": null,
"count": 42,
"createdAt": "2026-01-10T08:00:00Z"
}
},
"meta": {
"requestId": "req_abc123"
}
}The tag field is null if the tag name does not match any existing tag.
List Bookmarks by Tag ID
Also documented under Tags.
GET /tags/by-id/:id/bookmarksScope: bookmarks:read
Query Parameters:
| Parameter | Type | Description |
|---|---|---|
limit | number | Max results to return (default: 50, max: 200) |
Same as above but uses the tag's ID instead of its name. Useful for hierarchical tags with / in their names.
Response: same shape as GET /tags/:name/bookmarks — { data: { bookmarks, tag }, meta }.