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 Variations API

APIs to interact with Variations

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

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

This API exposes 8 operations across 5 paths, and defines 16 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/.

8 operations 5 paths 16 schemas 1 DELETE2 GET1 PATCH4 POST

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 Variations 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 8

Across 5 paths, the API surfaces 8 operations — 1 DELETE, 2 GET, 1 PATCH, 4 POST. Each is listed below with its method, path, parameters, and response codes.

Variations 8

APIs to interact with Variations

GET
/projects/{project_id}/flags/{flag_key}/variations
List Variations
list_variations 10 params → 200400401403
PATCH
/projects/{project_id}/flags/{flag_key}/variations
Update Variations
update_variations 2 params body → 200400401403404409
POST
/projects/{project_id}/flags/{flag_key}/variations
Create a New Variation
create_variation 2 params body → 201400401403
POST
/projects/{project_id}/flags/{flag_key}/variations/archived
Archive Variations
archive_variations 2 params body → 200400401403404409
POST
/projects/{project_id}/flags/{flag_key}/variations/brainstorm
Brainstorm variations definitions using AI.
brainstorm_variations 2 params body → 200400401403
POST
/projects/{project_id}/flags/{flag_key}/variations/unarchived
Unarchive Variations
unarchive_variations 2 params body → 200400401403404409
DELETE
/projects/{project_id}/flags/{flag_key}/variations/{variation_key}
Delete a Variation
delete_variation 3 params → 204400401403404
GET
/projects/{project_id}/flags/{flag_key}/variations/{variation_key}
Fetch a Single Variation
fetch_variation 3 params → 200400401403404

Schemas 16

The contract defines 16 schemas that model the data the API accepts and returns. The most detailed are Variation (21 properties), Variations (15 properties), SubMetric (6 properties), ProblemDetail (5 properties). Each schema is shown below with its type and property counts.

AudienceConditionsString
string
A valid AudienceConditionsArray represented as a JSON string
PatchRequestBody
object
A JSONPatch document as defined by RFC 6902
4 properties 2 required
AudienceConditionsArray
array
SubMetric
object
6 properties
BrainstormVariationsChat
object
1 property 1 required
BulkOperationsRequestBody
object
1 property
Variations
object
15 properties 8 required
BrainstormVariablesInteraction
object
Variation
object
21 properties 8 required
AudienceConditions
An Audience Combination composed of other audiences. Each audience is a rule like 'User likes salads', and an Audience Combination is a Boolean combination of…
VariableValue
object
5 properties 1 required
VariationRequestBody
object
4 properties 2 required
UrlValue
string
A single url.
ProblemDetail
object
https://tools.ietf.org/html/rfc7807section-3.1
5 properties 4 required
VariationMap
object
Map of variations that include variation key as key and variation payload as value.
UrlList
array
A list of urls.

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

optimizely-variations-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 Variations 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.