Reorder pinned cards
Sets the order of the cards pinned to the top of the library. List every pinned card’s id once, first to last; get them with GET /v1/cards?pinned=true.
/v1/cards/pinned/orderAuthorizationBearer token (OAuth access token or teakapi_ API key) · headerrequiredBearer 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.
application/jsoncardIdsstring[]requiredEvery pinned card's id exactly once, first to last. At most 12.
The pinned cards in their new order
itemsCardListItem[]requiredShow propertiesHide properties
CardListItemaiSummarystring | nullaiTagsstring[]requiredaiTranscriptstring | nullWhat is said in the card: an audio or video file's transcript, a Vimeo video's captions, or a podcast episode's transcript.
appUrlstring<uri>requiredarchiveobject | nullA link's saved copy of its page, which Teak keeps privately and opens when the original is gone: full (text, styles and images, up to 20 MB) or text_only (the page was too large), its size in bytes and when it was taken. Null until the copy is saved, and for other cards. The copy itself stays in the app.
Show propertiesHide properties
bytesnumberrequiredcapturedAtnumberrequiredkindstringrequiredfulltext_onlynullarticleobject | nullA link's article, taken from its saved copy: its length in words and minutes to read. Null for other cards, until the article is ready, and for pages that aren't articles. Read it with GET /v1/cards/{cardId}/content?kind=article.
Show propertiesHide properties
readingMinutesnumberrequiredwordCountnumberrequirednullhighlightCountnumberPassages highlighted in a link's article, up to 200; 0 for other cards. List them with GET /v1/cards/{cardId}/highlights.
compactUrlstring | null256px rendition URL for small cards; present for image uploads.
contentstringcolorsobject[]Show propertiesHide properties
objecthexstringrequirednamestringcreatedAtnumberrequireddetailUrlstring | nullfileNamestring | nullfileSizenumber | nullmimeTypestring | nullfileExtensionstring | nullfileKindstring | nullfileLanguagestring | nullfilePreviewobject | nullfileHeightnumber | nullfileWidthnumber | nullaudioWaveformobject | nullAudio bar heights from 0 to 100: 45 for a grid card and 200 for a player. Null for other cards and audio saved before waveforms.
Show propertiesHide properties
detailnumber[]requiredgridnumber[]requiredvideoScrubobject | nullA horizontal JPEG strip of evenly spaced video frames for hover previews, frames * frameWidth wide. The URL is signed and expires. Null for other cards and videos saved before scrub strips.
Show propertiesHide properties
frameHeightnumberrequiredframeWidthnumberrequiredframesnumberrequiredurlstringrequiredfileUrlstring | nullidstringrequiredisDeletedbooleanisArchivedbooleanrequiredArchived cards are hidden from the library and listings unless you ask for them with archived.
completedAtnumber | nullWhen the link was marked read, watched, bought or otherwise done (POST /v1/cards/{cardId}/done), or null when it isn't. is:done and is:todo in q filter on it.
folderIdsstring[]Ids of the folders the card is in (at most 50).
isFavoritedbooleanrequiredisPinnedbooleanTrue while the card is pinned to the top of the library, at most 12 cards. Archiving or trashing a card unpins it.
isHiddenbooleanTrue when one of the card's tags is secret or hidden (any case). Hidden cards are left out of every list and search unless the search names one of those tags, as q=#secret, q=tag:hidden or tag=secret. Getting the card by id, /v1/cards/changes and exports still include it. Read-only: change the tags to change it.
linkPreviewImageUrlstring | nulllinkPreviewDescriptionstring | nulllinkFactsobject[]Show propertiesHide properties
objectlabelstringrequiredvaluestringrequiredlinkFaviconUrlstring | nulllinkPreviewTitlestring | nulllinkCategorystring | nullWhat a link is, such as article, movie, product or game, or null before Teak has read it. A plain string: new categories are added over time, so accept values you don't know.
linkPriceobject | nullA product link's price, read from the page: amount in the page's currency and currency as an ISO 4217 code, or null when the page didn't say which. Null for cards without a price. price: in q compares amount.
Show propertiesHide properties
amountnumberrequiredcurrencystring | nullrequiredlinkPreviewMediaobject[]Show propertiesHide properties
objecttypestringrequiredimagevideourlstringrequiredcontentTypestringwidthnumberheightnumberposterUrlstringposterContentTypestringposterWidthnumberposterHeightnumberlinkSiteNamestring | nulllinkAuthorstring | nulllinkPublisherstring | nulllinkPublishedAtstring | nullmetadataDescriptionstring | nullmetadataTitlestring | nullnotesstring | nullplaceholderUrlstring | null48px loading-placeholder rendition URL; present for image uploads.
metadataStatusstring | nullprocessingStatusobject | nullPer-stage processing state (classify, categorize, metadata, renderables, screenshot, archive, article), or null once nothing is tracked.
savedAtnumberWhen the card was last saved. It starts equal to createdAt and moves to the time of the save when you save the same link again (POST /v1/cards answers resaved: true). sort=newest and sort=oldest order by it. createdAt stays the date the card was first saved.
screenshotUrlstring | nullsourceTitlestring | nullThe title of the page the card was saved from, beside sourceUrl.
sourceUrlstring | nullThe page the card was saved from, such as the page a quote was selected on. Set when the card is created; site: matches its host when the card has no url. Not the same as source, the free label sent at create.
tagsstring[]requiredthumbnailOverriddenbooleanTrue when linkPreviewImageUrl is an image chosen for this link (PUT /v1/cards/{cardId}/thumbnail) rather than the one Teak found.
thumbnailUrlstring | nulltypestringrequiredupdatedAtnumberrequiredurlstring | nullINVALID_INPUT: cardIds doesn't list every pinned card exactly once
codestringrequirederrorstringrequiredretryAtnumber | null