Elliot
Elliot2mo ago

Knowledgebase API Access to folders?

Hi everyone, when using the knowledgebase API is there a way to select existing folders to upload to? or create new folders ?
2 Replies
Tico | Voiceflow Assistant
At the moment the Knowledge Base APIs don’t expose any concept of “folders”. • Uploads are always sent directly to the project’s Knowledge Base with /v3alpha/knowledge-base/docs/upload (or the table upload endpoint). • Organisation is done with tags, not folders. You can create tags (POST /v3alpha/knowledge-base/tags) and then attach or detach them from a document (POST /v3alpha/knowledge-base/docs/{documentID}/tags/attach|detach). If you need a folder-like structure you’ll need to model it yourself (e.g. create a tag called “FAQ/Shipping”, “FAQ/Returns”, etc.) and filter on those tags when you query the KB. Docs reference: https://docs.voiceflow.com (Knowledge Base > Document & Tags API sections)
W. Williams (SFT)
folders are just for organizing KB articles. There is no API to create them. You can add metadata to filter your KB items using the API.

Did you find this page helpful?