---
title: "List all environments"
method: GET
path: "/_api/environments/user"
tags: ["Environments"]
---

# List all environments

`GET /_api/environments/user`

## 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/environments/user/get.ts> (a function with typed inputs; its response is checked against the schema)

Fetch a list of all _environments_ the current user can access along with the corresponding information for each environment.

## Response `200`

Successfully fetched the list of _environments_

- GetUserEnvironmentsExamplesRc200
  - `code` integer: HTTP response code.
  - `error` boolean: Flag if there is an error in response. *False* for this response.
  - `result` object[]
    - `name` string
    - `options` GetUserGeoFabricsOptionsExamplesRc200
      - `associated_regions` string[]: List of data centers added.
      - `clusters` string[]: List of data centers added.
      - `dcList` string: List of data centers added.
      - `dynamo_local_tables` boolean: Flag indicator for dynamo_local_tables
      - `metadata` object: An optional JSON object with user defined key-value pairs
      - `name` string: Name of GeoFabric
      - `realTime` boolean: Whether the changes are published in real time streams
      - `spotDc` string: The Edge Location (Datacenter) where on-spot operations for the GeoFabric is performed
      - `status` string: Available or not
      - `tenant` string: Tenant name
    - `isSystem` boolean

## Other responses

- `400`: Failed due to missing or malformed data. Verify that all parameters are complete.

---

[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)
