Add File

This endpoint enables you to upload files (CSV, AUDIO, PDF, or XML) into your project.
Upon upload, the file will be processed and stored as text embeddings within the project's database.

Supported File Types

  • CSV: Comma-separated values files.
  • Audio: Supported audio formats for transcription to text.
  • PDF: Portable Document Format files.
  • XML: Extensible Markup Language files.

OCR Processing and Speech-to-Text

If the uploaded file is a PDF, it will undergo Optical Character Recognition (OCR) processing using the default provider chosen during the project creation step.
Similarly, audio files will be converted to text using Speech-to-Text, also utilizing the default provider configured during project setup.

Accepted File Extensions

  • PDF
  • CSV
  • AMR
  • FLAC
  • WAV
  • OGG
  • MP3
  • MP4
  • WEBM
  • XML
Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
uuid
required
Body Params
string
enum
required
  • pdf - pdf
  • audio - audio
  • csv - csv
  • xml - xml
Allowed:
file

File to analyse in binary format to be used with content-type: multipart/form-data
Does not work with application/json !

uri | null

File URL to analyse to be used with with content-type: application/json.

string
length ≥ 1

Optional parameter: Attach metadata to the uploaded file data in your database. Provide a stringified JSON with key-value pairs. Useful in filter_document when querying the language model, it allows you to filter data with your Chatbot by considering only documents that have the specified metadata.

string | null

Select a provider to use, only for audio (speech-to-text) & pdf (ocr-async) files.

Response
201

No response body

Language
Credentials
Bearer
JWT
LoadingLoading…
Response
Click Try It! to start a request and see the response here!