File Library Management
Upload workspace files
Upload files to use.
POST
You can assign metadata to your files to limit searches to specific files by file metadata. There is no bulk upload method; files must be loaded one at a time.
- Max number of files: No limit. The playground limits bulk uploads to 50 files per request.
- Max total library size: 1 GB.
- Max file size: 5 MB.
- Supported file types: PDF, DocX, HTML, TXT, Markdown.
Request body fields
Raw file bytes. Every uploaded file must have a unique file name. Specifying file labels will find only files with both the specified name and label.
Arbitrary string labels that describe the contents of this file. Labels are case-sensitive. Specifying labels or labels + name will return only files with both any of the specified labels and the specified name.
A public URL associated with the file, if any. Only used as metadata, to indicate the location of the source file. For example, if implementing a search engine against a website, specifying a URL for each uploaded file is a simple way to present the link to the file in the search results presented to the user.

