---
title: "Read the datafile of an Environment"
method: GET
path: "/environments/{environment_id}/datafile"
tags: ["Environments"]
---

# Read the datafile of an Environment

`GET /environments/{environment_id}/datafile`

Get the datafile for an Environment.
The <a href="https://docs.developers.optimizely.com/full-stack/docs/example-datafile">Datafile</a> is a JSON
string that describes to the Full Stack SDK all the experiments and features running in a given environment and
dependent entities like audiences and attributes. Normally, you won't need to interact
with the datafile directly. The SDK exposes methods that operate on it internally.

## Path parameters

- `environment_id` integer, required

## Response `200`

Return Datafile for the Environment specified

- object

## Other responses

- `401` — Invalid credentials
- `403` — You do not have permission to access specified Environment
- `404` — Environment not found
- `default` — Unexpected error

---

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