Skip to content

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

ParameterTypeDescription
workspaceIdstring (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

FieldTypeDescription
idnumberFlag row identifier
namestringFlag name
enabledbooleanWhether the flag is enabled
workspace_idstring (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.

WalletHero Documentation