GrowthBook

App · 25 actions

Manage GrowthBook feature flags, experiments, projects and saved groups, turn flags on or off per environment, read experiment results, and follow new flags, flag changes, new experiments and experiments starting or stopping.

Actions

ActionWhat it does
Create experimentCreate a draft experiment with its variations, ready to link to a feature flag and start in GrowthBook.
Create feature flagCreate a feature flag with its type and default value, on in the environments you choose.
Create projectCreate a project to group feature flags, experiments and metrics.
Create saved groupCreate a saved group: a list of attribute values, such as user IDs, or a targeting condition.
Delete experimentDelete an experiment.
Delete feature flagDelete a feature flag.
Delete projectDelete a project.
Delete saved groupDelete a saved group.
Get experimentGet an experiment's variations, phases, status and result summary.
Get experiment resultsGet an experiment's latest results: users and metric values per variation.
Get feature flagGet a feature flag, whether it is on in each environment, and its rules.
Get projectGet a project's name, description and owner.
List environmentsList the organization's environments, such as dev and production.
List experimentsList experiments, optionally by project, status or name, sorted as you choose.
List feature flagsList feature flags with their default value and per-environment settings.
List membersList the organization's members and their roles.
List metricsList the metrics experiments can measure.
List projectsList the organization's projects.
List saved groupsList saved groups: lists of IDs or targeting conditions feature flags reuse.
List segmentsList the segments experiment results can be narrowed to.
Turn feature flag on or offTurn a feature flag on or off in one environment and publish the change.
Update experimentChange an experiment's name, hypothesis, description or tags, or archive it.
Update feature flagChange a feature flag's default value, description, owner, tags or project, or archive it.
Update projectRename a project or change its description or owner.
Update saved groupRename a saved group or replace its values or condition.

Create experiment

Create a draft experiment with its variations, ready to link to a feature flag and start in GrowthBook.

Inputs

NamenametextRequired
The experiment's name.
Tracking keytracking_keytextRequired
The key sent with exposure events, such as checkout-test. It must be unique.
VariationsvariationslistRequired
The variations' names, control first, such as Control and New checkout. At least two.
Hypothesishypothesistext
What you expect to happen.
Descriptiondescriptiontext
What the experiment tests.
Projectproject_idtext
The project the experiment belongs to.
Tagstagslist
Tags for filtering and grouping.
Ownerownertext
The owner's email address in GrowthBook.
Data sourcedatasource_idtext
The data source its results come from.
Goal metricsmetric_idslist
The goal metrics.
Assign by attributehash_attributetext
The user attribute that assigns variations, such as id. Leave empty for id.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "experiment": {
      "archived": true,
      "autoRefresh": true,
      "dateCreated": "example",
      "dateUpdated": "example",
      "description": "example",
      "hashAttribute": "example",
      "hypothesis": "example",
      "id": "example",
      "linkedFeatures": [
        "example"
      ],
      "name": "example",
      "owner": "example",
      "phases": [
        {
          "condition": "example",
          "coverage": 1,
          "dateEnded": "example",
          "dateStarted": "example",
          "name": "example",
          "reasonForStopping": "example"
        }
      ],
      "project": "example",
      "resultSummary": {
        "conclusions": "example",
        "status": "example",
        "winner": "example"
      },
      "settings": {
        "assignmentQueryId": "example",
        "datasourceId": "example",
        "statsEngine": "example"
      },
      "status": "example",
      "tags": [
        "example"
      ],
      "trackingKey": "example",
      "type": "example",
      "variations": [
        {
          "description": "example",
          "key": "example",
          "name": "example",
          "variationId": "example"
        }
      ]
    }
  }
}

Create feature flag

Create a feature flag with its type and default value, on in the environments you choose.

Inputs

