Skip to main content
POST
Upload a file source

Authorizations

Authorization
string
header
required

A workspace API key from Workspace settings > API keys, sent as Authorization: Bearer cl_api_.... A Read only key can call the GET endpoints; every other method needs a Full access key.

Path Parameters

agentId
string
required
Required string length: 1 - 128

Body

multipart/form-data
file
file
required

A PDF, DOC, DOCX, TXT, Markdown, CSV or JSON file of at most 20 MB, with at most 10 MB of extracted text.

name
string

The source's name. Defaults to the file's name.

Required string length: 1 - 250

Response

Created.

data
object
required