Create a folder
An account can have up to 500 folders.
/v1/foldersAuthorizationBearer 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/jsonnamestringrequired1 to 300 characters, unique per account ignoring case.
colorstringA palette color.
grayredorangeambergreentealbluevioletpinkkindstringsmart saves a search as a folder and needs query. Defaults to manual.
manualsmartquerystringA smart folder's search, with the qualifiers q accepts; at most 500 characters. A folder: must name one of your manual folders.
autoTagsstring[]Tags every card that joins this manual folder gets, at most 10. An empty array clears them. Up to 50 folders per account can have rules.
autoFileQuerystring | nullA search, with the qualifiers q accepts except like: and mood:, that files matching cards into this manual folder; at most 500 characters, or null to clear it.
autoFileEnabledbooleanFalse pauses the auto-file search without clearing it.
Folder created
idstringrequirednamestringrequiredcolorstring | nullrequiredgrayredorangeambergreentealbluevioletpinknullkindstringrequiredmanual folders hold the cards put in them; smart folders show the cards that match their query when listed.
manualsmartquerystring | nullrequiredA smart folder's search (the same grammar as q), written the canonical way; null for a manual folder.
cardCountnumber | nullrequiredCards in a manual folder that are not archived or in Trash; null for a smart folder, whose cards are found when listed.
rulesFolderRules | nullrequiredA manual folder's rules; null for a smart folder.
Show propertiesHide properties
autoTagsstring[]requiredTags every card that joins the folder gets, however it joins. They stay when the card leaves.
autoFileobject | nullrequiredA search that files matching cards into the folder once their AI tags are written; null when the folder has none.
Show propertiesHide properties
querystringrequiredenabledbooleanrequirednullnullruleRunIdstring | nullrequiredThe folder's latest rule run, which saving its rules starts. Follow it with getFolderRuleRun.
createdAtnumberrequiredupdatedAtnumberrequiredInvalid name or color
A folder with this name exists (CONFLICT), the account has the most folders it can (LIMIT_REACHED), or the most folders with rules (RULE_LIMIT)