Like or unlike an article

Add an article to your Liked list, or remove it.

PUT https://cotlet.dev/api/v1/instapaper/bookmarks/{bookmark_id}/liked

write

Sets the liked flag on one article and returns it. It does not change whether the article is in Home, the Archive or a folder. Reaches no one and is undone with the same call, so it runs without asking.

Parameters

Parameters: set_liked
NameTypeDescription
bookmark_id integer required integer Bookmark ID from list_bookmarks.
liked boolean required boolean true to like, false to unlike.

Request

cURL
curl -X PUT https://cotlet.dev/api/v1/instapaper/bookmarks/1/liked \
  -H "Authorization: Bearer $COTLET_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"liked":true}'
Python
result = client.call("instapaper", "set_liked", {"bookmark_id":1,"liked":True})
Node.js
const result = await cotlet.call('instapaper', 'set_liked', {"bookmark_id":1,"liked":true});
CLI
cotlet call instapaper set_liked --data '{"bookmark_id":1,"liked":true}'

Example response

JSON

{
  "bookmark_id": 1893240551,
  "title": "How to Salt Pasta Water",
  "liked": true,
  "archived": false
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.