Feature Flags
Read the feature flags configured for a workspace.
Get Feature Flags
GET /wallethero-api/workspace/:workspaceId/feature-flags
Returns the feature flags for a workspace.
Auth: Bearer token — workspace member.
Path Parameters
| Parameter | Type | Description |
|---|---|---|
workspaceId | string (UUID) | Workspace identifier |
Example Request
bash
curl "https://api.wallethero.app/wallethero-api/workspace/WORKSPACE_ID/feature-flags" \
-H "Authorization: Bearer YOUR_TOKEN"Response (200)
json
{
"feature_flags": [
{
"id": 1,
"name": "distributions_panel",
"enabled": true,
"workspace_id": "11111111-1111-1111-1111-111111111111"
}
]
}Response Fields
| Field | Type | Description |
|---|---|---|
id | number | Flag row identifier |
name | string | Flag name |
enabled | boolean | Whether the flag is enabled |
workspace_id | string (UUID) | Owning workspace |
SDK
typescript
// The SDK returns both a name→enabled map and the raw array.
const { featureFlags, raw } = await wh.workspaces.getFeatureFlags("WORKSPACE_ID");
if (featureFlags["distributions_panel"]) {
// feature is on
}Notes
- Feature flags are managed by WalletHero administrators; contact support to enable additional features for your workspace.