---
title: "Return the Optimizely config for the given environment"
method: GET
path: "/v1/config"
---

# Return the Optimizely config for the given environment

`GET /v1/config`

Return all available experiment and features definitions for this environment.

## Response `200`

Valid response

- OptimizelyConfig
  - `environmentKey` string
  - `sdkKey` string
  - `revision` string
  - `experimentsMap` object
  - `featuresMap` object
  - `attributes` OptimizelyAttribute[]
    - `id` string
    - `key` string
  - `audiences` OptimizelyAudience[]
    - `id` string
    - `name` string
    - `conditions` string
  - `events` OptimizelyEvent[]
    - `id` string
    - `key` string
    - `experimentIds` string[]

## Other responses

- `401` — Unauthorized, invalid JWT
- `403` — You do not have necessary permissions for the resource

## Changes

- **2023-05-22** `b03cfe30eb69` — 19 breaking, 1 info
  - the response's body type/format changed from ``/`` to `object`/`` for status `200`
  - the response's body type/format changed from ``/`` to `object`/`` for status `403`
  - the `attributes/items/` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - the `audiences/items/` response's property type/format changed from ``/`` to `object`/`` for status `200`
  - …16 more
- **2021-09-23** `e35a40538167` — 1 breaking, 17 info
  - the `featuresMap/additionalProperties/variablesMap/additionalProperties/` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - added the optional property `attributes` to the response with the `200` status
  - added the optional property `audiences` to the response with the `200` status
  - added the optional property `environmentKey` to the response with the `200` status
  - …14 more
- …earlier changes not shown

[Full history](https://skmtc.dev/optimizely/apis/optimizely-agent-api/changes/v1/config/get.md)

---

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