Skip to Content
bookmark.land
Api reference

Bookmarks

Create, read, update, search, and delete bookmarks

List Bookmarks

GET /bookmarks

Scope: bookmarks:read

Query Parameters:

ParameterTypeDescription
limitnumberMax results to return (default: 50, max: 200)
collectionIdstringFilter by collection ID
domainstringFilter by domain (e.g., github.com)
typestringFilter by type: link, article, image, video, document
isFavoritebooleanFilter favorites only
tagstringFilter by tag name (case-insensitive). See Filtering by tag
tagIdstringFilter by tag ID. Use it for hierarchical tags such as dev/frontend. Don't combine with tag
sortBystringSort field: newest (default), oldest, title, domain
cursorstringOpaque 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:

FieldTypeDescription
data.dataarrayArray of bookmark objects
data.cursorstring | nullOpaque cursor to pass as the cursor query parameter for the next page. null when there are no more results
data.hasMorebooleanWhether more results exist beyond this page
data.truncatedbooleantrue when the sort covered only the newest matches and more matches exist that cannot be fetched (see below)
meta.requestIdstringUnique 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:

  • sortBy must be newest or oldest. They order by when the bookmark was added to bookmark.land (createdAt), not by savedAt, so imported bookmarks follow their import order. Any other sort fails with 400 TAG_FILTER_SORT_UNSUPPORTED.
  • Pass tag or tagId, not both (400 TAG_FILTER_CONFLICT).
  • The other filters are applied to each page, so a page can hold fewer than limit bookmarks, or none, while hasMore is true. Keep following cursor until it is null. truncated is always false.
  • 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.

FieldTypeDescription
metadataStatusstringpending, success or failed: whether the title, description and images have been fetched
linkStatusstringunknown, ok, broken or checking: the result of the last visit to the page
lastCheckedAtstringWhen the page was last visited (ISO 8601)
httpStatusCodenumberHTTP status of the last visit
lastCheckErrorKindstringWhy the last visit failed: timeout, abort, dns, ssrf, tls, http, blocked or unknown
embeddablebooleanfalse when the site refuses to be shown in a frame
savedAtstringWhen the bookmark was saved (ISO 8601). Differs from createdAt for imported bookmarks
siteRiskobjectPresent only when the bookmark's site shows a Site security label in the app. See Site Security

Get Bookmark

GET /bookmarks/:id

Scope: bookmarks:read

Response: single bookmark object (same shape as list items)


Create Bookmark

POST /bookmarks

Scope: 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
}
FieldTypeRequiredDescription
urlstringYesThe URL to bookmark
titlestringNoOverride the auto-detected title
descriptionstringNoOverride the auto-detected description
notestringNoPersonal notes
tagsstring[]NoTags to apply
collectionIdstringNoCollection to add to
typestringNoContent type override
isFavoritebooleanNoMark as favorite (default: false)
onDuplicatestringNoWhat 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"
  }
}
FieldTypeDescription
bookmarkIdstringThe new bookmark, the restored bookmark, or (with onDuplicate: "return") the existing one
duplicatebooleantrue when the URL was already saved and not in the trash
restoredbooleantrue when the URL was in your trash and that bookmark was restored
createdbooleantrue 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:

onDuplicateResult
create (default)A second copy is saved: { "bookmarkId": "<new id>", "duplicate": true, "restored": false, "created": true }
returnNothing 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/:id

Scope: bookmarks:write

Body: any subset of bookmark fields (partial update)

{
  "title": "Updated Title",
  "note": "New notes"
}

Delete Bookmark (Soft)

DELETE /bookmarks/:id

Scope: bookmarks:write

Moves the bookmark to trash. It can be restored within 30 days.


List Trashed Bookmarks

GET /bookmarks/trashed

Scope: 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:

ParameterTypeDescription
limitnumberMax results per page (default: 50, max: 200)
cursorstringOpaque 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"
  }
}
FieldTypeDescription
trashedAtstringWhen the bookmark was moved to the trash (ISO 8601). Absent for bookmarks trashed before this date was recorded
deletesAtstringWhen 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/restore

Scope: bookmarks:write

Restores a trashed bookmark. Find trashed bookmark ids with List Trashed Bookmarks.


Permanently Delete Bookmark

DELETE /bookmarks/:id/permanent

Scope: destructive