KeykeytextRequired
The flag's key, used in code, such as new-checkout. It can't be changed later.
Value typevalue_typetext
The kind of value the flag serves. Leave empty for on or off.One of: boolean (On or off), string (Text), number, json.
Default valuedefault_valuetextRequired
The value served when the flag is on and no rule matches, such as true, a word, a number or JSON.
Descriptiondescriptiontext
What the flag is for.
Projectproject_idtext
The project the flag belongs to.
Ownerownertext
The owner's email address in GrowthBook.
Tagstagslist
Tags for filtering and grouping.
On in environmentsenabled_inlist
Environments the flag is on in. Leave empty to follow each environment's default.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "feature": {
      "archived": true,
      "dateCreated": "example",
      "dateUpdated": "example",
      "defaultValue": "example",
      "description": "example",
      "environments": {},
      "id": "example",
      "owner": "example",
      "ownerEmail": "example",
      "prerequisites": [
        "example"
      ],
      "project": "example",
      "revision": {
        "comment": "example",
        "date": "example",
        "version": 1
      },
      "tags": [
        "example"
      ],
      "valueType": "example"
    }
  }
}

Create project

Create a project to group feature flags, experiments and metrics.

Inputs

NamenametextRequired
The project's name.
Descriptiondescriptiontext
What the project is for.
Ownerownertext
The owner's email address in GrowthBook.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "project": {
      "dateCreated": "example",
      "dateUpdated": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "owner": "example",
      "publicId": "example",
      "settings": {}
    }
  }
}

Create saved group

Create a saved group: a list of attribute values, such as user IDs, or a targeting condition.

Inputs

NamenametextRequired
The group's name.
Typetypetext
A list of values or a targeting condition. Leave empty for a list.One of: list (A list of attribute values), condition (A targeting condition).
Attributeattribute_keytext
For a list: the attribute the values are, such as id or email.
Valuesvalueslist
For a list: the attribute values in the group.
Conditionconditiontext
For a condition: the targeting condition as JSON, such as {"country": "US"}.
Descriptiondescriptiontext
Who is in the group.
Ownerownertext
The owner's email address in GrowthBook.
Projectsproject_idslist
Projects the group is offered in. Leave empty for all.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "savedGroup": {
      "archived": true,
      "attributeKey": "example",
      "condition": "example",
      "dateCreated": "example",
      "dateUpdated": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "owner": "example",
      "projects": [
        "example"
      ],
      "type": "example",
      "values": [
        "example"
      ]
    }
  }
}

Delete experiment

Delete an experiment.

Inputs

Experimentexperiment_idtextRequired
The experiment.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "deletedId": "example"
  }
}

Delete feature flag

Delete a feature flag.

Inputs

Feature flagfeature_idtextRequired
The feature flag.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "deletedId": "example"
  }
}

Delete project

Delete a project.

Inputs

Projectproject_idtextRequired
The project.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "deletedId": "example"
  }
}

Delete saved group

Delete a saved group.

Inputs

Saved groupsaved_group_idtextRequired
The saved group.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "deletedId": "example"
  }
}

Get experiment

Get an experiment's variations, phases, status and result summary.

Inputs

Experimentexperiment_idtextRequired
The experiment.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "experiment": {
      "archived": true,
      "autoRefresh": true,
      "dateCreated": "example",
      "dateUpdated": "example",
      "description": "example",
      "hashAttribute": "example",
      "hypothesis": "example",
      "id": "example",
      "linkedFeatures": [
        "example"
      ],
      "name": "example",
      "owner": "example",
      "phases": [
        {
          "condition": "example",
          "coverage": 1,
          "dateEnded": "example",
          "dateStarted": "example",
          "name": "example",
          "reasonForStopping": "example"
        }
      ],
      "project": "example",
      "resultSummary": {
        "conclusions": "example",
        "status": "example",
        "winner": "example"
      },
      "settings": {
        "assignmentQueryId": "example",
        "datasourceId": "example",
        "statsEngine": "example"
      },
      "status": "example",
      "tags": [
        "example"
      ],
      "trackingKey": "example",
      "type": "example",
      "variations": [
        {
          "description": "example",
          "key": "example",
          "name": "example",
          "variationId": "example"
        }
      ]
    }
  }
}

Get experiment results

Get an experiment's latest results: users and metric values per variation.

Inputs

