SnozeDevelopers
API referenceProduct controls

Evaluate a feature flag for the caller

Returns whether the named platform feature flag is on for this user and workspace, taking the flag's status, audience targeting, and percentage rollout into account. Requires a Clerk session with a synced profile — API keys are rejected — and the caller must be able to read the workspace, which is loaded first. An unknown key, or any failure while evaluating, resolves to disabled rather than an error.

GET
/v1/workspaces/{workspaceId}/product-controls/features/{key}
AuthorizationBearer <token>

Workspace API key created in Workspace settings → API keys. Scopes on the key bound what it can read and write.

In: header

Path Parameters

workspaceId*string
key*string

Response Body

application/json

application/json

application/json

curl -X GET "https://example.com/v1/workspaces/string/product-controls/features/string"
{  "data": {    "key": "string",    "enabled": true  }}