---
title: "Get Variables Config"
method: GET
path: "/v1/projects/{project_id}/variables/"
tags: ["Projects", "Variables"]
---

# Get Variables Config

`GET /v1/projects/{project_id}/variables/`

## Request

- Base URL: `https://logfire-api.pydantic.dev/api`
- URL: `https://logfire-api.pydantic.dev/api/v1/projects/{project_id}/variables/`
- Auth: OAuth 2
  - Authorization code: `api/oauth/authorize`
  - Token URL: `/api/oauth/token` scopes: `project:read_variables`
- TypeScript: <https://skmtc.dev/pydantic/apis/pydantic-logfire-api/docs/v1/projects/:project_id/variables/get.ts> (a function with typed inputs; its response is checked against the schema)

Get the full variables configuration for a project.

Returns the complete configuration in a format compatible with the
logfire SDK's VariablesConfig, suitable for use with remote variable providers.

Requires: User token with project:read_variables scope.

## Path parameters

- `project_id` string, uuid, required

## Response `200`

Successful Response

- VariablesConfig: Container for all managed variable configurations.
  - `variables` object, required

## Other responses

- `422`: Validation Error
- `429`: Rate limit exceeded

---

[API](https://skmtc.dev/pydantic/apis/pydantic-logfire-api.md) - [All operations](https://skmtc.dev/pydantic/apis/pydantic-logfire-api/llms.txt) - [OpenAPI document](https://skmtc.dev/pydantic/apis/pydantic-logfire-api/revisions/7996e45256f4?raw)
