Knowledge
Initialize knowledge folders
Generate a downloadable tree-import template file from an initialization prompt.
POST
Use this route when you are setting up knowledge folders for the first time and want Fini to scaffold a starting folder-and-article structure.
This route returns a downloadable file, not JSON. Save the response body using the returned
Content-Type and Content-Disposition headers, then import that file with Persist knowledge folders.Headers
Bearer token containing your Fini workspace API key. Format:
Bearer fini_... The key needs write scope.application/jsonBody parameters
Prompt describing the folder-and-article structure you want Fini to scaffold.
Response
The response body is a generated tree template file.Downloadable tree-import template file.
MIME type for the returned file.
Attachment header containing the suggested filename.
Next step
Review the generated file, make any edits you want, then upload it with Persist knowledge folders.Errors
400 Bad Request
400 Bad Request
The request body is malformed or
initPrompt is missing or empty.401 Unauthorized
401 Unauthorized
403 Forbidden
403 Forbidden
The API key does not include the
write scope.500 Internal Server Error
500 Internal Server Error
Fini failed while generating the tree template. Retry once, then narrow the prompt if the failure persists.

