Automattic Experiments API

The experiments API from Automattic — 29 operation(s) for experiments.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 42

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 /wpcom/v2/experiments/0.1.0/analyses/{experiment_id} Get an experiment's analysis · GET /wpcom/v2/experiments/0.1.0/analyses/{experiment_id} #
Ask an LLM
“What did the analysis of an experiment look like?”
“Can I see an experiment's analysis for a given metric assignment?”
Tell an agent
Show the analysis of experiment {experiment_id}.
Get experiment {experiment_id}'s analysis for metric assignment {metric_assignment_id}.
GET /wpcom/v2/experiments/0.1.0/analyses/{experiment_id}/latest Get the latest analysis of an experiment · GET /wpcom/v2/experiments/0.1.0/analyses/{experiment_id}/latest #
Ask an LLM
“What is the most recent analysis of an experiment?”
“Can I pull the latest analysis for one experiment?”
Tell an agent
Show the latest analysis of experiment {experiment_id}.
Get the newest analysis of experiment {experiment_id} for metric assignment {metric_assignment_id}.
PATCH /wpcom/v2/experiments/0.1.0/assignments Assign users to experiment variations · PATCH /wpcom/v2/experiments/0.1.0/assignments #
Ask an LLM
“How do I assign a logged-in user to an experiment variation?”
“Can I override a user's username when assigning them to an experiment?”
Tell an agent
Assign variations {variations} to the user {anon_id}.
Assign {variations} to user {username_override} on the site.
POST /wpcom/v2/experiments/0.1.0/assignments/log Log an experiment assignment for a user · POST /wpcom/v2/experiments/0.1.0/assignments/log #
Ask an LLM
“How do I record that a user was assigned to an experiment variation?”
“Can I log an experiment assignment using a hash of the user identifier?”
Tell an agent
Log experiment {experiment_id} variation {experiment_variation_id} for {flag_key} with hash {hash_value} on attribute {hash_attribute}.
Record user {hash_value} on {hash_attribute} as assigned to variation {experiment_variation_id} of experiment {experiment_id} for flag {flag_key}.
GET /wpcom/v2/experiments/0.1.0/assignments/{platform} List experiment assignments for a platform · GET /wpcom/v2/experiments/0.1.0/assignments/{platform} #
Ask an LLM
“Which users were assigned to experiments on a given platform?”
“Can I filter experiment assignments by platform and user?”
Tell an agent
List experiment assignments for platform {platform}.
Show {platform} experiment assignments for users {anon_id}.
GET /wpcom/v2/experiments/0.1.0/autocomplete/events List experiment event types · GET /wpcom/v2/experiments/0.1.0/autocomplete/events #
Ask an LLM
“What event types can I use in experiments?”
“Which experiment event types are available?”
Tell an agent
List all experiment event types.
Show the experiment event types I can use.
GET /wpcom/v2/experiments/0.1.0/autocomplete/events/{name} Look up an experiment event type · GET /wpcom/v2/experiments/0.1.0/autocomplete/events/{name} #
Ask an LLM
“What does a specific experiment event type record?”
“Can I fetch one experiment event type by name?”
Tell an agent
Show experiment event type {name}.
Get the details of experiment event type {name}.
GET /wpcom/v2/experiments/0.1.0/autocomplete/products List experiment product types · GET /wpcom/v2/experiments/0.1.0/autocomplete/products #
Ask an LLM
“What product types can I target in experiments?”
“Which experiment product types are available?”
Tell an agent
List all experiment product types.
Show the experiment product types I can target.
GET /wpcom/v2/experiments/0.1.0/autocomplete/transaction-types List experiment transaction types · GET /wpcom/v2/experiments/0.1.0/autocomplete/transaction-types #
Ask an LLM
“What transaction types can I use in experiments?”
“Which experiment transaction types are available?”
Tell an agent
List all experiment transaction types.
Show the experiment transaction types I can use.
GET /wpcom/v2/experiments/0.1.0/autocomplete/users Autocomplete experiment user identifiers · GET /wpcom/v2/experiments/0.1.0/autocomplete/users #
Ask an LLM
“Can I autocomplete a user's identifier for experiments?”
“Which user identifiers are valid for experiment assignments?”
Tell an agent
Autocomplete an experiment user identifier.
Suggest experiment user identifiers matching a name.
GET /wpcom/v2/experiments/0.1.0/experiments List experiments · GET /wpcom/v2/experiments/0.1.0/experiments #
Ask an LLM
“What experiments are running on my site?”
“Can I include experiment analyses when listing experiments?”
Tell an agent
List all experiments.
List experiments including their analyses ({include_analyses}).
POST /wpcom/v2/experiments/0.1.0/experiments Create an experiment · POST /wpcom/v2/experiments/0.1.0/experiments #
Ask an LLM
“How do I create a new experiment?”
“Can I set start and end dates, variations and metrics when creating an experiment?”
Tell an agent
Create experiment {name} on {platform} for {owner_login} with description {description} and variations {variations}, metrics {metric_assignments}, segments {segment_assignments}, exclusions {exclusion_group_tag_ids}.
Create experiment {name} on {platform} for {owner_login} with variations {variations}, metrics {metric_assignments}, segments {segment_assignments}, exclusions {exclusion_group_tag_ids}, description {description}, starting {start_datetime} and ending {end_datetime}.
GET /wpcom/v2/experiments/0.1.0/experiments/guardrails/{platform} Get experiment guardrails for a platform · GET /wpcom/v2/experiments/0.1.0/experiments/guardrails/{platform} #
Ask an LLM
“What guardrails apply to experiments on a given platform?”
“Can I check the experiment guardrails for a platform?”
Tell an agent
Show the experiment guardrails for platform {platform}.
List the guardrails that apply to experiments on {platform}.
POST /wpcom/v2/experiments/0.1.0/experiments/preset Create an experiment from a preset · POST /wpcom/v2/experiments/0.1.0/experiments/preset #
Ask an LLM
“How do I create an experiment from a preset?”
“Can I generate an experiment from a preset on a platform?”
Tell an agent
Create an experiment from preset {name} on {platform}.
Generate an experiment named {name} on {platform} using a preset.
GET /wpcom/v2/experiments/0.1.0/experiments/{experiment_id} Get an experiment · GET /wpcom/v2/experiments/0.1.0/experiments/{experiment_id} #
Ask an LLM
“What are the details of a specific experiment?”
“Can I include participants when fetching an experiment?”
Tell an agent
Show experiment {experiment_id}.
Get experiment {experiment_id} including participants ({include_participants}).
PUT /wpcom/v2/experiments/0.1.0/experiments/{experiment_id} Replace an experiment · PUT /wpcom/v2/experiments/0.1.0/experiments/{experiment_id} #
Ask an LLM
“How do I fully replace an experiment's details?”
“Can I overwrite an experiment's variations, metrics and segments?”
Tell an agent
Replace experiment {experiment_id} with name {name}, platform {platform}, owner {owner_login}, description {description}, variations {variations}, metrics {metric_assignments}, segments {segment_assignments}, exclusions {exclusion_group_tag_ids}.
Overwrite experiment {experiment_id} with variations {variations}, metrics {metric_assignments}, segments {segment_assignments}, exclusions {exclusion_group_tag_ids}, name {name}, platform {platform}, owner {owner_login}, description {description}.
PATCH /wpcom/v2/experiments/0.1.0/experiments/{experiment_id} Update an experiment · PATCH /wpcom/v2/experiments/0.1.0/experiments/{experiment_id} #
Ask an LLM
“How do I end an experiment early?”
“Can I change an experiment's description or conclusion URL?”
Tell an agent
End experiment {experiment_id} with reason {end_reason}.
Set experiment {experiment_id}'s conclusion URL to {conclusion_url}.
POST /wpcom/v2/experiments/0.1.0/experiments/{experiment_id}/apply-guardrails Apply guardrails to an experiment · POST /wpcom/v2/experiments/0.1.0/experiments/{experiment_id}/apply-guardrails #
Ask an LLM
“How do I apply guardrails to an experiment?”
“Can I re-run an experiment with its guardrails applied?”
Tell an agent
Apply guardrails to experiment {experiment_id}.
Re-run experiment {experiment_id} with guardrails applied.
GET /wpcom/v2/experiments/0.1.0/experiments/{experiment_id}/early-participants List early participants in an experiment · GET /wpcom/v2/experiments/0.1.0/experiments/{experiment_id}/early-participants #
Ask an LLM
“Who were the early participants in an experiment?”
“Can I see early participants from the last few hours?”
Tell an agent
List early participants in experiment {experiment_id}.
Show experiment {experiment_id}'s early participants from the last {hours} hours.
PUT /wpcom/v2/experiments/0.1.0/experiments/{experiment_id}/status Set an experiment's status · PUT /wpcom/v2/experiments/0.1.0/experiments/{experiment_id}/status #
Ask an LLM
“How do I pause or resume an experiment?”
“Can I set an experiment's status to a specific value?”
Tell an agent
Set experiment {experiment_id} status to {status}.
Pause experiment {experiment_id} by setting its status to {status}.
POST /wpcom/v2/experiments/0.1.0/flags Create an experiment flag · POST /wpcom/v2/experiments/0.1.0/flags #
Ask an LLM
“How do I define a new experiment flag?”
“Can I set a default value and value type when creating a flag?”
Tell an agent
Create experiment flag {experiment_flag_key} with default {default_value} and value type {value_type}.
Add a new experiment flag {experiment_flag_key} described as {description}.
GET /wpcom/v2/experiments/0.1.0/flags List experiment flags · GET /wpcom/v2/experiments/0.1.0/flags #
Ask an LLM
“Which experiment flags are currently defined?”
“Can I filter experiment flags by status?”
Tell an agent
List all experiment flags.
List experiment flags with status {status}.
POST /wpcom/v2/experiments/0.1.0/flags/preset Create an experiment flag preset · POST /wpcom/v2/experiments/0.1.0/flags/preset #
Ask an LLM
“Can I save a flag definition as a preset?”
“How do I create a reusable experiment flag preset?”
Tell an agent
Create an experiment flag preset {experiment_flag_key}.
Save flag preset {experiment_flag_key} described as {description}.
PATCH /wpcom/v2/experiments/0.1.0/flags/{experiment_flag_key} Update an experiment flag · PATCH /wpcom/v2/experiments/0.1.0/flags/{experiment_flag_key} #
Ask an LLM
“Can I change the default value of an existing experiment flag?”
“How do I deactivate an experiment flag?”
Tell an agent
Set the default value of {experiment_flag_key} to {default_value}.
Set the status of experiment flag {experiment_flag_key} to {status}.
DELETE /wpcom/v2/experiments/0.1.0/flags/{experiment_flag_key} Delete an experiment flag · DELETE /wpcom/v2/experiments/0.1.0/flags/{experiment_flag_key} #
Ask an LLM
“How do I delete an experiment flag?”
“Can I remove a flag I no longer use?”
Tell an agent destructive · confirm first
Delete experiment flag {experiment_flag_key}.
Remove the {experiment_flag_key} experiment flag.
GET /wpcom/v2/experiments/0.1.0/flags/{experiment_flag_key}/details Get an experiment flag's details · GET /wpcom/v2/experiments/0.1.0/flags/{experiment_flag_key}/details #
Ask an LLM
“What are the rules and default value of a flag?”
“Can I see the details of one experiment flag?”
Tell an agent
Show the details of experiment flag {experiment_flag_key}.
Get the rules and default value for {experiment_flag_key}.
POST /wpcom/v2/experiments/0.1.0/flags/{experiment_flag_key}/experiments Add an experiment to a flag · POST /wpcom/v2/experiments/0.1.0/flags/{experiment_flag_key}/experiments #
Ask an LLM
“How do I run a new experiment under an existing flag?”
“Can I set variation values when adding an experiment to a flag?”
Tell an agent
Add experiment {experiment_id} to flag {experiment_flag_key}.
Run experiment {experiment_id} under {experiment_flag_key} with variation values {variation_values}.
GET /wpcom/v2/experiments/0.1.0/flags/{platform} List experiment flags for a platform · GET /wpcom/v2/experiments/0.1.0/flags/{platform} #
Ask an LLM
“Which experiment flags are defined for a given platform?”
“Can I see the flags set up for a specific platform?”
Tell an agent
List experiment flags for {platform}.
Show {platform} experiment flags from source {source}.
GET /wpcom/v2/experiments/0.1.0/metrics List experiment metrics · GET /wpcom/v2/experiments/0.1.0/metrics #
Ask an LLM
“What experiment metrics have been defined?”
“Can I see whether each metric is higher-is-better?”
Tell an agent
List all experiment metrics.
Show every experiment metric.
POST /wpcom/v2/experiments/0.1.0/metrics Create an experiment metric · POST /wpcom/v2/experiments/0.1.0/metrics #
Ask an LLM
“How do I define a new experiment metric?”
“Can I mark a metric as higher-is-better when creating it?”
Tell an agent
Create experiment metric {name} described as {description} with higher-is-better {higher_is_better}.
Define a new experiment metric {name} with event parameters {event_params}.
GET /wpcom/v2/experiments/0.1.0/metrics/{metric_id} Get an experiment metric · GET /wpcom/v2/experiments/0.1.0/metrics/{metric_id} #
Ask an LLM
“What are the parameters of a specific experiment metric?”
“Can I look up one experiment metric by id?”
Tell an agent
Show experiment metric {metric_id}.
Get the parameters of experiment metric {metric_id}.
PUT /wpcom/v2/experiments/0.1.0/metrics/{metric_id} Replace an experiment metric · PUT /wpcom/v2/experiments/0.1.0/metrics/{metric_id} #
Ask an LLM
“How do I overwrite an existing experiment metric?”
“Can I change the description of a metric I already defined?”
Tell an agent
Replace experiment metric {metric_id} with name {name}, description {description} and higher-is-better {higher_is_better}.
Overwrite experiment metric {metric_id} with event parameters {event_params}.
DELETE /wpcom/v2/experiments/0.1.0/metrics/{metric_id} Delete an experiment metric · DELETE /wpcom/v2/experiments/0.1.0/metrics/{metric_id} #
Ask an LLM
“How do I delete an experiment metric?”
“Can I remove a metric I no longer track?”
Tell an agent destructive · confirm first
Delete experiment metric {metric_id}.
Remove the {metric_id} experiment metric.
GET /wpcom/v2/experiments/0.1.0/segments List experiment segments · GET /wpcom/v2/experiments/0.1.0/segments #
Ask an LLM
“What user segments are defined for experiments?”
“Can I see the segment types available?”
Tell an agent
List all experiment segments.
Show every user segment defined for experiments.
POST /wpcom/v2/experiments/0.1.0/segments Create an experiment segment · POST /wpcom/v2/experiments/0.1.0/segments #
Ask an LLM
“How do I define a new user segment for experiments?”
“Can I choose the type of a new experiment segment?”
Tell an agent
Create experiment segment {name} of type {type}.
Define a new user segment {name} for experiments.
GET /wpcom/v2/experiments/0.1.0/segments/{segment_id} Get an experiment segment · GET /wpcom/v2/experiments/0.1.0/segments/{segment_id} #
Ask an LLM
“What type is a particular experiment segment?”
“Can I look up one experiment segment by id?”
Tell an agent
Show experiment segment {segment_id}.
Get the type of experiment segment {segment_id}.
DELETE /wpcom/v2/experiments/0.1.0/segments/{segment_id} Delete an experiment segment · DELETE /wpcom/v2/experiments/0.1.0/segments/{segment_id} #
Ask an LLM
“How do I delete an experiment segment?”
“Can I remove a segment I no longer use?”
Tell an agent destructive · confirm first
Delete experiment segment {segment_id}.
Remove the {segment_id} experiment segment.
GET /wpcom/v2/experiments/0.1.0/tags List experiment tags · GET /wpcom/v2/experiments/0.1.0/tags #
Ask an LLM
“What experiment tags exist?”
“Can I see the tags used to group experiments?”
Tell an agent
List all experiment tags.
Show every experiment tag.
POST /wpcom/v2/experiments/0.1.0/tags Create a new experiment tag · POST /wpcom/v2/experiments/0.1.0/tags #
Ask an LLM
“How do I register a new tag to group experiments?”
“Can I tag an experiment namespace with a description?”
Tell an agent
Create experiment tag {name} in namespace {namespace} described as {description}.
Add tag {name} to {namespace} for experiments using {description}.
GET /wpcom/v2/experiments/0.1.0/tags/{tag_id} Get an experiment tag · GET /wpcom/v2/experiments/0.1.0/tags/{tag_id} #
Ask an LLM
“What namespace and name does a specific experiment tag have?”
“Can I look up one experiment tag by id?”
Tell an agent
Show experiment tag {tag_id}.
Get the namespace and name of experiment tag {tag_id}.
PUT /wpcom/v2/experiments/0.1.0/tags/{tag_id} Update an experiment tag · PUT /wpcom/v2/experiments/0.1.0/tags/{tag_id} #
Ask an LLM
“How do I rename or redescribe an experiment tag?”
“Can I change the namespace of an existing experiment tag?”
Tell an agent
Update experiment tag {tag_id} to name {name} in namespace {namespace} described as {description}.
Rename experiment tag {tag_id} to {name}.
DELETE /wpcom/v2/experiments/0.1.0/tags/{tag_id} Delete an experiment tag · DELETE /wpcom/v2/experiments/0.1.0/tags/{tag_id} #
Ask an LLM
“How do I remove an experiment tag?”
“Can I delete an experiment tag by its ID?”
Tell an agent destructive · confirm first
Delete experiment tag {tag_id}.
Remove the experiment tag {tag_id}.

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/automattic:automattic-experiments-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

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

OpenAPI Specification

automattic-experiments-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: WordPress.com REST API — wpcom/v2 namespace Experiments API
  version: v2
  description: Derived by API Evangelist from the WordPress.com REST API route index published at https://public-api.wordpress.com/wpcom/v2/. Paths, HTTP methods, and parameter names/types/descriptions/defaults are taken verbatim from that index. Response schemas are not published in the route index, so successful responses are described but not schematised; the error envelope was observed live on public-api.wordpress.com.
  contact:
    name: Automattic
    url: https://developer.wordpress.com/docs/api/
  x-derived-from: https://public-api.wordpress.com/wpcom/v2/
  x-derived-by: API Evangelist enrichment pipeline
servers:
- url: https://public-api.wordpress.com
security:
- bearerAuth: []
tags:


# --- truncated at 32 KB (45 KB total) ---
# Full source: https://artifacts.apis.io/automattic/openapi/automattic-experiments-api-openapi.yml