Skip to main content

Get flags

GET 

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

Retrieve the flags for an environment.

Request

Query Parameters

    feature integer

    ID of the feature to filter for. Note that, if provided, response is a single object, not an array.

Responses

OK
Schema
    oneOf
  • 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
  • ]

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/flags", 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
— query
ResponseClear

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