Note: The deprecation date starts from 15-Oct-2025. The following old endpoint will be sunset on14-Nov-2025
| Old Endpoint (Deprecated) | New Endpoint (Recommended) |
|---|---|
| https://{{your-server-name}}/v2/api/corpus/{corpus_id}/document | https://{{your-server-name}}/indexing-service/api/v2/corpora/{corpus_id}/documents |
Both versions use multipart/form-data
{
"content_type": "file",
"source": "document content or file upload",
"upload_from": "web",
"user_id": 1
}{
"content_type": "file", //Can be one of 'weblink', 'file', 'text'
"source": "document content or file upload", //Either pass the text content or upload a file
"tags": "finance,report", //Optional
"upload_from": "web", //Optional
"user_id": "1" //Id of the user uploading the document
}| Field | Old | New |
|---|---|---|
| tags | - | New optional categorization field |
| source | Same | Same |
| upload_from | Required | Optional |
{
"id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
"statusQueryGetUri": "http://example.com",
"sendEventPostUri": "http://example.com",
"terminatePostUri": "http://example.com",
"rewindPostUri": "http://example.com",
"purgeHistoryDeleteUri": "http://example.com",
"restartPostUri": "http://example.com",
"suspendPostUri": "http://example.com",
"resumePostUri": "http://example.com"
}{
"success": true,
"message": "Document has been queued for indexing",
"data": {
"id": 123,
"source": "document.pdf",
"access_url": "https://storage.example.com/document.pdf",
"step": "pending" //Signifies the state of document in the indexing process.
}
}{
"success": true,
"message": "string",
"data": { ... }
}| Field | Old | New | Notes |
|---|---|---|---|
| id | uuid | integer | Identifier type changed to integer. |
| access_url | - | Added | Returned within data object. |
| step | - | Added | Indicates document processing state. |
statusQueryGetUri, sendEventPostUri, terminatePostUri, rewindPostUri, purgeHistoryDeleteUri, restartPostUri, suspendPostUri, resumePostUri.