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}

Authorization

apiKey
headerAuthorizationBearer <snoze_sk_…>

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

Path Parameters

workspaceId*string
key*string

Response Body

Success

application/json
  1. response
data*
Example Request
curl -X GET 'https://api.snoze.dev/v1/workspaces/string/product-controls/features/string'
Example Response
{  "data": {    "key": "string",    "enabled": true  }}