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

# Get context attribute names

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

Get context attribute names.

## Path parameters

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

## Query parameters

- `filter` string, string — A comma-separated list of context filters. This endpoint only accepts `kind` filters, with the `equals` operator, and `name` 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: 100)

## Response `200`

Context attribute names collection response

- ContextAttributeNamesCollection
  - `items` ContextAttributeNames[], required — A collection of context attribute name data grouped by kind.
    - `kind` string, required — The kind associated with this collection of context attribute names.
    - `names` ContextAttributeName[], required — A collection of context attribute names.
      - `name` string, required — A context attribute's name.
      - `weight` integer, required — A relative estimate of the number of contexts seen recently that have an attribute with the associated name.
      - `redacted` boolean — Whether or not the attribute has one or more redacted values.

## 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)
