Upload a link's image
Starts replacing a link card’s image. Works at the free plan’s card limit: no card is created.
/v1/cards/{cardId}/thumbnail/uploadAuthorizationBearer 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.
cardIdstringrequiredapplication/jsonfileSizenumberrequiredBytes; at most 20971520 (20 MB).
mimeTypestringrequiredJPEG, PNG, WebP, GIF (its first frame) or AVIF. SVG and HEIC are refused.
image/jpegimage/pngimage/webpimage/gifimage/avifA signed URL. PUT the bytes to uploadUrl with the same Content-Type, then pass fileKey to PUT /v1/cards/{cardId}/thumbnail
expiresInnumberrequiredfileKeystringrequiredmaxFileSizenumberrequiredmethodstringrequiredPUTuploadUrlstring<uri>requiredTYPE_MISMATCH: not a link card. UNSUPPORTED_TYPE: not an accepted image type (JPEG, PNG, WebP, GIF (its first frame) or AVIF. SVG and HEIC are refused.). INVALID_INPUT: the image couldn't be read, or is over 10,000 pixels on a side
codestringrequirederrorstringrequiredretryAtnumber | nullThe card, or the upload for it, was not found
codestringrequirederrorstringrequiredretryAtnumber | nullThe card is in Trash
codestringrequirederrorstringrequiredretryAtnumber | nullFILE_TOO_LARGE: images must be under 20 MB
codestringrequirederrorstringrequiredretryAtnumber | nullRATE_LIMITED: 20 image changes a minute; retryAt and Retry-After say when to try again
codestringrequirederrorstringrequiredretryAtnumber | null