---
title: "Get SDK Key"
method: GET
path: "/v1/configs/{configId}/environments/{environmentId}"
tags: ["SDK Keys"]
---

# Get SDK Key

`GET /v1/configs/{configId}/environments/{environmentId}`

## Request

- Base URL: `https://api.configcat.com`
- URL: `https://api.configcat.com/v1/configs/{configId}/environments/{environmentId}`
- Auth: HTTP basic
- TypeScript: <https://skmtc.dev/configcat/apis/configcat-public-management-api/docs/v1/configs/:configId/environments/:environmentId/get.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint returns the SDK Key for your Config in a specified Environment.

## Path parameters

- `configId` string, uuid, required
- `environmentId` string, uuid, required

## Response `200`

- SdkKeysModel
  - `primary` string, required: The primary SDK key.
  - `secondary` string, nullable, required: The secondary SDK key.

## Other responses

- `400`: Bad request.
- `404`: Not found.
- `429`: Too many requests. In case of the request rate exceeds the rate limits.

## Changes

- **2025-10-09** `8b8a102e5ed1`: 1 info
  - the response property `secondary` became required for the status `200`
- **2025-05-16** `2949501eef38`: 1 info
  - the response property `primary` became required for the status `200`
- **2024-05-18** `f14408c16a8c`: 1 breaking, 1 info
  - removed the media type `application/hal+json` for the response with the status `200`
  - removed the non-success response with the status `401`

[Operation history](https://skmtc.dev/configcat/apis/configcat-public-management-api/changes/v1/configs/:configId/environments/:environmentId/get.md)

---

[API](https://skmtc.dev/configcat/apis/configcat-public-management-api.md) - [All operations](https://skmtc.dev/configcat/apis/configcat-public-management-api/llms.txt) - [OpenAPI document](https://skmtc.dev/configcat/apis/configcat-public-management-api/revisions/0f143561d265?raw)
