Skip to main content
POST
/
v1
/
voiceai
/
knowledge-base
/
file
Create File Document
curl --request POST \
  --url https://api.example.com/v1/voiceai/knowledge-base/file \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form 'file=<string>'
{
  "id": "<string>",
  "name": "<string>",
  "folder_path": [
    {
      "id": "<string>",
      "name": "<string>"
    }
  ]
}

Authorizations

x-api-key
string
header
required

API key for programmatic access

Query Parameters

name
string | null
parent_folder_id
string | null

Body

multipart/form-data
file
string
required

Response

Successful Response

Response model for all document creation endpoints (URL, text, file). Returns the created document's ID, name, and folder path.

id
string
required

The ID of the created document

name
string
required

The name of the created document

folder_path
KnowledgeBaseFolderPathSegmentResponseModel · object[]

The folder path segments leading to this entity, from root to parent folder.