Skip to content
Proud to collaborate with Microsoft for Startups

policy.feature-flag.query ​

Read a feature flag's state, or list an app's flags

Read feature-flag state for an app (GOV-7).

Inputs: actor, organization_uuid, identity_app_uuid (required); flag_key, flag_type ("module"|"workflow", default "module"), plan_tier optional.

  • With flag_key: returns found + enabled for that single flag.
  • Without flag_key: returns items [{flag_type, flag_key, plan_tier, enabled}] + total. Read-only. A missing flag reports found=False, enabled=False (the decision layer interprets "off/missing" as flag_off — fail-closed lives there, not here).

Overview ​

PropertyValue
Workflow typeAtomic
LibraryApp-policy
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
actorstringYes——
organization_uuiduuidYes——
identity_app_uuiduuidYes——
flag_keystringNo——
flag_typestringNo——
plan_tierstringNo——

Output Schema ​

FieldTypeRequiredDefaultDescription
foundbooleanNo——
enabledbooleanNo——
flag_typestringNo——
flag_keystringNo——
plan_tierstringNo——
itemslistNo——
totalintegerNo——
identity_app_uuiduuidNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_layerstringNo——
failed_stepstringNo——
errorstringNo——
error_typestringNo——
reasonstringNo——

States ​

StateInitialTerminalSuccessAuto-advanceDescription
pendingYesNo—execute—
completedNoYesYes——
failedNoYesNo——

State Diagram ​

Transitions ​

FromActionToDescription
pendingexecutecompleted—
* (any state)failfailed—

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "policy.feature-flag.query",
  "initial_data": {
    "actor": "value",
    "organization_uuid": "value",
    "identity_app_uuid": "value"
  }
}