> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Retrieve Organizations

> Learn how to retrieve Organizations using the Auth0 Dashboard and Management API.

When working with [organizations](/docs/docs/manage-users/organizations/organizations-overview) programmatically, you may need to retrieve either a list of all organizations or organizations individually by name or ID.

> [!WARNING]
>
> The Management API should be accessed using only a confidential client. Its use is subject to [Auth0 Management API rate limits](/docs/docs/troubleshoot/customer-support/operational-policies/rate-limit-policy).

## Retrieve tenant organizations

You can retrieve all organizations for a tenant via the Management API (Management API: A product to allow customers to perform administrative tasks.).

> [!WARNING]
>
> To retrieve more than 1000 results, you must use the checkpoint pagination method. To learn more, see the [Get Organizations endpoint](/docs/docs/api/management/v2/organizations/get-organizations) in our API Explorer.

Make a `GET` call to the `Get Organizations` endpoint. Be sure to replace the `MGMT_API_ACCESS_TOKEN` placeholder value with your Management API Access Token (Access Token: Authorization credential, in the form of an opaque string or JWT, used to access an API.).

Using the Auth0 CLI? If you haven't already, [set up and authenticate your CLI session](/docs/docs/deploy-monitor/auth0-cli) before running this command.

**Find Your Auth0 Domain**

If your Auth0 domain is your tenant name, your regional subdomain (unless your tenant is in the US region and was created before June 2020), plus `.auth0.com`. For example, if your tenant name were `travel0`, your Auth0 domain name would be `travel0.us.auth0.com`. (If your tenant were in the US and created before June 2020, then your domain name would be `https://travel0.auth0.com`.)

If you are using custom domains, this should be your custom domain name.

| Value | Description |
| - | - |
| `MGMT_API_ACCESS_TOKEN` | [Access Token for the Management API](/docs/docs/secure/tokens/access-tokens/management-api-access-tokens) with the scope `read:organizations`. |

### Response status codes

Possible response status codes are as follows:

| Status code | Error code | Message | Cause |
| - | - | - | - |
| `200` | | Organizations successfully retrieved. | |
| `400` | `invalid_paging` | Requesting page exceeds the allowed maximum of 1000 records. | API has been limited to only return up to 1000 records. |
| `400` | `invalid_query_string` | Invalid request query string. The message will vary depending on the cause. | The query string is not valid. |
| `401` | | Invalid token. | |
| `401` | | Invalid signature received for JSON Web Token validation. | |
| `401` | | Client is not global. | |
| `403` | `insufficient_scope` | Insufficient scope; expected any of: `read:organizations`. | Tried to read/write a field that is not allowed with provided bearer token scopes. |
| `429` | | Too many requests. Check the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers. | |

## Retrieve organization by ID

You can retrieve an organization by its ID through the Management API.

Make a `GET` call to the `Get Organization` endpoint. Be sure to replace the `ORG_ID` and `MGMT_API_ACCESS_TOKEN` placeholder values with your organization ID and Management API Access Token, respectively.

**Find Your Auth0 Domain**

If your Auth0 domain is your tenant name, your regional subdomain (unless your tenant is in the US region and was created before June 2020), plus `.auth0.com`. For example, if your tenant name were `travel0`, your Auth0 domain name would be `travel0.us.auth0.com`. (If your tenant were in the US and created before June 2020, then your domain name would be `https://travel0.auth0.com`.)

If you are using custom domains, this should be your custom domain name.

| Value | Description |
| - | - |
| `ORG_ID` | ID of the organization you want to retrieve. |
| `MGMT_API_ACCESS_TOKEN` | [Access Token for the Management API](/docs/docs/secure/tokens/access-tokens/management-api-access-tokens) with the scope `read:organizations`. |

### Response status codes

Possible response status codes are as follows:

| Status code | Error code | Message | Cause |
| - | - | - | - |
| `200` | | Organization successfully retrieved. | |
| `400` | `invalid_query_string` | Invalid request query string. The message will vary depending on the cause. | The query string is not valid. |
| `401` | | Invalid token. | |
| `401` | | Invalid signature received for JSON Web Token validation. | |
| `401` | | Client is not global. | |
| `403` | `insufficient_scope` | Insufficient scope; expected any of: `read:organizations`. | Tried to read/write a field that is not allowed with provided bearer token scopes. |
| `429` | | Too many requests. Check the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers. | |

## Retrieve organization by name

You can retrieve an organization by its name through the Management API.

Make a `GET` call to the `Get Organization by Name` endpoint. Be sure to replace the `ORG_NAME` and `MGMT_API_ACCESS_TOKEN` placeholder values with your organization ID and Management API Access Token, respectively.

**Find Your Auth0 Domain**

If your Auth0 domain is your tenant name, your regional subdomain (unless your tenant is in the US region and was created before June 2020), plus `.auth0.com`. For example, if your tenant name were `travel0`, your Auth0 domain name would be `travel0.us.auth0.com`. (If your tenant were in the US and created before June 2020, then your domain name would be `https://travel0.auth0.com`.)

If you are using custom domains, this should be your custom domain name.

| Value | Description |
| - | - |
| `ORG_ NAME` | Name of the organization you want to retrieve. Maximum length of 50 characters. |
| `MGMT_API_ACCESS_TOKEN` | [Access Token for the Management API](/docs/docs/secure/tokens/access-tokens/management-api-access-tokens) with the scope `read:organizations`. |

### Response status codes

Possible response status codes are as follows:

| Status code | Error code | Message | Cause |
| - | - | - | - |
| `200` | | Organizations successfully retrieved. | |
| `400` | `invalid_query_string` | Invalid request query string. The message will vary depending on the cause. | The query string is not valid. |
| `401` | | Invalid token. | |
| `401` | | Invalid signature received for JSON Web Token validation. | |
| `401` | | Client is not global. | |
| `403` | `insufficient_scope` | Insufficient scope; expected any of: `read:organizations`. | Tried to read/write a field that is not allowed with provided bearer token scopes. |
| `429` | | Too many requests. Check the X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset headers. | |
