Try it
button to try this API now in our playground. It’s the best way to check the full request and response in one place, customize your parameters, and generate ready-to-use code snippets.Sample Request
source_id
that doesn’t exist (upsert operation).
Provide onesource_id
per file. The number ofsource_id
s must match the number of files.
Error Responses
All endpoints return consistent error responses following the standard format. For detailed error information, see our Error Responses documentation.Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Query Parameters
Unique identifier for the tenant/organization
"tenant_1234"
Optional sub-tenant identifier used to organize data within a tenant. If omitted, the default sub-tenant created during tenant setup will be used.
"sub_tenant_4567"
Body
The document file to upload (e.g., PDF, DOCX, TXT)
List of source IDs corresponding to the files being updated
["CortexDoc1234", "CortexDoc4567"]
JSON string containing tenant-level document metadata (e.g., department, compliance_tag)
Example: > "{"department":"Finance","compliance_tag":"GDPR"}"
JSON string containing document-specific metadata (e.g., title, author, file_id). If file_id is not provided, the system will generate an ID automatically.
Example: > "{"title":"Q1 Report.pdf","author":"Alice Smith","file_id":"custom_file_123"}"
Response
Successful Response
List of successfully uploaded files for processing
[
{
"file_id": "CortexDoc1234",
"filename": "document1.pdf"
},
{
"file_id": "CortexDoc4567",
"filename": "document2.docx"
}
]
Status message indicating batch document parsing scheduled
true