---
title: "Fetch list of tenants"
method: GET
path: "/_api/tenants"
tags: ["Administration"]
---

# Fetch list of tenants

`GET /_api/tenants`

## Request

- The document declares no server URL.
- Auth: one of:
  - API key in header `Authorization`
  - HTTP bearer
- TypeScript: <https://skmtc.dev/macrometa/apis/macrometa-api-reference/docs/_api/tenants/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch a list of tenants in the system.

**Note**: Requires *administrator* permissions.

## Response `200`

Successfully fetched tenants.

- AdministrationTenantsGetRc200
  - `code` integer: HTTP response code.
  - `error` boolean: Flag if there is an error in response. *False* for this response.
  - `result` AdministrationTenantsHelper
    - `tenant` string: The tenant name.
    - `dcList` unknown
    - `status` string: The tenant status.

## Other responses

- `401`: Failed because you do not have administrator permissions.
- `403`: Failed to validate because you do not have access to the server.

---

[API](https://skmtc.dev/macrometa/apis/macrometa-api-reference.md) - [All operations](https://skmtc.dev/macrometa/apis/macrometa-api-reference/llms.txt) - [OpenAPI document](https://skmtc.dev/macrometa/apis/macrometa-api-reference/revisions/2006b6d7f31d?raw)
