---
title: "List env vars"
method: GET
path: "/hosting/env-vars"
tags: ["Hosting - Env Vars"]
---

# List env vars

`GET /hosting/env-vars`

List environment variables for an app or worker

## Query parameters

- `appUuid` string, uuid — Identifier of the app whose env vars to list.
- `workerUuid` string, uuid — Identifier of the worker whose env vars to list.

## Response `200`

Successful response

- object
  - `envVars` union[], required — List of environment variables (secrets are masked).
    - union
      - object
        - `uuid` string, uuid, required
        - `workspaceUuid` string, uuid, required
        - `key` string, required
        - `value` string, nullable, required
        - `isSecret` boolean, required
        - `userUuid` string, uuid, required
        - `createdAt` string, required
        - `updatedAt` string, required
        - `deletedAt` string, nullable, required
        - `kind` 'app', required
        - `appUuid` string, uuid, required
      - object
        - `uuid` string, uuid, required
        - `workspaceUuid` string, uuid, required
        - `key` string, required
        - `value` string, nullable, required
        - `isSecret` boolean, required
        - `userUuid` string, uuid, required
        - `createdAt` string, required
        - `updatedAt` string, required
        - `deletedAt` string, nullable, required
        - `kind` 'worker', required
        - `workerUuid` string, uuid, required

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

[API](https://skmtc.net/getcargo/apis/cargo-api.md) · [All operations](https://skmtc.net/getcargo/apis/cargo-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/getcargo/cargo-api/revisions/1d5a19e01d83/schema)
