---
type: api
title: List organizations
description: Fetch organizations available to the current user. Currently unavailable in self-hosted ECE.
url: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v4/operation/operation-list-organizations
resource: https://www.elastic.co/elastic/docs-builder/docs/4641/api/doc/cloud-enterprise/v4/operation/operation-list-organizations
products:
  - Elastic Cloud Enterprise
---

# List organizations

Authentication: required

## Paths

- `GET` `/organizations`

## Description

Fetch organizations available to the current user. Currently unavailable in self-hosted ECE.

## Responses

#### `200`

Organizations fetched successfully

`application/json`

- `organizations` (object[])
  The list of organizations
  - `id` (string)
    The organization's identifier
  - `name` (string)
    The organization's friendly name
  - `default_disk_usage_alerts_enabled` (boolean)
    Whether the default disk alerts are enabled
  - `notifications_allowed_email_domains` (string[])
    The list of allowed domains for notification-email recipients
  - `billing_contacts` (string[])
    The list of contacts for billing notifications, if specified
  - `operational_contacts` (string[])
    The list of contacts for operational notifications, if specified
  - `sso_login_identifier` (string)
    The login identifier for initiating SSO
- `next_page` (string)
  A cursor to get the next page of results
#### `401`

User not found. (code: `user.not_found`)

`application/json`

- `errors` (object[])
  A list of errors that occurred in the failing request
  - `code` (string)
    A structured code representing the error type that occurred
  - `message` (string)
    A human readable message describing the error that occurred
  - `fields` (string[])
    If the error can be tied to a specific field or fields in the user request, this lists those fields
##### Response headers

- `x-cloud-error-codes` (enum)
  The error codes associated with the response

## Code examples

#### curl

```curl
curl -X GET "${API_URL}/organizations" \
  -u "${USERNAME}:${PASSWORD}"
```

## Response examples

#### 200

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "organizations": [
    {
      "id": "string",
      "name": "string",
      "default_disk_usage_alerts_enabled": false,
      "notifications_allowed_email_domains": [
        "string"
      ],
      "billing_contacts": [
        "string"
      ],
      "operational_contacts": [
        "string"
      ],
      "sso_login_identifier": "string"
    }
  ],
  "next_page": "string"
}
```

#### 401

`application/json`

Generated from the API spec. Values are representative. Unions use the first variant; deeply nested or large bodies may omit fields.

```json
{
  "errors": [
    {
      "code": "string",
      "message": "string",
      "fields": [
        "string"
      ]
    }
  ]
}
```

