Skip to content
  • Auto
  • Light
  • Dark

List

List organizations the user has access to
orgs.list() -> datalisthas_moreboolnext_cursorstrOrgListResponse
get/v0/orgs

List organizations the user has access to

Returns
OrgListResponseclass
Hide ParametersShow Parameters
datalist
List[display_namestrobjectliteralslugstrOrg]
Hide ParametersShow Parameters
display_namestr
objectliteral
Literal["org"]
Hide ParametersShow Parameters
"org"
slugstr
has_morebool
next_cursorstr
optional
from stainless_v0 import Stainless

client = Stainless(
    api_key="My API Key",
)
orgs = client.orgs.list()
print(orgs.data)
200 Example
{
  "data": [
    {
      "display_name": "display_name",
      "object": "org",
      "slug": "slug"
    }
  ],
  "has_more": true,
  "next_cursor": "next_cursor"
}