---
title: "Get effective environment"
method: GET
path: "/v1/environments/{environment_id}/effective"
tags: ["Environments"]
---

# Get effective environment

`GET /v1/environments/{environment_id}/effective`

## Request

- Base URL: `https://api.replicas.dev`
- URL: `https://api.replicas.dev/v1/environments/{environment_id}/effective`
- Auth: HTTP bearer

Returns the environment's configuration folded over its chain (the root, then each ancestor, then the environment itself) with provenance for every variable, file, MCP, skill, skill registry, plugin, and secret-sync connection. System prompts are listed in the order they're combined. Values from environments you can't read are blanked and flagged `masked`.

## Path parameters

- `environment_id` string, required

## Headers

- `X-Replicas-Api-Version` '2026-10-07'

## Response `200`

Effective configuration

- EffectiveEnvironmentResponse
  - `chain` object[], required
    - `id` string, uuid
    - `name` string
    - `user_id` string, nullable
  - `system_prompts` object[], required
    - `environment_id` string, uuid
    - `system_prompt` string
  - `repository` object, required
    - `repository_ids` string[]
    - `origin_environment_id` string, nullable
  - `memory` object, required
    - `read` boolean
    - `read_origin_environment_id` string, nullable
    - `write` boolean
    - `write_origin_environment_id` string, nullable
  - `default_skills` object, required
    - `value` DefaultSkills: Built-in skills installed in every workspace. Omitted abilities default to enabled.
      - `replicas_agent` object
        - `enabled` boolean
        - `abilities` object: Ability name to enabled flag.
    - `origin_environment_id` string, nullable: Nearest environment in the chain that sets default skills; null when the built-in defaults apply.
  - `items` EffectiveEnvironmentItem[], required
    - `kind` 'variable' | 'file' | 'mcp' | 'skill' | 'skills_registry' | 'plugin' | 'integration', required
    - `key` string, required
    - `origin_environment_id` string, uuid, required: Environment whose record is returned: the winner, or the hidden ancestor for `excluded`.
    - `status` 'own' | 'inherited' | 'overridden' | 'excluded', required
    - `inherited_from_environment_id` string, uuid, nullable, required
    - `locked` boolean, required: An ancestor locked this variable, so it can't be overridden or excluded here.
    - `masked` boolean, required
    - `record` object, required: The variable, file, MCP, skill, registry, plugin connection, or `{environment_id, provider}` record.

## Other responses

- `401`: Unauthorized - Invalid or missing API key
- `403`: Forbidden - The authenticated account cannot access this resource
- `404`: Resource not found
- `500`: Internal server error

---

[API](https://skmtc.dev/replicas/apis/replicas-api.md) - [All operations](https://skmtc.dev/replicas/apis/replicas-api/llms.txt) - [OpenAPI document](https://skmtc.dev/replicas/apis/replicas-api/revisions/2703ac1c9cb7?raw)
