Skip to content

Get a folder

GET/v1/folders/{folderId}
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
folderIdstringrequired
Responses
200

Folder

idstringrequired
namestringrequired
colorstring | nullrequired
Allowed:grayredorangeambergreentealbluevioletpinknull
kindstringrequired

manual folders hold the cards put in them; smart folders show the cards that match their query when listed.

Allowed:manualsmart
querystring | nullrequired

A smart folder's search (the same grammar as q), written the canonical way; null for a manual folder.

cardCountnumber | nullrequired

Cards in a manual folder that are not archived or in Trash; null for a smart folder, whose cards are found when listed.

rulesFolderRules | nullrequired

A manual folder's rules; null for a smart folder.

Show properties
One of:
FolderRules
autoTagsstring[]required

Tags every card that joins the folder gets, however it joins. They stay when the card leaves.

autoFileobject | nullrequired

A search that files matching cards into the folder once their AI tags are written; null when the folder has none.

Show properties
One of:
object
querystringrequired
enabledbooleanrequired
null
null
null
null
ruleRunIdstring | nullrequired

The folder's latest rule run, which saving its rules starts. Follow it with getFolderRuleRun.

createdAtnumberrequired
updatedAtnumberrequired
404

Folder not found

Try it
Server
Authorization
Parameters
Request
curl -X GET 'https://teakvault.com/api/v1/folders/string' \
  -H 'Authorization: Bearer YOUR_TOKEN' \
  -H 'Accept: application/json'
Response
{
  "id": "string",
  "name": "string",
  "color": "gray",
  "kind": "manual",
  "query": "string",
  "cardCount": 0,
  "rules": {
    "autoTags": [
      "string"
    ],
    "autoFile": {
      "query": "string",
      "enabled": true
    }
  },
  "ruleRunId": "string",
  "createdAt": 0,
  "updatedAt": 0
}

Was this page helpful?