Create Folder

Create a folder inside a knowledge base.

Authentication

AuthorizationBearer

Enter your API key with the Bearer prefix, e.g. ‘Bearer sk_…’.

Path parameters

idstringRequired

Request

This endpoint expects an object.
namestringRequired
parent_folder_idstring or nullOptional

Parent folder. Prefixed wire identifier (kfolder_<26 char Crockford base32>); null/omitted creates a root-level folder.

Response

The created folder.
idstring
kb_idstring

Prefixed wire identifier (kb_<26 char Crockford base32>) of the owning knowledge base. ADR 0015 FK consistency.

parent_folder_idstring or null
namestring
document_countinteger
created_atdatetime
updated_atdatetime

Errors

400
Bad Request Error
401
Unauthorized Error
404
Not Found Error