Skip to content
FeedbackDashboard

List organizations

$client->orgs->list(): OrgListResponse
GET/v0/orgs

List organizations accessible to the current authentication method.

ReturnsExpand Collapse
list<Org> data
bool hasMore
?string nextCursor

List organizations

<?php

require_once dirname(__DIR__) . '/vendor/autoload.php';

$client = new Client(apiKey: 'My API Key', environment: 'staging');

$orgs = $client->orgs->list();

var_dump($orgs);
{
  "data": [
    {
      "display_name": "display_name",
      "enable_ai_commit_messages": true,
      "object": "org",
      "slug": "slug"
    }
  ],
  "has_more": true,
  "next_cursor": "next_cursor"
}
Returns Examples
{
  "data": [
    {
      "display_name": "display_name",
      "enable_ai_commit_messages": true,
      "object": "org",
      "slug": "slug"
    }
  ],
  "has_more": true,
  "next_cursor": "next_cursor"
}