Batch Create Sessions
Batch Operations
Batch Create Sessions
Create multiple sessions with uploaded documents and optional auto-extraction.
POST
Batch Create Sessions
Authentication & Scope
Requires thesessions-write ability.
Overview
This endpoint creates one session per uploaded file, with each session containing the corresponding document. This is the most efficient way to process multiple documents.Request
Path Parameters
Body Parameters
File keys are obtained from the signed URL upload process. Each file creates a separate session.
Response
201 Created – Array of created sessions.
Session names initially show “Pending…” and are automatically updated to the document filename once processing begins.
Auto-Extract Workflow
Whenauto_extract: true:
- Sessions are created with uploaded documents
- Documents are automatically parsed into searchable chunks
- Once parsing completes, extraction starts automatically
- Results appear in the session’s results endpoint
Example: Complete Workflow
1
Upload files and get keys
Use signed URLs to upload your documents first.
2
Batch create with auto-extract
3
Poll for results
Check each session’s results endpoint until status is
completed.Error Responses
Authorizations
Path Parameters
Body
application/json
