Feature Flags
const TOKEN = "hv_..."; // your API keyconst headers = { Authorization: `Bearer ${TOKEN}` };const TOKEN = "hv_..."; // your API keyconst headers = { Authorization: `Bearer ${TOKEN}` };let token = "hv_..."; // your API keytoken := "hv_..." // your API key# All examples assume $TOKEN is an API key (hv_...)AUTH="Authorization: Bearer $TOKEN"List feature flags
Section titled “List feature flags”GET /admin/feature-flagsReturns all feature flags and their current status. Flags are backed by the happyview_instance_settings table — a flag is enabled when its key is set to "true".
interface FeatureFlag { key: string; name: string; description: string; enabled: boolean;}
const response = await fetch("http://127.0.0.1:3000/admin/feature-flags", { headers,});const data: FeatureFlag[] = await response.json();const response = await fetch("http://127.0.0.1:3000/admin/feature-flags", { headers,});const data = await response.json();let client = reqwest::Client::new();let response = client .get("http://127.0.0.1:3000/admin/feature-flags") .bearer_auth(token) .send() .await?;let data: serde_json::Value = response.json().await?;req, _ := http.NewRequest("GET", "http://127.0.0.1:3000/admin/feature-flags", nil)req.Header.Set("Authorization", "Bearer "+token)resp, err := http.DefaultClient.Do(req)curl http://127.0.0.1:3000/admin/feature-flags -H "$AUTH"Response: 200 OK
[ { "key": "feature.spaces_enabled", "name": "Permissioned Spaces", "description": "Collaborative data spaces with granular permissions, membership, and invites.", "enabled": false }]| Field | Type | Description |
|---|---|---|
key | string | Settings key for the flag |
name | string | Human-readable name |
description | string | What the flag controls |
enabled | boolean | Whether the flag is currently enabled |
To toggle a flag, use PUT /admin/settings/{key} with the value "true" or "false". See Instance Settings for details.