Experimentexperiment_idtextRequired
The experiment.
Phasephasetext
Which phase, counting from 0. Leave empty for the latest.
Dimensiondimensiontext
Break the results down by this dimension.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "result": {
      "dateEnd": "example",
      "dateStart": "example",
      "dateUpdated": "example",
      "dimension": {
        "id": "example",
        "type": "example"
      },
      "experimentId": "example",
      "id": "example",
      "phase": "example",
      "results": [
        {
          "checks": {
            "srm": 1
          },
          "dimension": "example",
          "metrics": [
            {
              "metricId": "example",
              "variations": [
                {}
              ]
            }
          ],
          "totalUsers": 1
        }
      ]
    }
  }
}

Get feature flag

Get a feature flag, whether it is on in each environment, and its rules.

Inputs

Feature flagfeature_idtextRequired
The feature flag.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "feature": {
      "archived": true,
      "dateCreated": "example",
      "dateUpdated": "example",
      "defaultValue": "example",
      "description": "example",
      "environments": {},
      "id": "example",
      "owner": "example",
      "ownerEmail": "example",
      "prerequisites": [
        "example"
      ],
      "project": "example",
      "revision": {
        "comment": "example",
        "date": "example",
        "version": 1
      },
      "tags": [
        "example"
      ],
      "valueType": "example"
    }
  }
}

Get project

Get a project's name, description and owner.

Inputs

Projectproject_idtextRequired
The project.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "project": {
      "dateCreated": "example",
      "dateUpdated": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "owner": "example",
      "publicId": "example",
      "settings": {}
    }
  }
}

List environments

List the organization's environments, such as dev and production.

Inputs

None.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "environments": [
      {
        "defaultState": true,
        "description": "example",
        "id": "example",
        "isProduction": true,
        "projects": [
          "example"
        ],
        "toggleOnList": true
      }
    ]
  }
}

List experiments

List experiments, optionally by project, status or name, sorted as you choose.

Inputs

Projectproject_idtext
Only those in this project.
Statusstatustext
Only experiments with this status.One of: draft, running, stopped.
Searchsearchtext
Only experiments matching this text.
Sort bysort_bytext
What to sort by. Leave empty for date created.One of: dateCreated (Date created), dateUpdated (Date updated), name.
Sort ordersort_ordertext
Which come first. Leave empty for oldest first.One of: asc (Oldest or A to Z first), desc (Newest or Z to A first).
Limitlimitnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Offsetoffsetnumber
How many to skip, for reading the next page. Leave empty to start at the first.At least 0.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "count": 1,
    "experiments": [
      {
        "archived": true,
        "autoRefresh": true,
        "dateCreated": "example",
        "dateUpdated": "example",
        "description": "example",
        "hashAttribute": "example",
        "hypothesis": "example",
        "id": "example",
        "linkedFeatures": [
          "example"
        ],
        "name": "example",
        "owner": "example",
        "phases": [
          {
            "condition": "example",
            "coverage": 1,
            "dateEnded": "example",
            "dateStarted": "example",
            "name": "example",
            "reasonForStopping": "example"
          }
        ],
        "project": "example",
        "resultSummary": {
          "conclusions": "example",
          "status": "example",
          "winner": "example"
        },
        "settings": {
          "assignmentQueryId": "example",
          "datasourceId": "example",
          "statsEngine": "example"
        },
        "status": "example",
        "tags": [
          "example"
        ],
        "trackingKey": "example",
        "type": "example",
        "variations": [
          {
            "description": "example",
            "key": "example",
            "name": "example",
            "variationId": "example"
          }
        ]
      }
    ],
    "hasMore": true,
    "limit": 1,
    "nextOffset": 1,
    "offset": 1,
    "total": 1
  }
}

List feature flags

List feature flags with their default value and per-environment settings.

Inputs

Projectproject_idtext
Only those in this project.
Limitlimitnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Offsetoffsetnumber
How many to skip, for reading the next page. Leave empty to start at the first.At least 0.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "count": 1,
    "features": [
      {
        "archived": true,
        "dateCreated": "example",
        "dateUpdated": "example",
        "defaultValue": "example",
        "description": "example",
        "environments": {},
        "id": "example",
        "owner": "example",
        "ownerEmail": "example",
        "prerequisites": [
          "example"
        ],
        "project": "example",
        "revision": {
          "comment": "example",
          "date": "example",
          "version": 1
        },
        "tags": [
          "example"
        ],
        "valueType": "example"
      }
    ],
    "hasMore": true,
    "limit": 1,
    "nextOffset": 1,
    "offset": 1,
    "total": 1
  }
}

