Skip to main content
New to Corsair? See API access, authentication, and error handling.

Posts

add

posts.add Save a new bookmark; fails when the url is already saved. With replace: 'yes', rewrite the saved bookmark for the url instead (omitted fields are cleared) Risk: write
Input Creates a bookmark, and fails (result_code other than done, raised as an error) when the url is already saved. replace: yes updates the saved bookmark instead and fails when there is none; it rewrites every field, so pass the ones to keep. description is required, tags is sent comma delimited, shared: no makes the bookmark private and toread: yes marks it unread. Output

all

posts.all List bookmarks by offset, up to 1000 per page. Follow nextStart until it is null Risk: read
Input A bare array of bookmarks, not wrapped in an object. start is the offset, results the page size (default 1000, maximum 100000), and fromdt/todt bound the saved time. The plugin adds nextStart, the next offset while the page came back full and null on the last page. Output

allHashes

posts.allHashes List every bookmark as a URL MD5 and a change signature, to find what changed without downloading all bookmarks Risk: read
Input: empty object Answers { hashes }, one { url, meta } pair per bookmark: the URL MD5 (the post hash) and the change signature that meta: yes returns elsewhere. Compare it with a stored copy, then fetch the changed ones with posts.get and hashes. Output

dates

posts.dates Count the bookmarks saved on each day Risk: read
Input Answers { dates }, a map from UTC day to the number of bookmarks saved on it, with an optional tag filter. Output

delete

posts.delete Delete the bookmark for a url. This cannot be undone Risk: destructive · Irreversible
Input Deletes the bookmark for a url; a url that is not saved fails. There is no undo in the API, and the plugin never replays the call after a network failure or a 5xx. Output

get

posts.get Get the bookmarks of one day, the bookmarks with a tag, the bookmark for a url (empty when it is not saved) or the bookmarks for URL MD5 hashes Risk: read
Input url fetches one bookmark regardless of date (posts: [] when it is not saved); else hashes takes URL MD5 values; else dt (a day, CCYY-MM-DD) lists that day, filtered by tag; with no argument at all, the most recent day that has a bookmark. A tag or meta alone searches every day. meta: yes adds the change signature. shared and toread arrive as the strings yes/no, and others counts the other users who saved the url. Output

lastUpdated

posts.lastUpdated Get the time of the last bookmark change, to tell whether posts.all needs to be read again Risk: read
Input: empty object Answers { update_time }, the UTC time a bookmark was last added or changed: 1970-01-01T00:00:00Z for an account with no bookmarks. Output

recent

posts.recent List the most recent bookmarks, up to 100, optionally with one tag. There is no offset Risk: read
Input Up to count recent bookmarks, default 15, maximum 100, with an optional tag filter. There is no offset, so this is the first page only. Output

suggest

posts.suggest Get popular and recommended tags for a url Risk: read
Input Popular and recommended tags for a url, merged into { popular, recommended } lists whatever order linkhut answers with. Output

Tags

delete

tags.delete Delete a tag from every bookmark. The bookmarks stay, and the tag cannot be restored Risk: destructive · Irreversible
Input Removes a tag from every bookmark. The bookmarks stay; the tag cannot be restored, and the plugin never replays the call after a failure. Answers done even when no bookmark had it. Output

get

tags.get List every tag with the number of bookmarks that carry it Risk: read
Input: empty object A flat map from tag name to the number of bookmarks that carry it. Output: Record<string, number>

rename

tags.rename Rename a tag on every bookmark that carries it Risk: write
Input Renames old to new on every bookmark that carries the tag. Answers done even when no bookmark had it. Output