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_and_list_content(file=f, filename="document.pdf")
print(result){
"datasource_id": "<string>",
"items": [
{
"name": "<string>",
"path": "<string>",
"type": "<string>",
"size": 123,
"media_type": "<string>",
"last_modified": "<string>",
"etag": "<string>"
}
],
"continuation_token": "<string>",
"ingest_url": "<string>"
}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_and_list_content(file=f, filename="document.pdf")
print(result){
"datasource_id": "<string>",
"items": [
{
"name": "<string>",
"path": "<string>",
"type": "<string>",
"size": 123,
"media_type": "<string>",
"last_modified": "<string>",
"etag": "<string>"
}
],
"continuation_token": "<string>",
"ingest_url": "<string>"
}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
Start ingestion after upload completes. Returns ingest_url to poll for status.
Successful Response
Result of a synchronous upload — waits until files are persisted, optionally triggers ingest, and returns the resulting content listing.
ID of the datasource the files were uploaded to
Content items present on the datasource after the upload completes
Show child attributes
Set when the listing is truncated — pass to GET /datasources/{id}/content to fetch the rest
URL to poll for ingest status. Only set when trigger_ingest=true was supplied
Was this page helpful?