workspace

Get workspace flags

Changed on

Get feature flags for the workspace associated with your credentials.

Each flag is keyed by its slug and includes its current value, description, and whether it can be enabled or disabled. A workspace-specific value takes precedence over the flag's default. If no flags are available, data is an empty object.

This endpoint takes no request body. Required Permissions

Your root key must have the following permission:

  • unkey:v1:<workspace_id>:flags#read
post/v2/workspace.getFlags

Request

  • Base URL
    https://api.unkey.com
  • URL
    https://api.unkey.com/v2/workspace.getFlags
  • Auth
    HTTP bearer

Response

Workspace flags keyed by slug, or an empty object when no flags are available.

dataobject required

Flags keyed by their lowercase snake_case slugs. Empty when no flags are available.

Example response

{
  "meta": {
    "requestId": "req_123"
  }
}

Changes