List members

List the organization's members and their roles.

Inputs

Emailemailtext
Only the member with this email address.
Limitlimitnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Offsetoffsetnumber
How many to skip, for reading the next page. Leave empty to start at the first.At least 0.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "count": 1,
    "hasMore": true,
    "limit": 1,
    "members": [
      {
        "dateCreated": "example",
        "email": "example",
        "environments": [
          "example"
        ],
        "globalRole": "example",
        "id": "example",
        "lastLoginDate": "example",
        "name": "example",
        "teams": [
          "example"
        ]
      }
    ],
    "nextOffset": 1,
    "offset": 1,
    "total": 1
  }
}

List metrics

List the metrics experiments can measure.

Inputs

Projectproject_idtext
Only those in this project.
Data sourcedatasource_idtext
Only metrics from this data source.
Limitlimitnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Offsetoffsetnumber
How many to skip, for reading the next page. Leave empty to start at the first.At least 0.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "count": 1,
    "hasMore": true,
    "limit": 1,
    "metrics": [
      {
        "archived": true,
        "datasourceId": "example",
        "dateCreated": "example",
        "dateUpdated": "example",
        "description": "example",
        "id": "example",
        "name": "example",
        "owner": "example",
        "projects": [
          "example"
        ],
        "tags": [
          "example"
        ],
        "type": "example"
      }
    ],
    "nextOffset": 1,
    "offset": 1,
    "total": 1
  }
}

List projects

List the organization's projects.

Inputs

Limitlimitnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Offsetoffsetnumber
How many to skip, for reading the next page. Leave empty to start at the first.At least 0.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "count": 1,
    "hasMore": true,
    "limit": 1,
    "nextOffset": 1,
    "offset": 1,
    "projects": [
      {
        "dateCreated": "example",
        "dateUpdated": "example",
        "description": "example",
        "id": "example",
        "name": "example",
        "owner": "example",
        "publicId": "example",
        "settings": {}
      }
    ],
    "total": 1
  }
}

List saved groups

List saved groups: lists of IDs or targeting conditions feature flags reuse.

Inputs

Typetypetext
Only lists or only conditions.One of: list (A list of attribute values), condition (A targeting condition).
Limitlimitnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Offsetoffsetnumber
How many to skip, for reading the next page. Leave empty to start at the first.At least 0.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "count": 1,
    "hasMore": true,
    "limit": 1,
    "nextOffset": 1,
    "offset": 1,
    "savedGroups": [
      {
        "archived": true,
        "attributeKey": "example",
        "condition": "example",
        "dateCreated": "example",
        "dateUpdated": "example",
        "description": "example",
        "id": "example",
        "name": "example",
        "owner": "example",
        "projects": [
          "example"
        ],
        "type": "example",
        "values": [
          "example"
        ]
      }
    ],
    "total": 1
  }
}

List segments

List the segments experiment results can be narrowed to.

Inputs

Data sourcedatasource_idtext
Only segments from this data source.
Limitlimitnumber
How many to return, up to 100. Leave empty for 100.From 1 to 100.
Offsetoffsetnumber
How many to skip, for reading the next page. Leave empty to start at the first.At least 0.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "count": 1,
    "hasMore": true,
    "limit": 1,
    "nextOffset": 1,
    "offset": 1,
    "segments": [
      {
        "datasourceId": "example",
        "dateCreated": "example",
        "dateUpdated": "example",
        "description": "example",
        "id": "example",
        "identifierType": "example",
        "name": "example",
        "owner": "example",
        "projects": [
          "example"
        ],
        "query": "example",
        "type": "example"
      }
    ],
    "total": 1
  }
}

Turn feature flag on or off

Turn a feature flag on or off in one environment and publish the change.

Inputs

