Skip to content
FeedbackDashboard

List organizations

GET/v0/orgs

List organizations accessible to the current authentication method.

ReturnsExpand Collapse
data: array of Org { display_name, enable_ai_commit_messages, object, slug }
display_name: string
enable_ai_commit_messages: boolean
object: "org"
slug: string
has_more: boolean
next_cursor: optional string

List organizations

curl https://api.stainless.com/v0/orgs \
    -H "Authorization: Bearer $STAINLESS_API_KEY"
{
  "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"
}