Python
from meibelai import Meibelai import os with Meibelai( api_key_header=os.getenv("MEIBELAI_API_KEY_HEADER", ""), ) as m_client: res = m_client.datasources.content.list_datasource_content(datasource_id="<id>", prefix="<value>", continuation_token="<value>", limit=1000) # Handle response print(res)
{ "items": [ { "name": "<string>", "path": "<string>", "type": "file", "size": 123, "media_type": "<string>", "last_modified": "<string>", "etag": "<string>" } ], "continuation_token": "<string>" }
List files and directories in a datasource with optional filtering and pagination
Filter content by path prefix
Token for pagination to get next page of results
Maximum number of items to return (1-10000)
1 <= x <= 10000
Successful Response
ListContentResponse
Show child attributes
Was this page helpful?