v5

latestOpenAPI 3.0.3Apache 2.0raw.githubusercontent.com2026-02-283466592.5 MB
Users (beta)

Get user attribute names

Use contexts instead

After you have upgraded your LaunchDarkly SDK to use contexts instead of users, you should use Get context attribute names instead of this endpoint.

Get all in-use user attributes in the specified environment. The set of in-use attributes typically consists of all attributes seen within the past 30 days.

get/api/v2/user-attributes/{projectKey}/{environmentKey}

Path parameters

projectKeystring string required

The project key

The project key

environmentKeystring string required

The environment key

The environment key

Response

User attribute names response

privatestring[]

private attributes

customstring[]

custom attributes

standardstring[]

standard attributes

Example response

{
  "private": [
    "SSN",
    "credit_card_number"
  ],
  "custom": [
    "Age",
    "FavoriteFood",
    "FavoriteColor"
  ],
  "standard": [
    "key",
    "ip",
    "firstName",
    "lastName",
    "country",
    "anonymous"
  ]
}