# Replace 'my-documents' with your namespace name# Replace 'your-api-key-here' with your actual API key# Replace '/path/to/document.pdf' with the actual path to your filecurl -X POST "https://api.moorcheh.ai/v1/namespaces/my-documents/upload-file" \ -H "x-api-key: your-api-key-here" \ -F "file=@/path/to/document.pdf"
Directly upload files to a text namespace for semantic search and AI-powered operations.
POST
https://api.moorcheh.ai
/
v1
/
namespaces
/
{namespace_name}
/
upload-file
Copy
# Replace 'my-documents' with your namespace name# Replace 'your-api-key-here' with your actual API key# Replace '/path/to/document.pdf' with the actual path to your filecurl -X POST "https://api.moorcheh.ai/v1/namespaces/my-documents/upload-file" \ -H "x-api-key: your-api-key-here" \ -F "file=@/path/to/document.pdf"
Upload files directly to a text namespace, enabling semantic search, similarity matching, and AI-powered question answering. The API automatically extracts text content from various file formats including PDF, DOCX, TXT, and more. Files are processed to generate embeddings using Amazon Bedrock for optimal search performance.
Files are automatically processed to extract text content and generate embeddings. Supported formats include PDF, DOCX, TXT, MD, CSV, and more.
When testing with the “Try it” feature, you can either upload a file directly or specify a file path. In cURL commands, use -F "file=@/path/to/your/file.pdf" where @ indicates the file path on your system.
# Replace 'my-documents' with your namespace name# Replace 'your-api-key-here' with your actual API key# Replace '/path/to/document.pdf' with the actual path to your filecurl -X POST "https://api.moorcheh.ai/v1/namespaces/my-documents/upload-file" \ -H "x-api-key: your-api-key-here" \ -F "file=@/path/to/document.pdf"