Optimizely Groups API

APIs to interact with mutual exclusion groups

Business capability
Product Telemetry & Experimentation Management BC-4280

Operations 12

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /projects/{project_id}/groups List a project's exclusion groups by environment · List Exclusion Groups #
Ask an LLM
“Which exclusion groups exist in my Feature Experimentation project for a given environment?”
“Can I search exclusion groups by name and show only enabled ones?”
Tell an agent
List exclusion groups in project {project_id} for environment {environment}.
Find exclusion groups in project {project_id} whose name or description contains {query}.
PATCH /projects/{project_id}/groups Patch several exclusion groups at once · Update Exclusion Groups #
Ask an LLM
“Can I update multiple exclusion groups in a project with one JSON patch request?”
“What happens to read-only properties I include when patching groups in bulk?”
Tell an agent
Apply a JSON patch to several exclusion groups in project {project_id}.
Bulk update the exclusion groups of project {project_id}.
POST /projects/{project_id}/groups Create an exclusion group in an environment · Create an Exclusion Group #
Ask an LLM
“How do I create a mutually exclusive group of flag rules in one environment?”
“Can I add rules to an exclusion group when I create it under a project path?”
Tell an agent
Create exclusion group {name} in project {project_id} for environment {environment_key}.
Create exclusion group {name} in project {project_id}, environment {environment_key}, containing rules {rules}.
POST /projects/{project_id}/groups/archived Archive exclusion groups · Archive Exclusion Groups #
Ask an LLM
“How do I hide exclusion groups I no longer use without deleting them?”
“Can I archive several exclusion groups by their keys in one go?”
Tell an agent
Archive exclusion groups {keys} in project {project_id}.
Move the exclusion groups with keys {keys} in project {project_id} to the archive.
POST /projects/{project_id}/groups/unarchived Restore archived exclusion groups · Unarchive Exclusion Groups #
Ask an LLM
“How do I bring back exclusion groups I archived earlier?”
“Can I unarchive several exclusion groups at once by key?”
Tell an agent
Unarchive exclusion groups {keys} in project {project_id}.
Restore archived groups {keys} in project {project_id}.
DELETE /projects/{project_id}/groups/{group_id} Permanently delete an exclusion group · Delete an Exclusion Group #
Ask an LLM
“How do I permanently delete an exclusion group so its data is gone?”
“Can a permanently deleted exclusion group ever be recovered?”
Tell an agent destructive · confirm first
Permanently delete exclusion group {group_id} from project {project_id}.
Erase group {group_id} in project {project_id} for good, not just archive it.
GET /projects/{project_id}/groups/{group_id} Fetch an exclusion group within a project · Fetch a Single Exclusion Group #
Ask an LLM
“What rules and settings does one exclusion group in my project have?”
“Can I fetch a single exclusion group using both its project and group id?”
Tell an agent
Fetch exclusion group {group_id} in project {project_id}.
Show the details of group {group_id} under project {project_id}.
GET /groups List exclusion groups (Web Experimentation v2) · List Exclusion Groups #
Ask an LLM
“Which exclusion groups exist in my Web Experimentation project?”
“Can I page through a project's exclusion groups by page number in the v2 API?”
Tell an agent
List exclusion groups for project {project_id} using the top-level groups endpoint.
Get page {page} of exclusion groups for project {project_id}, {per_page} per page.
POST /groups Create an exclusion group of experiments or campaigns · Create an Exclusion Group #
Ask an LLM
“How do I make experiments mutually exclusive in Web Experimentation?”
“Can I put campaigns and experiments into a new exclusion group when I create it?”
Tell an agent
Create exclusion group {name} in project {project_id} with entities {entities}.
Create a Web Experimentation exclusion group {name} for project {project_id} described as {description}.
DELETE /groups/{group_id} Archive an exclusion group by id · Archive an Exclusion Group #
Ask an LLM
“Does calling DELETE on a Web Experimentation exclusion group archive it rather than erase it?”
“How do I retire a single exclusion group by its group id alone?”
Tell an agent destructive · confirm first
Archive exclusion group {group_id} via the delete endpoint.
Retire Web Experimentation group {group_id}.
GET /groups/{group_id} Get an exclusion group by id · Get an Exclusion Group #
Ask an LLM
“Which experiments are in a given exclusion group?”
“Can I look up an exclusion group with only its group id?”
Tell an agent
Get exclusion group {group_id}.
Show which experiments and campaigns are in group {group_id}.
PATCH /groups/{group_id} Update an exclusion group's name or members · Update an Exclusion Group #
Ask an LLM
“How do I add or remove experiments from an existing exclusion group?”
“Can I rename an exclusion group or mark it archived through an update?”
Tell an agent
Rename exclusion group {group_id} to {name}.
Set the members of group {group_id} to {entities}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/optimizely:optimizely-groups-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

optimizely-groups-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Optimizely Groups API
  x-refined-note:
  - x-logo differs across the merged source definitions and was not carried
  version: '1.0'
  description: 'Operations tagged Groups across 2 of this provider''s published API definitions: optimizely-feature-experimentation-optimizely-feature-experimentation-api-openapi.json, optimizely-web-experimentation-optimizely-api-openapi.json. Each path carries the servers of the definition it was published in.'
servers:
- url: https://api.optimizely.com/flags/v1/
- url: https://api.optimizely.com/v2
security:
- apiKey: []
- OAuth2:
  - read
  - write
tags:


# --- truncated at 32 KB (41 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/optimizely/refs/heads/main/openapi/optimizely-groups-api-openapi.yml