---
title: "GetProjectVariables returns project variables."
method: GET
path: "/v1/orgs/{org}/projects/{project}/variables"
---

# GetProjectVariables returns project variables.

`GET /v1/orgs/{org}/projects/{project}/variables`

## Path parameters

- `org` string, required
- `project` string, required

## Query parameters

- `environment` string
- `forAllEnvironments` boolean

## Response `200`

A successful response.

- V1GetProjectVariablesResponse
  - `variables` V1ProjectVariable[]
    - `createdOn` string, date-time — Timestamp when the variable was created.
    - `environment` string — Environment the variable is set for. If empty, the variable is shared for all environments.
    - `id` string — Internal ID.
    - `name` string — Variable name (case insensitive).
    - `updatedByUserId` string — User ID that most recently updated the variable. May be empty.
    - `updatedOn` string, date-time — Timestamp when the variable was last updated.
    - `value` string — Variable value.
  - `variablesMap` object — Deprecated: Populated for backwards compatibility. (Renamed from "variables" to "variables_map").

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.dev/rilldata/apis/rill-admin-api.md) · [All operations](https://skmtc.dev/rilldata/apis/rill-admin-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/rilldata/rill-admin-api/revisions/abe7a430f373/schema)