Permanently deletes the bookmark and all associated data (tags, highlights, uploads). This cannot be undone.


Set Favorite

PUT /bookmarks/:id/favorite

Scope: bookmarks:write

Body:

{
  "isFavorite": true
}

Move Bookmark

POST /bookmarks/:id/move

Scope: bookmarks:write

Body:

{
  "collectionId": "col_xyz"
}

Pass null for collectionId to move to Unsorted.


Search Bookmarks

GET /bookmarks/search

Scope: bookmarks:read

Query Parameters:

ParameterTypeRequiredDescription
qstringYesSearch 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)
limitnumberNoMaximum 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/domains

Scope: bookmarks:read

Returns all domains with bookmark counts.

{
  "data": [
    { "domain": "github.com", "count": 42 },
    { "domain": "stackoverflow.com", "count": 15 }
  ]
}

Get Stats

GET /bookmarks/stats

Scope: 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:

FieldTypeDescription
levelstringvulnerable (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)
findingCountnumberNumber of findings behind the label

Sites with no known issues, or not scanned yet, have no siteRisk.

List Vulnerable Bookmarks

GET /bookmarks/vulnerable

Scope: bookmarks:read

Your non-trashed bookmarks whose site has a siteRisk, newest first. Returns at most 100 bookmarks and has no pagination.

Query Parameters:

ParameterTypeDescription
limitnumberMax results (default and maximum: 100)
collectionIdstringFilter by collection ID
domainstringFilter by domain
typestringFilter 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-security

Scope: 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"
      }
    ]
  }
}
FieldTypeDescription
riskLevelstringvulnerable, endOfLife, possiblyAffected, noKnownIssues or unknown (not scanned yet, or nothing recognised)
scanOutcomestringok, blocked (the site refused the scan) or failed. Absent before the first scan
lastScannedAtstringWhen the site was last scanned (ISO 8601)
detectedSoftwarearrayProducts and versions the site reports
findings[].levelstringvulnerable, endOfLife or possiblyAffected
findings[].cycle, findings[].eolDatestringThe release line and its end-of-life date, for endOfLife findings
findings[].cveId, findings[].cvssstring, numberThe CVE and its CVSS score, for vulnerable and possiblyAffected findings
findings[].kevbooleantrue 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:

  1. Request an upload URL (creates a server-side reservation)
  2. Upload the image binary directly to the storage URL
  3. Claim the upload for the reservation
  4. 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-url

Scope: 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.jpg

Response:

{
  "storageId": "kg2abc123..."
}

Claim the Upload

POST /bookmarks/:id/cover/claim

Scope: bookmarks:write

Ties the uploaded file to your reservation. The cover isn't set yet.

Body:

{
  "reservationId": "res_abc123",
  "storageId": "kg2abc123..."
}
FieldTypeRequiredDescription
reservationIdstringYesReservation ID from the upload URL step
storageIdstringYesStorage 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/cover

Scope: bookmarks:write

Body:

{
  "reservationId": "res_abc123",
  "fileName": "cover.jpg"
}
FieldTypeRequiredDescription
reservationIdstringYesReservation ID of a claimed upload. The server reads the stored file from it
fileNamestringNoFile 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/cover

Scope: bookmarks:write

Removes the cover image and frees the storage quota.

Response:

{
  "data": {
    "success": true
  }
}

Cover Image Errors

CodeStatusDescription
INVALID_FILE_TYPE422File is not JPEG, PNG, GIF, or WebP
FILE_TOO_LARGE422File exceeds 10 MB
STORAGE_LIMIT_REACHED422Total storage quota (500 MB) exceeded
RESERVATION_INVALID400Reservation expired, already used, or doesn't match this bookmark
TOO_MANY_PENDING_UPLOADS4295 outstanding upload reservations already exist

Bookmark Tags

List Tags on a Bookmark

GET /bookmarks/:id/tags

Scope: 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/tags

Scope: tags:write

Body:

{
  "name": "important"
}

Remove Tag from Bookmark

DELETE /bookmarks/:id/tags/:tagId

Scope: tags:write

List Bookmarks by Tag Name

Also documented under Tags.

GET /tags/:name/bookmarks

Scope: bookmarks:read

Query Parameters:

ParameterTypeDescription
limitnumberMax 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/bookmarks

Scope: bookmarks:read

Query Parameters:

ParameterTypeDescription
limitnumberMax 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 }.

On this page