Environment Variables

Resolve environment variables

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.

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

Path parameters

vault_idstring uuid required

Query parameters

environmentstring

Target environment (production, preview, development, or custom). Required for human callers; optional for agents with env_auto_resolve when the agent has an environment tag.

git_branchstring

Optional git branch for preview branch overrides

Response

Resolved environment variables

varsobject
sourcesobject
environmentstring
git_branchstring nullable
resolved_atstring date-time

Changes

No recorded changes to this operation across all 2 revisions of this API.