Skip to main content
GrowthBook logo

GrowthBook

Lets an agent work with your GrowthBook feature flags and experiments: list and inspect features, toggle a flag on or off per environment, browse experiments and their results, and read projects, environments, SDK connections, and metrics.

What it can do

MethodWhat it does
growthbook_features_listList feature flags, optionally filtered by project.
growthbook_feature_getGet one feature flag with its per-environment state and rules.
growthbook_feature_toggleEnable or disable a feature flag per environment (write).
growthbook_experiments_listList experiments (A/B tests), optionally filtered by project.
growthbook_experiment_getGet one experiment with variations, status, and results metadata.
growthbook_projects_listList projects.
growthbook_environments_listList environments.
growthbook_sdk_connections_listList SDK connections (the client keys apps use to fetch flags).
growthbook_metrics_listList metrics used to evaluate experiments.
growthbook_requestGeneric passthrough to any GrowthBook endpoint for full API coverage.

How to get credentials

  1. Sign in to app.growthbook.io (or your self-hosted instance).
  2. Open Settings → API Keys (app.growthbook.io/settings/keys).
  3. Create a Secret API key (not an SDK/client key) and copy it - the full token is shown only once.
  4. Paste the token into FlyMyAI. If you self-host GrowthBook, also set GROWTHBOOK_BASE_URL to your instance's API base (for example https://gb.example.com/api/v1).

Fields to fill in FlyMyAI

FlyMyAI fieldWhere it comes from
GROWTHBOOK_API_KEYGrowthBook → Settings → API Keys (Secret key)
GROWTHBOOK_BASE_URLOptional - self-hosted only. Default https://api.growthbook.io/api/v1 for GrowthBook Cloud

Troubleshooting

  • 401 Unauthorized - the key is wrong, revoked, or is an SDK/client key rather than a Secret key. Create a Secret key under Settings → API Keys.
  • Calls hit the wrong host - self-hosted users must set GROWTHBOOK_BASE_URL; otherwise calls go to GrowthBook Cloud.
  • growthbook_feature_toggle does nothing visible - check the environment ids. They must match the ids returned by growthbook_environments_list (for example production, dev).
We love our partners - FlyMy.AI builds with the best. Thanks, GrowthBook!