Skip to main content
POST

Path

string
required
The id of the datastore where you want to upload a file.
string
default:"multipart/form-data"
required
Content Type must be set to multipart/form-data

Body

file
required
File to upload
string
File Name
string
Custom ID: If you want to set a custom ID for the file, you can do it here.
Supported mime types
  • text/csv’
  • text/plain’
  • text/markdown’
  • application/pdf’
  • application/json’
  • application/vnd.openxmlformats-officedocument.presentationml.presentation
  • application/vnd.openxmlformats-officedocument.wordprocessingml.document
  • application/vnd.openxmlformats-officedocument.spreadsheetml.sheet

Example JS Code