How AI is applied across API Evangelist and APIs.io. Read my AI disclosure →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Optimizely Rules API

APIs to interact with Rules

Optimizely Rules API is one of 420 APIs that Optimizely publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Rules. The published artifact set on APIs.io includes an OpenAPI specification.

This API exposes 4 operations across 4 paths, and defines 12 schemas. It is described by OpenAPI 3.2.0, at version 0.3.7.

Requests are made against a single base URL, https://api.optimizely.com/flags/v1/.

4 operations 4 paths 12 schemas 4 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.2.0
API Version
0.3.7
Base URL
https://exp.mcp.opal.optimizely.com/mcp
Authentication
HTTP Bearer, OAuth 2.0, HTTP Bearer
Resource Areas
1

Authentication & Security 3

Optimizely Rules API declares 3 security schemes for authenticating requests. It accepts HTTP bearer tokens (BearerAuth). It supports OAuth 2.0 (OAuth2) using the authorizationCode flow, exposing 1 scope. It accepts HTTP bearer tokens (apiKey). By default, every request must be authenticated.

  • BearerAuth — To get a personal token, see https://docs.developers.optimizely.com/web/docs/personal-token
  • OAuth2 — Write applications that authenticate with the REST API via OAuth 2.0.

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 4 GET. Each is listed below with its method, path, parameters, and response codes.

Rules 4

APIs to interact with Rules

GET
/projects/{project_id}/environments/{environment_key}/rule/{rule_key}/holdouts
Fetch holdouts for a specific rulekey
fetch_holdouts_by_rule_key 3 params → 200400401403404
GET
/projects/{project_id}/flags/{flag_key}/environments/{environment_key}/rules/{rule_key}
Fetch the Rule for a Ruleset in an Environment
fetch_rule 4 params → 200400401403404
GET
/projects/{project_id}/rules
List Rules
list_all_rules_in_project 8 params → 200400401403
GET
/projects/{project_id}/rules/{experiment_id}
Fetch a Rule for a specific experimentid
fetch_rule_by_experiment_id 2 params → 200400401403404

Schemas 12

The contract defines 12 schemas that model the data the API accepts and returns. The most detailed are Rule (34 properties), Holdout (22 properties), Metric (13 properties), RuleVariation (6 properties). Each schema is shown below with its type and property counts.

Rules
object
6 properties 6 required
Holdout
object
Represents a holdout experiment that reserves a portion of traffic to measure the impact of feature flags and experiments. Holdouts help establish control grou…
22 properties 3 required
SubMetric
object
6 properties
HoldoutsList
array
A simple array of holdout objects without pagination metadata. Used by endpoints that return a basic list of holdouts, such as when fetching holdouts associate…
Metric
object
13 properties 2 required
RuleVariation
object
6 properties 1 required
Rule
object
Configuration which contains audiences, metrics and variations.
34 properties 3 required
RuleAllowList
object
2 properties 2 required
UrlValue
string
A single url.
ProblemDetail
object
https://tools.ietf.org/html/rfc7807section-3.1
5 properties 4 required
EventPropertyCondition
object
4 properties 4 required
RuleGroupRule
object
3 properties 1 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

optimizely-rules-api-openapi.yml Raw ↑

Other APIs Optimizely publishes across the network.

Optimizely Remote MCP Server — Experimentation
Optimizely Assets API
Optimizely Attributes API
Optimizely Audiences API
Optimizely Campaigns API
Optimizely Catalog Entries API
Optimizely Catalog Entry Relations API
Optimizely Catalog Nodes API
Optimizely Catalogs API
Optimizely Content API
Optimizely Content Types API
Optimizely Customers API
Where this information came from

This is an independent, third-party profile of Optimizely Rules API, published by API Evangelist. We do not operate, host, resell, or support these APIs, and we are not affiliated with or endorsed by the company unless stated above. Everything here is built from publicly available information — the company's own site, developer portal, documentation, public repositories, and the specifications it publishes for public use. Nothing is obtained by breaching a system, defeating an access control, or using credentials.

The Kin Score and Agent Readiness rating are independently calculated assessments of a company's public API artifacts, scored against a published rubric. They are not certifications, endorsements, security assessments, or audits.

Corrections, re-scores, and removal are free — no partnership or purchase required, and you do not need to justify the request. A removed company is recorded as unrated, never scored zero for having asked. Acknowledgement within one business day; removal within two.

info@apievangelist.com · Read the full data-sourcing policy →
On a security or compliance team? Put security in the subject line and you will get a person, not a form — we will tell you exactly which public URLs this profile was built from.