---
title: "List one environment's variables"
method: GET
path: "/api/{org_id}/synthetics/environments/{env}/variables"
tags: ["Synthetics"]
---

# List one environment's variables

`GET /api/{org_id}/synthetics/environments/{env}/variables`

## Request

- Base URL: `https://api.openobserve.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openobserve.ai/api/{org_id}/synthetics/environments/{env}/variables`
- Auth: API key in header `Authorization`
- TypeScript: <https://skmtc.dev/openobserve/apis/openobserve-api-http/docs/api/:org_id/synthetics/environments/:env/variables/get.ts> (a function with typed inputs; its response is checked against the schema)

## Path parameters

- `org_id` string, required
- `env` string, required

## Response `200`

Success

- SyntheticsVariableView[]
  - union
    - object: What every read path returns for a shared variable.
      - `has_value` boolean
      - `kind` 'plain', required
      - `value` string, required
      - `created_at` integer, required
      - `description` string, required
      - `example` string, required
      - `id` string, required
      - `name` string, required
      - `owner` string, nullable
      - `tags` string[], required
      - `updated_at` integer, required
      - `used_by` string[]: Names of those checks, so a destructive action can list them before it is confirmed.
      - `used_by_checks` integer: Checks whose definition references `{{NAME}}`.
    - object: What every read path returns for a shared variable.
      - `has_value` boolean, required
      - `kind` 'secret', required
      - `created_at` integer, required
      - `description` string, required
      - `example` string, required
      - `id` string, required
      - `name` string, required
      - `owner` string, nullable
      - `tags` string[], required
      - `updated_at` integer, required
      - `used_by` string[]: Names of those checks, so a destructive action can list them before it is confirmed.
      - `used_by_checks` integer: Checks whose definition references `{{NAME}}`.

## Other responses

- `404`: Not found

---

[API](https://skmtc.dev/openobserve/apis/openobserve-api-http.md) - [All operations](https://skmtc.dev/openobserve/apis/openobserve-api-http/llms.txt) - [OpenAPI document](https://skmtc.dev/openobserve/apis/openobserve-api-http/revisions/0529b8a10252?raw)
