Skip to main content

Get identity flags and traits

GET 

https://edge.api.flagsmith.com/api/v1/identities

Retrieve the flags and traits for an identity. Note: identity will be lazily created if it does not already exist.

Request

Query Parameters

    identifier stringrequired

    Identity Key

Responses

OK
Schema
  • Array [
  • flags object[]
  • Array [
  • enabled boolean
    feature_state_value objectnullable
    oneOf
    string
    Example: a-remote-config-value
    feature object
    id integer
    Example: 42
    name string
    Example: show_hero_banner
    type string
    Example: STANDARD
  • ]
  • traits object[]
  • Array [
  • trait_key string
    Example: Name
    trait_value objectnullable
    oneOf
    string
    Example: B.A. Baracus
  • ]
  • ]

Authorization: X-Environment-Key

name: X-Environment-Keytype: apiKeyin: header
import http.client

conn = http.client.HTTPSConnection("edge.api.flagsmith.com")
payload = ''
headers = {
'Accept': 'application/json',
'X-Environment-Key': '<API_KEY_VALUE>'
}
conn.request("GET", "/api/v1/identities", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
Request Collapse all
Base URL
https://edge.api.flagsmith.com/api/v1
Auth
Parameters
— queryrequired
ResponseClear

Click the Send API Request button above and see the response here!