Flag Management
List Feature Flags
GET
/
projects
/
{project_id}
/
workspaces
/
{workspace_id}
/
feature-flags
List Feature Flags
curl --request GET \
--url https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"results": [
{
"name": "<string>",
"key": "<string>",
"tags": [
"<string>"
],
"context": "<string>",
"ruleset": {
"variants": [
{
"key": "<string>",
"value": true,
"is_control": true,
"split": 0.5,
"description": "<string>",
"is_sticky": false
}
],
"rollout": [
{
"rollout_percentage": 0.5,
"variant_splits": {},
"name": "<string>",
"cohort_definition": {},
"runtime_evaluation_definition": {},
"runtime_evaluation_rule": {},
"runtime_event_rule": {
"event_name": "<string>",
"time_window": "while_flag_enabled",
"property_filters": {}
},
"cohort_hash": "<string>",
"variant_override": {
"key": "<string>"
}
}
],
"test": {}
},
"id": "<string>",
"project_id": 123,
"content_type": "<string>",
"created": "2023-11-07T05:31:56Z",
"creator_id": 123,
"creator_name": "<string>",
"creator_email": "<string>",
"modified": "2023-11-07T05:31:56Z",
"can_update_basic": false,
"is_superadmin": false,
"allow_staff_override": false,
"can_view": false,
"can_share": false,
"can_pin": false,
"is_shared_with_project": false,
"description": "<string>",
"experiment_id": "<string>",
"status": "disabled",
"data_group_id": "<string>",
"workspace_id": 123,
"is_experiment_active": true,
"hash_salt": "<string>",
"reset_hash_salt": true,
"last_modified_by_id": 123,
"last_modified_by_name": "<string>",
"last_modified_by_email": "<string>",
"is_favorited": true,
"pinned_date": "<string>",
"enabled_at": "2023-11-07T05:31:56Z",
"deleted": "2023-11-07T05:31:56Z",
"content_environments_id": "<string>",
"project_name": "<string>"
}
]
}{
"error": "<string>",
"status": "error"
}{
"error": "<string>",
"status": "error"
}Authorizations
Service Account
Query Parameters
Whether to include archived (soft-deleted) feature flags. Defaults to false.
Available options:
true, false Was this page helpful?
⌘I
List Feature Flags
curl --request GET \
--url https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Basic <encoded-value>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{regionAndDomain}.com/api/app/projects/{project_id}/workspaces/{workspace_id}/feature-flags")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"status": "<string>",
"results": [
{
"name": "<string>",
"key": "<string>",
"tags": [
"<string>"
],
"context": "<string>",
"ruleset": {
"variants": [
{
"key": "<string>",
"value": true,
"is_control": true,
"split": 0.5,
"description": "<string>",
"is_sticky": false
}
],
"rollout": [
{
"rollout_percentage": 0.5,
"variant_splits": {},
"name": "<string>",
"cohort_definition": {},
"runtime_evaluation_definition": {},
"runtime_evaluation_rule": {},
"runtime_event_rule": {
"event_name": "<string>",
"time_window": "while_flag_enabled",
"property_filters": {}
},
"cohort_hash": "<string>",
"variant_override": {
"key": "<string>"
}
}
],
"test": {}
},
"id": "<string>",
"project_id": 123,
"content_type": "<string>",
"created": "2023-11-07T05:31:56Z",
"creator_id": 123,
"creator_name": "<string>",
"creator_email": "<string>",
"modified": "2023-11-07T05:31:56Z",
"can_update_basic": false,
"is_superadmin": false,
"allow_staff_override": false,
"can_view": false,
"can_share": false,
"can_pin": false,
"is_shared_with_project": false,
"description": "<string>",
"experiment_id": "<string>",
"status": "disabled",
"data_group_id": "<string>",
"workspace_id": 123,
"is_experiment_active": true,
"hash_salt": "<string>",
"reset_hash_salt": true,
"last_modified_by_id": 123,
"last_modified_by_name": "<string>",
"last_modified_by_email": "<string>",
"is_favorited": true,
"pinned_date": "<string>",
"enabled_at": "2023-11-07T05:31:56Z",
"deleted": "2023-11-07T05:31:56Z",
"content_environments_id": "<string>",
"project_name": "<string>"
}
]
}{
"error": "<string>",
"status": "error"
}{
"error": "<string>",
"status": "error"
}