Generate a file upload URL
GET/knowledge-bases/:kb_id/files/upload-url
Returns a pre-signed URL for uploading one file, along with the storage key you pass to Ingest uploaded files. Upload the file to the URL with a PUT request before calling that endpoint. The URL is valid for one hour.
Request
Responses
- 200
- 401
- 404
- 422
The pre-signed upload URL.
Your API key is missing or invalid.
No knowledge base with that ID exists.
The MIME type is not supported.
Was this page helpful?