Skip to content

List a card's highlights

Passages highlighted in a link’s article, in the order they appear in it; ones not found in the saved article come last.

GET/v1/cards/{cardId}/highlights
Authorization
AuthorizationBearer token (OAuth access token or teakapi_ API key) · headerrequired

Bearer token. Accepts either an OAuth 2.0 access token (obtained via browser sign-in; expires after 1 hour and is refreshable) or a teakapi_ API key.

Path parameters
cardIdstringrequired
Responses
200

Highlights

itemsHighlight[]required
Show properties
Array of Highlight
idstringrequired
cardIdstringrequired
quotestringrequired

The highlighted text.

notestring | nullrequired
anchoredbooleanrequired

False while Teak hasn't found the quote in the card's saved article: an imported highlight waiting for the article, or one the article doesn't have.

sourcestringrequired

Where it was made: in Teak's reader, through this API, or by an import. Clients should accept values they don't know.

Allowed:readerapiimport
createdAtnumberrequired
updatedAtnumberrequired
404

Card not found

codestringrequired
errorstringrequired
retryAtnumber | null
Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://teakvault.com/api/v1/cards/string/highlights' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "items": [
    {
      "id": "string",
      "cardId": "string",
      "quote": "string",
      "note": "string",
      "anchored": true,
      "source": "reader",
      "createdAt": 0,
      "updatedAt": 0
    }
  ]
}

Was this page helpful?