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 Variable Definitions API

APIs to interact with Variable Definitions

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

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

This API exposes 6 operations across 3 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/.

6 operations 3 paths 12 schemas 1 DELETE2 GET1 PATCH2 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 Variable Definitions 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 6

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

Variable Definitions 6

APIs to interact with Variable Definitions

GET
/projects/{project_id}/flags/{flag_key}/variable_definitions
Fetch all variable definitions for flag.
list_variable_definitions 7 params → 200400401403
PATCH
/projects/{project_id}/flags/{flag_key}/variable_definitions
Update Variable Definitions
update_variable_definitions 2 params body → 200400401403404409
POST
/projects/{project_id}/flags/{flag_key}/variable_definitions
Create Variable Definition
create_variable_definition 2 params body → 200400401403404409
POST
/projects/{project_id}/flags/{flag_key}/variable_definitions/brainstorm
Brainstorm variable definitions using AI.
brainstorm_variable_definitions 2 params body → 200400401403
DELETE
/projects/{project_id}/flags/{flag_key}/variable_definitions/{variable_definition_key}
Delete a Variable Definition
delete_variable_definition 3 params → 204400401403404
GET
/projects/{project_id}/flags/{flag_key}/variable_definitions/{variable_definition_key}
Fetch a single variable definition by its key.
fetch_variable_definition 3 params → 200400401403

Schemas 12

The contract defines 12 schemas that model the data the API accepts and returns. The most detailed are VariableDefinitions (9 properties), SubMetric (6 properties), VariableDefinition (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
VariableDefinition
object
6 properties 3 required
SubMetric
object
6 properties
AudienceConditionsArray
array
VariableDefinitions
object
9 properties
BrainstormVariablesInteraction
object
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…
BrainstormVariablesChat
object
1 property 1 required
UrlValue
string
A single url.
ProblemDetail
object
https://tools.ietf.org/html/rfc7807section-3.1
5 properties 4 required
UrlList
array
A list of urls.

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

optimizely-variable-definitions-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 Variable Definitions 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.