Skip to main content
POST
Upload
Upload files, content, or URLs to a collection for knowledge processing and indexing.

Upload Types

  • Files: Upload one or multiple files (file or files parameter)
  • Content: Upload raw text content (content parameter)
  • URLs: Upload content from URLs (urls parameter)
  • Web Crawling: Enable crawling for URL uploads (crawl: true)

Supported Content

  • Documents (PDF, DOCX, TXT, etc.)
  • Images and media files
  • Web pages and URLs
  • Raw text content
  • Multiple files in a single request

Features

  • Automatic Processing: Files are automatically processed and indexed
  • Metadata Support: Include custom metadata with uploads
  • Batch Uploads: Upload multiple files or URLs at once
  • Web Crawling: Automatically crawl and index web content
  • Content Labeling: Add labels and descriptions for organization

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

X-Workspace-Id
string | null

The workspace ID

Body

multipart/form-data
collection_id
string
required
file
file | null
files
file[] | null
content
string | null
urls
string[] | null
content_type
string | null
default:file
metadata
string | null
user_id
string | null
label
string | null
description
string | null
crawl
boolean | null
default:false
ingest
boolean | null
default:true
reader
string | null

Response

Successful Response