List organizations with pagination
orgs.list(OrgListParams**kwargs) -> SyncCursorOrganizations[OrgListResponse]
/v1/orgs
Retrieves a paginated list of organizations with optional filtering by name. Returns up to 100 organizations per request.
Parameters
cursor: Optional[str]
Base64 encoded cursor from previous response
limit: Optional[float]
Number of results to return (1-100)
minimum1
maximum100
Returns
List organizations with pagination
import os
from avara import Avara
client = Avara(
api_key=os.environ.get("AVARA_API_KEY"), # This is the default and can be omitted
)
page = client.orgs.list()
page = page.organizations[0]
print(page.created_at)
{
"hasMore": true,
"organizations": [
{
"createdAt": "2024-01-15T09:00:00Z",
"isActive": true,
"orgId": "org_1234567890abcdef1234567890abcdef",
"orgName": "City Medical Center - Radiology Department",
"updatedAt": "2024-03-15T14:20:00Z",
"userCount": 15,
"createdByApiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"createdByUserId": "usr_1234567890abcdef1234567890abcdef",
"metadata": {
"department": "radiology",
"region": "northeast"
}
}
],
"cursor": "cursor"
}
Returns Examples
{
"hasMore": true,
"organizations": [
{
"createdAt": "2024-01-15T09:00:00Z",
"isActive": true,
"orgId": "org_1234567890abcdef1234567890abcdef",
"orgName": "City Medical Center - Radiology Department",
"updatedAt": "2024-03-15T14:20:00Z",
"userCount": 15,
"createdByApiKeyId": "550e8400-e29b-41d4-a716-446655440000",
"createdByUserId": "usr_1234567890abcdef1234567890abcdef",
"metadata": {
"department": "radiology",
"region": "northeast"
}
}
],
"cursor": "cursor"
}