kb_create_direct_upload
Generate a presigned URL for direct file upload into a knowledge base, returning upload details to complete the two-step upload process.
Instructions
Step 1 of a two-step file upload: get a presigned URL to upload a file into a KB. Returns {signed_id, upload_url, content_type}. PUT the file bytes to upload_url with the returned content_type as the Content-Type header, then call kb_add_file with the signed_id. Allowed: PDF/DOCX/TXT/MD/RTF/PPT(X)/CSV/HTML/EML/EPUB/XLSX (max 256MB).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | No | ||
| filename | Yes | ||
| byte_size | No | ||
| project_id | Yes | ||
| content_type | No |