Upload the page a link was saved from
For a browser extension saving the page someone is looking at: the rendered HTML, gzipped, becomes the link’s saved copy, so pages behind a sign-in or built by scripts are kept as they were seen. Teak keeps a private copy of each link’s page either way; without a snapshot it fetches the page itself.
/v1/page-snapshots/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.
application/jsonbytesintegerrequiredThe gzipped page's exact size in bytes; at most 20971520 (20 MiB).
A signed URL. PUT the gzipped page to uploadUrl with Content-Type: application/gzip and exactly bytes bytes, then pass fileKey as pageSnapshotKey to POST /v1/cards
expiresInnumberrequiredfileKeystringrequiredmaxFileSizenumberrequiredmethodstringrequiredPUTuploadUrlstring<uri>requiredINVALID_INPUT: bytes is missing or not a whole number
codestringrequirederrorstringrequiredretryAtnumber | nullPAGE_SNAPSHOT_TOO_LARGE: over 20 MiB gzipped
codestringrequirederrorstringrequiredretryAtnumber | nullRATE_LIMITED: 60 snapshots a minute; retryAt and Retry-After say when to try again
codestringrequirederrorstringrequiredretryAtnumber | null