List Organizations
organizations.list(OrganizationListParams**kwargs) -> SyncPaginatedCursor[Organization]
GET/api/v2/organizations
List organizations the current user can access.
List Organizations
import os
from llama_cloud_admin import LlamaCloudAdmin
client = LlamaCloudAdmin(
api_key=os.environ.get("LLAMA_CLOUD_API_KEY"), # This is the default and can be omitted
)
page = client.organizations.list()
page = page.items[0]
print(page.id){
"items": [
{
"id": "id",
"name": "name",
"created_at": "2019-12-27T18:11:19.117Z",
"metadata": {
"foo": "bar"
},
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}Returns Examples
{
"items": [
{
"id": "id",
"name": "name",
"created_at": "2019-12-27T18:11:19.117Z",
"metadata": {
"foo": "bar"
},
"updated_at": "2019-12-27T18:11:19.117Z"
}
],
"next_page_token": "next_page_token",
"total_size": 0
}