Skip to main content
POST
/
knowledge-base
/
save-file
Save file to knowledge base
curl --request POST \
  --url https://api.cleartalk.ai/knowledge-base/save-file \
  --header 'Content-Type: multipart/form-data' \
  --header 'x-api-key: <api-key>' \
  --form type=file \
  --form 'name=My Document' \
  --form file='@example-file' \
  --form 'description=This is a sample document'

Authorizations

x-api-key
string
header
required

API Key for authentication

Body

multipart/form-data
type
string
required

Type of knowledge base

Example:

"file"

name
string
required

Name of the knowledge base

Example:

"My Document"

file
file
required

File to upload

description
string

Description of the knowledge base

Example:

"This is a sample document"

Response

File saved successfully