from meibel import MeibelClient
client = MeibelClient(api_key="your-api-key")
# Upload a file
with open("document.pdf", "rb") as f:
result = client.datasources.file_uploads.upload_content(file=f, filename="document.pdf")
print(result){
"success": true,
"message": "<string>",
"datasource_id": "<string>",
"upload_id": "<string>",
"sse_url": "<string>",
"estimated_files": 123,
"estimated_size": 123
}from meibel import MeibelClient
client = MeibelClient(api_key="your-api-key")
# Upload a file
with open("document.pdf", "rb") as f:
result = client.datasources.file_uploads.upload_content(file=f, filename="document.pdf")
print(result){
"success": true,
"message": "<string>",
"datasource_id": "<string>",
"upload_id": "<string>",
"sse_url": "<string>",
"estimated_files": 123,
"estimated_size": 123
}Documentation Index
Fetch the complete documentation index at: https://docs.meibel.ai/llms.txt
Use this file to discover all available pages before exploring further.
One or more files to upload
ID of an existing datasource to upload to. Provide this or name.
""
Name for a new datasource to create. Provide this or datasource_id.
""
Description of the new datasource (only used when creating with name).
""
Configure automatic metadata extraction from documents on ingest.
Show child attributes
Successful Response
Result of an async upload — files are accepted and streamed asynchronously.
True if the upload was accepted for processing
Human-readable status message
ID of the datasource the files were uploaded to (created on the fly if name was supplied)
Identifier for this upload batch — use with the SSE stream to track progress
Server-sent-events URL to stream upload progress until 'stream_complete'
Number of files the server expects to process for this upload
Total estimated size of the upload in bytes
Was this page helpful?