Send Message with File Upload
POST/v1/conversations/with-uploads
Upload files and send a message with file attachments in a single request.
Combines document upload to KMS and message sending into one API call:
- Resolves a collection for the uploaded files
- Uploads each file to KMS (initiate → blob storage → queue for processing)
- Sends the message with file metadata to the agent
Collection Resolution Order:
- Uses
collection_idif explicitly provided - Falls back to the conversation's existing
collection_id(ifconversation_idgiven) - Creates a new hidden collection with
quickparsing strategy as last resort
Response format is identical to the Send Message endpoint:
- Streaming (
stream: true): Server-Sent Events - Non-streaming (
stream: false): JSON with message, conversation_id, message_id - Background (
run_in_background: true): Empty HTTP 202 response; processing continues in-process
Request
Responses
- 200
- 202
- 401
- 403
- 404
- 422
- 500
Files uploaded and message sent successfully. Returns JSON for non-streaming or Server-Sent Events for streaming requests.
Request accepted for in-process background upload and message processing. The response body is empty.
Authentication failed - Invalid or missing credentials
Permission denied - Insufficient privileges
Resource not found
Validation error - Invalid request data
Internal server error