Skip to content
Dashboard
Theme
Theme

Evaluate many feature flags for a context

POST /v1/feature_flags/evaluate_bulk: Evaluate many feature flags for a context.

View Markdown

POST /v1/feature_flags/evaluate_bulk

Every flag of the environment, or only keys (unknown keys are left out). Served from the configuration snapshot.

Scope
feature_flags:evaluate
Auth
Secret key (sk_…)
Since
1.1
  • OhAuthCat-Version string

    Minor version; defaults to the environment’s pin.

  • keys array of string

    max items 500

  • context FeatureFlagContext

Errors share one shape; see the error code catalogue.

curl -X POST \
"https://api.ohauthcat.com/v1/feature_flags/evaluate_bulk" \
-H "Authorization: Bearer $OHAUTHCAT_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keys": [
"plan"
],
"context": {
"organization_id": "org_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"user_id": "user_01J9Z3K5V7W8X9Y0Z1A2B3C4D5",
"attributes": {}
}
}'
Response 200
{
"object": "list",
"data": [
{
"object": "feature_flag_evaluation",
"key": "plan",
"variant": "default",
"value": {},
"reason": "Primary SSO connection for Acme Corp."
}
]
}