Skip to main content
POST
Use this route to import a tree file that you generated with Initialize knowledge folders or edited before upload.
Send the file as multipart/form-data with the form field name file.

Headers

string
required
Bearer token containing your Fini workspace API key. Format: Bearer fini_... The key needs write scope.
string
required
multipart/form-data

Body parameters

file
required
Tree file generated from the initialize route or edited by your team before import.

Response

string
Import status string.
string
Human-readable import message.

Errors

The request is malformed or the file field is missing from the multipart payload.
The API key is missing, malformed, revoked, or invalid.
The API key does not include the write scope.
Fini failed while persisting the uploaded tree file. Retry once, then validate the file format before trying again.