Skip to main content

Flags

GET

This will return a list of feature flags.

https://api.flaghub.io/v1/workspaces/{YOUR_WORKSPACE_ID}/flags

Returned payload example:

{
"flags": [
{
"reference": "landing_page",
"name": "Landing Page",
"isActive": true,
"id": "6OQDsGyjGaOlH2dcANaS"
},
{
"reference": "user_sign_up",
"name": "User Sign Up",
"isActive": true,
"id": "BMp1RybDfdMaYH8CkxuQ"
},
{
"reference": "new_shopping_cart",
"name": "New Shopping Cart",
"isActive": true,
"id": "Cph7mrPe6iJcE006DcfC"
}
]
}

Params

NameTypeDescriptionIs RequiredExample
envstringThe name of the environment's overwriteNo/flags?env=development