Feature flagfeature_idtextRequired
The feature flag.
EnvironmentenvironmenttextRequired
The environment.
Onenabledtrue/falseRequired
Whether the flag is on in the environment.
Reasonreasontext
Why, for the audit log.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "feature": {
      "archived": true,
      "dateCreated": "example",
      "dateUpdated": "example",
      "defaultValue": "example",
      "description": "example",
      "environments": {},
      "id": "example",
      "owner": "example",
      "ownerEmail": "example",
      "prerequisites": [
        "example"
      ],
      "project": "example",
      "revision": {
        "comment": "example",
        "date": "example",
        "version": 1
      },
      "tags": [
        "example"
      ],
      "valueType": "example"
    }
  }
}

Update experiment

Change an experiment's name, hypothesis, description or tags, or archive it. Only the fields filled in change.

Inputs

Experimentexperiment_idtextRequired
The experiment.
Namenametext
The experiment's name.
Hypothesishypothesistext
What you expect to happen.
Descriptiondescriptiontext
What the experiment tests.
Tagstagslist
The experiment's tags. These replace the tags it has.
Archivedarchivedtrue/false
Archive the experiment, or bring it back.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "experiment": {
      "archived": true,
      "autoRefresh": true,
      "dateCreated": "example",
      "dateUpdated": "example",
      "description": "example",
      "hashAttribute": "example",
      "hypothesis": "example",
      "id": "example",
      "linkedFeatures": [
        "example"
      ],
      "name": "example",
      "owner": "example",
      "phases": [
        {
          "condition": "example",
          "coverage": 1,
          "dateEnded": "example",
          "dateStarted": "example",
          "name": "example",
          "reasonForStopping": "example"
        }
      ],
      "project": "example",
      "resultSummary": {
        "conclusions": "example",
        "status": "example",
        "winner": "example"
      },
      "settings": {
        "assignmentQueryId": "example",
        "datasourceId": "example",
        "statsEngine": "example"
      },
      "status": "example",
      "tags": [
        "example"
      ],
      "trackingKey": "example",
      "type": "example",
      "variations": [
        {
          "description": "example",
          "key": "example",
          "name": "example",
          "variationId": "example"
        }
      ]
    }
  }
}

Update feature flag

Change a feature flag's default value, description, owner, tags or project, or archive it. Only the fields filled in change.

Inputs

Feature flagfeature_idtextRequired
The feature flag.
Default valuedefault_valuetext
The value served when the flag is on and no rule matches.
Descriptiondescriptiontext
What the flag is for.
Ownerownertext
The owner's email address in GrowthBook.
Tagstagslist
The flag's tags. These replace the tags it has.
Projectproject_idtext
Move the flag to this project.
Archivedarchivedtrue/false
Archive the flag, or bring it back.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "feature": {
      "archived": true,
      "dateCreated": "example",
      "dateUpdated": "example",
      "defaultValue": "example",
      "description": "example",
      "environments": {},
      "id": "example",
      "owner": "example",
      "ownerEmail": "example",
      "prerequisites": [
        "example"
      ],
      "project": "example",
      "revision": {
        "comment": "example",
        "date": "example",
        "version": 1
      },
      "tags": [
        "example"
      ],
      "valueType": "example"
    }
  }
}

Update project

Rename a project or change its description or owner.

Inputs

Projectproject_idtextRequired
The project.
Namenametext
The project's name.
Descriptiondescriptiontext
What the project is for.
Ownerownertext
The owner's email address in GrowthBook.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "project": {
      "dateCreated": "example",
      "dateUpdated": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "owner": "example",
      "publicId": "example",
      "settings": {}
    }
  }
}

Update saved group

Rename a saved group or replace its values or condition. Only the fields filled in change.

Inputs

Saved groupsaved_group_idtextRequired
The saved group.
Namenametext
The group's name.
Valuesvalueslist
For a list: the values in the group. These replace the values it has.
Conditionconditiontext
For a condition: the targeting condition as JSON.
Descriptiondescriptiontext
Who is in the group.

Outputs

dataobject
The response from GrowthBook.
Example output
{
  "data": {
    "savedGroup": {
      "archived": true,
      "attributeKey": "example",
      "condition": "example",
      "dateCreated": "example",
      "dateUpdated": "example",
      "description": "example",
      "id": "example",
      "name": "example",
      "owner": "example",
      "projects": [
        "example"
      ],
      "type": "example",
      "values": [
        "example"
      ]
    }
  }
}

On this page