Authentication
This endpoint requires a valid API key in the Authorization header.Request Body
The name of the file to be uploaded, including the file extension
The MIME type of the file (e.g., “application/pdf”, “text/plain”,
“application/vnd.openxmlformats-officedocument.wordprocessingml.document”,
“image/png”, “audio/mp3”)
The size of the file in bytes (optional but recommended)
Supported File Types
Wordsmith supports a wide variety of file formats including:- Documents: PDF, DOC, DOCX, TXT, MD, HTML
- Spreadsheets: XLS, XLSX, CSV, TSV
- Presentations: PPT, PPTX
- Images: PNG, JPEG, WebP, TIFF
- Audio: MP3, MP4, M4A, MPEG, WAV, WebM
- Archives: ZIP
Response
The presigned URL where you can upload your file using a PUT request
The unique identifier for this upload job. Use this ID when creating assistant
questions with file attachments.
ISO 8601 timestamp indicating when the upload URL expires (typically 1 hour
from creation)
Complete Upload Flow
After receiving the upload URL, you need to upload your file:Error Responses
File Size Limits
- Maximum file size: 50 MB per file
- Maximum total attachments per question: 10 files
- Files are automatically deleted after 30 days for security
Notes
- Upload URLs expire after 1 hour
- Files must be uploaded using a PUT request with the exact content type specified
- The
upload_job_id
can be used immediately after uploading, no need to wait for processing