---
title: "Resolve environment variables"
method: GET
path: "/v1/vaults/{vault_id}/env-vars/resolve"
tags: ["Environment Variables"]
---

# Resolve environment variables

`GET /v1/vaults/{vault_id}/env-vars/resolve`

## Request

- Base URL: `https://api.1claw.co`
- URL: `https://api.1claw.co/v1/vaults/{vault_id}/env-vars/resolve`
- Auth: HTTP bearer

Resolve the final KEY=VALUE set for an environment with full precedence (shared < vault < branch override).
When the caller is an agent with `env_auto_resolve: true`, the `environment` query parameter may be omitted —
the server uses the agent's tagged environment from the JWT. Org setting `env.enforce_agent_environment_scope`
blocks agents from resolving vars outside their tagged environment.

## Path parameters

- `vault_id` string, uuid, required

## Query parameters

- `environment` string
- `git_branch` string

## Response `200`

Resolved environment variables

- ResolveEnvVarsResponse
  - `vars` object
  - `sources` object
  - `environment` string
  - `git_branch` string, nullable
  - `resolved_at` string, date-time

---

[API](https://skmtc.dev/1claw/apis/1claw-api.md) · [All operations](https://skmtc.dev/1claw/apis/1claw-api/llms.txt) · [OpenAPI document](https://skmtc.dev/1claw/apis/1claw-api/revisions/5fa0918f3b41?raw)
