Creates a new source batch container for organizing and managing related document sources. A source batch acts as a logical grouping that must be created before uploading any sources. The returned source_batch_id is required when creating sources and can be used to reference all contained sources in chat or search requests.
Workflow:
source_batch_idsource_batch_id in chat/search API requests to access all sources in the batchDescriptive name for the source batch (e.g., project name, document category)
1 - 255"Q4_Financial_Reports"
User ID
"123e4567-e89b-12d3-a456-426614174000"
Organization ID
"123e4567-e89b-12d3-a456-426614174000"
User email
User name
"John Doe"
Optional detailed description of the source batch purpose and contents
1000"Financial documents including revenue reports, expense summaries, and forecasts for Q4 2024"
Source batch created successfully
Unique identifier for the created source batch. Use this ID when uploading sources and referencing the batch in chat/search requests.
"123e4567-e89b-12d3-a456-426614174000"