# Orgs ## List organizations `$client->orgs->list(): OrgListResponse` **get** `/v0/orgs` List organizations accessible to the current authentication method. ### Returns - `OrgListResponse` - `list data` - `bool hasMore` - `?string nextCursor` ### Example ```php orgs->list(); var_dump($orgs); ``` #### Response ```json { "data": [ { "display_name": "display_name", "enable_ai_commit_messages": true, "object": "org", "slug": "slug" } ], "has_more": true, "next_cursor": "next_cursor" } ``` ## Retrieve an organization `$client->orgs->retrieve(string org): Org` **get** `/v0/orgs/{org}` Retrieve an organization by name. ### Parameters - `org: string` ### Returns - `Org` - `?string displayName` - `bool enableAICommitMessages` - `Object_ object` - `string slug` ### Example ```php orgs->retrieve('org'); var_dump($org); ``` #### Response ```json { "display_name": "display_name", "enable_ai_commit_messages": true, "object": "org", "slug": "slug" } ``` ## Domain Types ### Org - `Org` - `?string displayName` - `bool enableAICommitMessages` - `Object_ object` - `string slug`