Bulk Operations
Perform actions on multiple bookmarks at once
Bulk endpoints let you act on up to 50 bookmarks in a single request. ids must hold 1 to 50 strings.
Each response counts the bookmarks that actually changed, not the IDs you sent. IDs that are malformed, don't exist or belong to someone else are skipped without an error, and so are bookmarks already in the requested state (already trashed, already a favorite, already in that collection, already tagged, or not tagged). A count lower than ids.length is normal, and the response doesn't say which IDs were skipped.
A bulk request counts as ids.length requests against your per-minute and daily rate limits.
Bulk Trash
POST /bookmarks/bulk/trashScope: bookmarks:write
Move multiple bookmarks to trash.
Body:
{
"ids": ["bk_abc", "bk_def", "bk_ghi"]
}Response: trashed is the number of bookmarks moved to trash.
{ "data": { "trashed": 3 } }Bulk Favorite
POST /bookmarks/bulk/favoriteScope: bookmarks:write
Set or unset favorite on multiple bookmarks.
Body:
{
"ids": ["bk_abc", "bk_def"],
"isFavorite": true
}Response: updated is the number of bookmarks whose favorite flag changed.
{ "data": { "updated": 2 } }Bulk Move
POST /bookmarks/bulk/moveScope: bookmarks:write
Move multiple bookmarks to a collection.
Body:
{
"ids": ["bk_abc", "bk_def"],
"collectionId": "col_xyz"
}Pass null for collectionId to move to Unsorted.
Response: moved is the number of bookmarks that changed collection.
{ "data": { "moved": 2 } }Bulk Tag
POST /bookmarks/bulk/tagScope: tags:write
Add a tag to multiple bookmarks.
Body:
{
"ids": ["bk_abc", "bk_def"],
"name": "important"
}The tag is created if it doesn't exist.
Response: addedCount is the number of bookmarks that got the tag. tagId is the tag that was found or created; pass it to Bulk Untag.
{ "data": { "tagId": "tag_xyz", "addedCount": 2 } }Bulk Untag
DELETE /bookmarks/bulk/tagScope: tags:write
Remove a tag from multiple bookmarks.
Body:
{
"ids": ["bk_abc", "bk_def"],
"tagId": "tag_xyz"
}Response: removedCount is the number of bookmarks that had the tag removed.
{ "data": { "removedCount": 2 } }Empty Trash
DELETE /bookmarks/trashScope: destructive
Permanently deletes all trashed bookmarks. This cannot be undone.
Response:
{ "data": { "deleted": 200, "hasMore": true } }| Field | Type | Description |
|---|---|---|
deleted | number | Bookmarks deleted by this request (at most 200) |
hasMore | boolean | true when trashed bookmarks remain beyond this batch. They are deleted in the background, so watch GET /bookmarks/trashed empty instead of calling this again. false means no batch is left to start, not that every deletion has finished: a bookmark with many highlights or tags can take a little longer, and it's already hidden from the trash |
This is a heavy endpoint with a rate limit of 2 requests per minute.