Upload Files

Upload files to cloud storage.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Uploads files to cloud storage in one multipart/form-data request. Supported types are PDF and plain text.

When to use it

Use it before Create a knowledge object: pass the returned file IDs in file_ids.

Required parameters

  • files (body): the files to upload.

Response

A successful call returns 202 Accepted with files, a status and file details for each upload (success, file_too_large, unsupported_file_type, or upload_failed), plus total_files and total_size.

Related: Create a knowledge object, Get uploaded file details, List knowledge objects

Body Params
files
array of files
required
Responses

422

Unprocessable Entity

500

Internal Server Error

Language
Credentials
OAuth2
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json