Skip to content

Get a card's text

GET/v1/cards/{cardId}/content
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

The card's full stored text

cardIdstringrequired
kindstringrequired

document: text extracted from the card's file (PDF, Word, PowerPoint, text or code). transcript: the speech in its audio or video. content: a text or quote card's written text.

Allowed:documenttranscriptcontent
textstringrequired
charCountnumberrequired

Characters in the full stored text

truncatedbooleanrequired

True when text is not the document's whole text. Teak keeps the first 500 pages of a PDF and at most 524,288 characters; when the stored text can't be read, its first 32 KiB is returned and text is shorter than charCount

404

Card not found, or NO_CONTENT: the card has no stored text

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://teakvault.com/api/v1/cards/string/content' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "cardId": "string",
  "kind": "document",
  "text": "string",
  "charCount": 0,
  "truncated": true
}

Was this page helpful?