---
title: "Get context attribute values"
method: GET
path: "/api/v2/projects/{projectKey}/environments/{environmentKey}/context-attributes/{attributeName}"
tags: ["Contexts"]
---

# Get context attribute values

`GET /api/v2/projects/{projectKey}/environments/{environmentKey}/context-attributes/{attributeName}`

Get context attribute values.

## Path parameters

- `projectKey` string, string, required — The project key
- `environmentKey` string, string, required — The environment key
- `attributeName` string, string, required — The attribute name

## Query parameters

- `filter` string, string — A comma-separated list of context filters. This endpoint only accepts `kind` filters, with the `equals` operator, and `value` filters, with the `startsWith` operator. To learn more about the filter syntax, read [Filtering contexts and context instances](https://launchdarkly.com/docs/ld-docs/api/contexts#filtering-contexts-and-context-instances).
- `limit` integer — Specifies the maximum number of items in the collection to return (max: 100, default: 50)

## Response `200`

Context attribute values collection response

- ContextAttributeValuesCollection
  - `items` ContextAttributeValues[], required — A collection of context attribute value data grouped by kind.
    - `kind` string, required — The kind associated with this collection of context attribute values.
    - `values` ContextAttributeValue[], required — A collection of context attribute values.
      - `name` string, required — A value for a context attribute.
      - `weight` integer, required — A relative estimate of the number of contexts seen recently that have a matching value for a given attribute.

## Other responses

- `400` — Invalid request
- `401` — Invalid access token
- `403` — Forbidden
- `429` — Rate limited

---

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