To use the API you need an API key. You can create API Keys in your Workspace
settings.
Request Format
This endpoint acceptsmultipart/form-data
requests with a single file upload.
Parameter | Type | Required | Description |
---|---|---|---|
file | File | Yes | The file you want to upload |
Response Format
The API returns the uploaded file information:Example
Error Handling
attachmentIds
array either at the assistant level or message level.Headers
API key as Bearer token. Format "Bearer YOUR_API_KEY"
Body
multipart/form-data
The file to upload