Download OpenAPI specification:Download
GrowthBook offers a full REST API for interacting with the application.
Request data can use either JSON or Form data encoding (with proper Content-Type headers). All response bodies are JSON-encoded.
The API base URL for GrowthBook Cloud is https://api.growthbook.io. For self-hosted deployments, it is the same as your API_HOST environment variable (defaults to http://localhost:3100). The rest of these docs will assume you are using GrowthBook Cloud.
We support both the HTTP Basic and Bearer authentication schemes for convenience.
You first need to generate a new API Key in GrowthBook. Different keys have different permissions:
Personal Access Tokens under the your user menu.admin or readonly. Only Admins with the manageApiKeys permission can manage Secret Keys on behalf of an organization. These can be created by going to Settings -> API KeysIf using HTTP Basic auth, pass the Secret Key as the username and leave the password blank:
curl https://api.growthbook.io/api/v1 \
  -u secret_abc123DEF456:
# The ":" at the end stops curl from asking for a password
If using Bearer auth, pass the Secret Key as the token:
curl https://api.growthbook.io/api/v1 \
-H "Authorization: Bearer secret_abc123DEF456"
The API may return the following error status codes:
The response body will be a JSON object with the following properties:
| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
curl https://api.growthbook.io/api/v1/projects \ -u secret_abc123DEF456:
{- "projects": [
- {
- "id": "string",
 - "name": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "description": "string",
 - "settings": {
- "statsEngine": "string"
 
} 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| name required  | string   | 
| description | string   | 
object  Project settings.  | 
{- "name": "string",
 - "description": "string",
 - "settings": {
- "statsEngine": "string"
 
} 
}{- "project": {
- "id": "string",
 - "name": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "description": "string",
 - "settings": {
- "statsEngine": "string"
 
} 
} 
}| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/projects/prj_123abc \ -u secret_abc123DEF456:
{- "project": {
- "id": "string",
 - "name": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "description": "string",
 - "settings": {
- "statsEngine": "string"
 
} 
} 
}| id required  | string  The id of the requested resource  | 
| name | string  Project name.  | 
| description | string  Project description.  | 
object  Project settings.  | 
{- "name": "string",
 - "description": "string",
 - "settings": {
- "statsEngine": "string"
 
} 
}{- "project": {
- "id": "string",
 - "name": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "description": "string",
 - "settings": {
- "statsEngine": "string"
 
} 
} 
}| id required  | string  The id of the requested resource  | 
curl -X DELETE https://api.growthbook.io/api/v1/projects/prj__123abc \ -u secret_abc123DEF456:
{- "deletedId": "prj__123abc"
 
}GrowthBook comes with one environment by default (production), but you can add as many as you need. When used with feature flags, you can enable/disable feature flags on a per-environment basis.
curl https://api.growthbook.io/api/v1/environments \ -u secret_abc123DEF456:
{- "environments": [
- {
- "id": "string",
 - "description": "string",
 - "toggleOnList": true,
 - "defaultState": true,
 - "projects": [
- "string"
 
], - "parent": "string"
 
} 
] 
}| id required  | string  The ID of the new environment  | 
| description | string  The description of the new environment  | 
| toggleOnList | bool  Show toggle on feature list  | 
| defaultState | bool  Default state for new features  | 
| projects | Array of strings   | 
| parent | string  An environment that the new environment should inherit feature rules from. Requires an enterprise license  | 
{- "id": "string",
 - "description": "string",
 - "toggleOnList": null,
 - "defaultState": null,
 - "projects": [
- "string"
 
], - "parent": "string"
 
}{- "environment": {
- "id": "string",
 - "description": "string",
 - "toggleOnList": true,
 - "defaultState": true,
 - "projects": [
- "string"
 
], - "parent": "string"
 
} 
}| id required  | string  The id of the requested resource  | 
| description | string  The description of the new environment  | 
| toggleOnList | boolean  Show toggle on feature list  | 
| defaultState | boolean  Default state for new features  | 
| projects | Array of strings   | 
{- "description": "string",
 - "toggleOnList": true,
 - "defaultState": true,
 - "projects": [
- "string"
 
] 
}{- "environment": {
- "id": "string",
 - "description": "string",
 - "toggleOnList": true,
 - "defaultState": true,
 - "projects": [
- "string"
 
], - "parent": "string"
 
} 
}| id required  | string  The id of the requested resource  | 
curl -X DELETE https://api.growthbook.io/api/v1/enviromnents/env-id \ -u secret_abc123DEF456:
{- "deletedId": "string"
 
}| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
| projectId | string  Filter by project id  | 
| clientKey | string  Filter by a SDK connection's client key  | 
curl https://api.growthbook.io/api/v1/features \ -u secret_abc123DEF456:
{- "features": [
- {
- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "archived": true,
 - "description": "string",
 - "owner": "string",
 - "project": "string",
 - "valueType": "boolean",
 - "defaultValue": "string",
 - "tags": [
- "string"
 
], - "environments": {
- "property1": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": null,
 - "savedGroups": [ ]
 
} 
], - "prerequisites": [
- {
- "id": null,
 - "condition": null
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
}, - "property2": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": null,
 - "savedGroups": [ ]
 
} 
], - "prerequisites": [
- {
- "id": null,
 - "condition": null
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
} 
}, - "prerequisites": [
- "string"
 
], - "revision": {
- "version": 0,
 - "comment": "string",
 - "date": "2019-08-24T14:15:22Z",
 - "publishedBy": "string"
 
}, - "customFields": { }
 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| id required  | string  non-empty   A unique key name for the feature. Feature keys can only include letters, numbers, hyphens, and underscores.  | 
| archived | boolean   | 
| description | string  Description of the feature  | 
| owner required  | string  Email of the person who owns this experiment  | 
| project | string  An associated project ID  | 
| valueType required  | string  Enum: "boolean" "string" "number" "json"   The data type of the feature payload. Boolean by default.  | 
| defaultValue required  | string  Default value when feature is enabled. Type must match   | 
| tags | Array of strings  List of associated tags  | 
object  A dictionary of environments that are enabled for this feature. Keys supply the names of environments. Environments belong to organization and are not specified will be disabled by default.  | |
| prerequisites | Array of strings  Feature IDs. Each feature must evaluate to   | 
| jsonSchema | string  Use JSON schema to validate the payload of a JSON-type feature value (enterprise only).  | 
{- "id": "string",
 - "archived": true,
 - "description": "string",
 - "owner": "string",
 - "project": "string",
 - "valueType": "boolean",
 - "defaultValue": "string",
 - "tags": [
- "string"
 
], - "environments": {
- "property1": {
- "enabled": true,
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
}, - "property2": {
- "enabled": true,
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
} 
}, - "prerequisites": [
- "string"
 
], - "jsonSchema": "string"
 
}{- "feature": {
- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "archived": true,
 - "description": "string",
 - "owner": "string",
 - "project": "string",
 - "valueType": "boolean",
 - "defaultValue": "string",
 - "tags": [
- "string"
 
], - "environments": {
- "property1": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
}, - "property2": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
} 
}, - "prerequisites": [
- "string"
 
], - "revision": {
- "version": 0,
 - "comment": "string",
 - "date": "2019-08-24T14:15:22Z",
 - "publishedBy": "string"
 
}, - "customFields": { }
 
} 
}| id required  | string  The id of the requested resource  | 
| withRevisions | string  Enum: "all" "drafts" "published" "none"   Also return feature revisions (all, draft, or published statuses)  | 
curl https://api.growthbook.io/api/v1/features/my_feature \ -u secret_abc123DEF456:
{- "feature": {
- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "archived": true,
 - "description": "string",
 - "owner": "string",
 - "project": "string",
 - "valueType": "boolean",
 - "defaultValue": "string",
 - "tags": [
- "string"
 
], - "environments": {
- "property1": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
}, - "property2": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
} 
}, - "prerequisites": [
- "string"
 
], - "revision": {
- "version": 0,
 - "comment": "string",
 - "date": "2019-08-24T14:15:22Z",
 - "publishedBy": "string"
 
}, - "customFields": { },
 - "revisions": [
- {
- "baseVersion": 0,
 - "version": 0,
 - "comment": "string",
 - "date": "2019-08-24T14:15:22Z",
 - "status": "string",
 - "publishedBy": "string",
 - "rules": {
- "property1": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "property2": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
] 
}, - "definitions": {
- "property1": "string",
 - "property2": "string"
 
} 
} 
] 
} 
}| id required  | string  The id of the requested resource  | 
| description | string  Description of the feature  | 
| archived | boolean   | 
| project | string  An associated project ID  | 
| owner | string   | 
| defaultValue | string   | 
| tags | Array of strings  List of associated tags. Will override tags completely with submitted list  | 
object   | |
| prerequisites | Array of strings  Feature IDs. Each feature must evaluate to   | 
| jsonSchema | string  Use JSON schema to validate the payload of a JSON-type feature value (enterprise only).  | 
{- "description": "string",
 - "archived": true,
 - "project": "string",
 - "owner": "string",
 - "defaultValue": "string",
 - "tags": [
- "string"
 
], - "environments": {
- "property1": {
- "enabled": true,
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
}, - "property2": {
- "enabled": true,
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
} 
}, - "prerequisites": [
- "string"
 
], - "jsonSchema": "string"
 
}{- "feature": {
- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "archived": true,
 - "description": "string",
 - "owner": "string",
 - "project": "string",
 - "valueType": "boolean",
 - "defaultValue": "string",
 - "tags": [
- "string"
 
], - "environments": {
- "property1": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
}, - "property2": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
} 
}, - "prerequisites": [
- "string"
 
], - "revision": {
- "version": 0,
 - "comment": "string",
 - "date": "2019-08-24T14:15:22Z",
 - "publishedBy": "string"
 
}, - "customFields": { }
 
} 
}| id required  | string  The id of the requested resource  | 
curl -X DELETE https://api.growthbook.io/api/v1/features/feature-123 \ -u secret_abc123DEF456:
{- "deletedId": "feature-123"
 
}| id required  | string  The id of the requested resource  | 
| reason | string   | 
required  | object   | 
{- "reason": "string",
 - "environments": {
- "property1": true,
 - "property2": true
 
} 
}{- "feature": {
- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "archived": true,
 - "description": "string",
 - "owner": "string",
 - "project": "string",
 - "valueType": "boolean",
 - "defaultValue": "string",
 - "tags": [
- "string"
 
], - "environments": {
- "property1": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
}, - "property2": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
} 
}, - "prerequisites": [
- "string"
 
], - "revision": {
- "version": 0,
 - "comment": "string",
 - "date": "2019-08-24T14:15:22Z",
 - "publishedBy": "string"
 
}, - "customFields": { }
 
} 
}| id required  | string  The id of the requested resource  | 
| revision required  | number   | 
| comment | string   | 
{- "revision": 0,
 - "comment": "string"
 
}{- "feature": {
- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "archived": true,
 - "description": "string",
 - "owner": "string",
 - "project": "string",
 - "valueType": "boolean",
 - "defaultValue": "string",
 - "tags": [
- "string"
 
], - "environments": {
- "property1": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
}, - "property2": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- null
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
} 
}, - "prerequisites": [
- "string"
 
], - "revision": {
- "version": 0,
 - "comment": "string",
 - "date": "2019-08-24T14:15:22Z",
 - "publishedBy": "string"
 
}, - "customFields": { }
 
} 
}| id required  | string  The id of the requested resource  | 
| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
curl https://api.growthbook.io/api/v1/features/my_feature/revisions?limit=10&offset=0 \ -u secret_abc123DEF456:
{- "revisions": [
- {
- "baseVersion": 0,
 - "version": 0,
 - "comment": "string",
 - "date": "2019-08-24T14:15:22Z",
 - "status": "string",
 - "publishedBy": "string",
 - "rules": {
- "property1": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "property2": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
] 
}, - "definitions": {
- "property1": "string",
 - "property2": "string"
 
} 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
| projectId | string  Filter by project id  | 
curl https://api.growthbook.io/api/v1/data-sources \ -u secret_abc123DEF456:
{- "dataSources": [
- {
- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "type": "string",
 - "name": "string",
 - "description": "string",
 - "projectIds": [
- "string"
 
], - "eventTracker": "string",
 - "identifierTypes": [
- {
- "id": "string",
 - "description": "string"
 
} 
], - "assignmentQueries": [
- {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "identifierType": "string",
 - "sql": "string",
 - "includesNameColumns": true,
 - "dimensionColumns": [
- "string"
 
] 
} 
], - "identifierJoinQueries": [
- {
- "identifierTypes": [
- "string"
 
], - "sql": "string"
 
} 
], - "mixpanelSettings": {
- "viewedExperimentEventName": "string",
 - "experimentIdProperty": "string",
 - "variationIdProperty": "string",
 - "extraUserIdProperty": "string"
 
} 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/data-sources/ds_123abc \ -u secret_abc123DEF456:
{- "dataSource": {
- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "type": "string",
 - "name": "string",
 - "description": "string",
 - "projectIds": [
- "string"
 
], - "eventTracker": "string",
 - "identifierTypes": [
- {
- "id": "string",
 - "description": "string"
 
} 
], - "assignmentQueries": [
- {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "identifierType": "string",
 - "sql": "string",
 - "includesNameColumns": true,
 - "dimensionColumns": [
- "string"
 
] 
} 
], - "identifierJoinQueries": [
- {
- "identifierTypes": [
- "string"
 
], - "sql": "string"
 
} 
], - "mixpanelSettings": {
- "viewedExperimentEventName": "string",
 - "experimentIdProperty": "string",
 - "variationIdProperty": "string",
 - "extraUserIdProperty": "string"
 
} 
} 
}| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
| datasourceId | string  Filter by Data Source  | 
| projectId | string  Filter by project id  | 
curl https://api.growthbook.io/api/v1/fact-tables \ -u secret_abc123DEF456:
{- "factTables": [
- {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "datasource": "string",
 - "userIdTypes": [
- "string"
 
], - "sql": "string",
 - "eventName": "string",
 - "columns": [
- {
- "column": "string",
 - "datatype": "number",
 - "numberFormat": "",
 - "jsonFields": {
- "property1": {
- "datatype": "number"
 
}, - "property2": {
- "datatype": "number"
 
} 
}, - "name": "string",
 - "description": "string",
 - "alwaysInlineFilter": false,
 - "deleted": false,
 - "isAutoSliceColumn": false,
 - "autoSlices": [
- "string"
 
], - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
], - "columnsError": "string",
 - "archived": true,
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| name required  | string   | 
| description | string  Description of the fact table  | 
| owner | string  The person who is responsible for this fact table  | 
| projects | Array of strings  List of associated project ids  | 
| tags | Array of strings  List of associated tags  | 
| datasource required  | string  The datasource id  | 
| userIdTypes required  | Array of strings  List of identifier columns in this table. For example, "id" or "anonymous_id"  | 
| sql required  | string  The SQL query for this fact table  | 
| eventName | string  The event name used in SQL template variables  | 
| managedBy | string  Enum: "" "api" "admin"   Set this to "api" to disable editing in the GrowthBook UI  | 
{- "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "datasource": "string",
 - "userIdTypes": [
- "string"
 
], - "sql": "string",
 - "eventName": "string",
 - "managedBy": ""
 
}{- "factTable": {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "datasource": "string",
 - "userIdTypes": [
- "string"
 
], - "sql": "string",
 - "eventName": "string",
 - "columns": [
- {
- "column": "string",
 - "datatype": "number",
 - "numberFormat": "",
 - "jsonFields": {
- "property1": {
- "datatype": "number"
 
}, - "property2": {
- "datatype": "number"
 
} 
}, - "name": "string",
 - "description": "string",
 - "alwaysInlineFilter": false,
 - "deleted": false,
 - "isAutoSliceColumn": false,
 - "autoSlices": [
- "string"
 
], - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
], - "columnsError": "string",
 - "archived": true,
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
}| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/fact-tables/ftb_123abc \ -u secret_abc123DEF456:
{- "factTable": {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "datasource": "string",
 - "userIdTypes": [
- "string"
 
], - "sql": "string",
 - "eventName": "string",
 - "columns": [
- {
- "column": "string",
 - "datatype": "number",
 - "numberFormat": "",
 - "jsonFields": {
- "property1": {
- "datatype": "number"
 
}, - "property2": {
- "datatype": "number"
 
} 
}, - "name": "string",
 - "description": "string",
 - "alwaysInlineFilter": false,
 - "deleted": false,
 - "isAutoSliceColumn": false,
 - "autoSlices": [
- "string"
 
], - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
], - "columnsError": "string",
 - "archived": true,
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
}| id required  | string  The id of the requested resource  | 
| name | string   | 
| description | string  Description of the fact table  | 
| owner | string  The person who is responsible for this fact table  | 
| projects | Array of strings  List of associated project ids  | 
| tags | Array of strings  List of associated tags  | 
| userIdTypes | Array of strings  List of identifier columns in this table. For example, "id" or "anonymous_id"  | 
| sql | string  The SQL query for this fact table  | 
| eventName | string  The event name used in SQL template variables  | 
Array of objects (FactTableColumn)   Optional array of columns that you want to update. Only allows updating properties of existing columns. Cannot create new columns or delete existing ones. Columns cannot be added or deleted; column structure is determined by SQL parsing. Slice-related properties require an enterprise license.  | |
| columnsError | string or null  Error message if there was an issue parsing the SQL schema  | 
| managedBy | string  Enum: "" "api" "admin"   Set this to "api" to disable editing in the GrowthBook UI  | 
| archived | boolean   | 
{- "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "userIdTypes": [
- "string"
 
], - "sql": "string",
 - "eventName": "string",
 - "columns": [
- {
- "column": "string",
 - "datatype": "number",
 - "numberFormat": "",
 - "jsonFields": {
- "property1": {
- "datatype": "number"
 
}, - "property2": {
- "datatype": "number"
 
} 
}, - "name": "string",
 - "description": "string",
 - "alwaysInlineFilter": false,
 - "deleted": false,
 - "isAutoSliceColumn": false,
 - "autoSlices": [
- "string"
 
] 
} 
], - "columnsError": "string",
 - "managedBy": "",
 - "archived": true
 
}{- "factTable": {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "datasource": "string",
 - "userIdTypes": [
- "string"
 
], - "sql": "string",
 - "eventName": "string",
 - "columns": [
- {
- "column": "string",
 - "datatype": "number",
 - "numberFormat": "",
 - "jsonFields": {
- "property1": {
- "datatype": "number"
 
}, - "property2": {
- "datatype": "number"
 
} 
}, - "name": "string",
 - "description": "string",
 - "alwaysInlineFilter": false,
 - "deleted": false,
 - "isAutoSliceColumn": false,
 - "autoSlices": [
- "string"
 
], - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
], - "columnsError": "string",
 - "archived": true,
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
}| id required  | string  The id of the requested resource  | 
curl -X DELETE https://api.growthbook.io/api/v1/fact-tables/ftb_123abc \ -u secret_abc123DEF456:
{- "deletedId": "ftb_123abc"
 
}| factTableId required  | string  Specify a specific fact table  | 
| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
curl https://api.growthbook.io/api/v1/fact-tables/ftb_123abc/filters \ -u secret_abc123DEF456:
{- "factTableFilters": [
- {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "value": "string",
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| factTableId required  | string  Specify a specific fact table  | 
| name required  | string   | 
| description | string  Description of the fact table filter  | 
| value required  | string  The SQL expression for this filter.  | 
| managedBy | string  Enum: "" "api"   Set this to "api" to disable editing in the GrowthBook UI. Before you do this, the Fact Table itself must also be marked as "api"  | 
{- "name": "string",
 - "description": "string",
 - "value": "country = 'US'",
 - "managedBy": ""
 
}{- "factTableFilter": {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "value": "string",
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
}| factTableId required  | string  Specify a specific fact table  | 
| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/fact-tables/ftb_123abc/filters/flt_123abc \ -u secret_abc123DEF456:
{- "factTableFilter": {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "value": "string",
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
}| factTableId required  | string  Specify a specific fact table  | 
| id required  | string  The id of the requested resource  | 
| name | string   | 
| description | string  Description of the fact table filter  | 
| value | string  The SQL expression for this filter.  | 
| managedBy | string  Enum: "" "api"   Set this to "api" to disable editing in the GrowthBook UI. Before you do this, the Fact Table itself must also be marked as "api"  | 
{- "name": "string",
 - "description": "string",
 - "value": "country = 'US'",
 - "managedBy": ""
 
}{- "factTableFilter": {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "value": "string",
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
}| factTableId required  | string  Specify a specific fact table  | 
| id required  | string  The id of the requested resource  | 
curl -X DELETE https://api.growthbook.io/api/v1/fact-tables/ftb_123abc/filter/flt_123abc \ -u secret_abc123DEF456:
{- "deletedId": "flt_123abc"
 
}Array of objects   | |
Array of objects   | |
Array of objects   | 
{- "factTables": [
- {
- "id": "string",
 - "data": {
- "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "datasource": "string",
 - "userIdTypes": [
- "string"
 
], - "sql": "string",
 - "eventName": "string",
 - "managedBy": ""
 
} 
} 
], - "factTableFilters": [
- {
- "factTableId": "string",
 - "id": "string",
 - "data": {
- "name": "string",
 - "description": "string",
 - "value": "country = 'US'",
 - "managedBy": ""
 
} 
} 
], - "factMetrics": [
- {
- "id": "string",
 - "data": {
- "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "metricType": "proportion",
 - "numerator": {
- "factTableId": "string",
 - "column": "string",
 - "aggregation": "sum",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
}, - "aggregateFilterColumn": "string",
 - "aggregateFilter": "string"
 
}, - "denominator": {
- "factTableId": "string",
 - "column": "string",
 - "aggregation": "sum",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
} 
}, - "inverse": true,
 - "quantileSettings": {
- "type": "event",
 - "ignoreZeros": true,
 - "quantile": 0.001
 
}, - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "windowSettings": {
- "type": "none",
 - "delayHours": 0,
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "priorSettings": {
- "override": true,
 - "proper": true,
 - "mean": 0,
 - "stddev": 0
 
}, - "regressionAdjustmentSettings": {
- "override": true,
 - "enabled": true,
 - "days": 0
 
}, - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "displayAsPercentage": true,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0,
 - "managedBy": "",
 - "metricAutoSlices": [
- "string"
 
] 
} 
} 
] 
}{- "success": true,
 - "factTablesAdded": 0,
 - "factTablesUpdated": 0,
 - "factTableFiltersAdded": 0,
 - "factTableFiltersUpdated": 0,
 - "factMetricsAdded": 0,
 - "factMetricsUpdated": 0
 
}| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
| datasourceId | string  Filter by Data Source  | 
| projectId | string  Filter by project id  | 
| factTableId | string  Filter by Fact Table Id (for ratio metrics, we only look at the numerator)  | 
curl https://api.growthbook.io/api/v1/fact-metrics \ -u secret_abc123DEF456:
{- "factMetrics": [
- {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "datasource": "string",
 - "metricType": "proportion",
 - "numerator": {
- "factTableId": "string",
 - "column": "string",
 - "aggregation": "sum",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
}, - "aggregateFilterColumn": "string",
 - "aggregateFilter": "string"
 
}, - "denominator": {
- "factTableId": "string",
 - "column": "string",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
} 
}, - "inverse": true,
 - "quantileSettings": {
- "type": "event",
 - "ignoreZeros": true,
 - "quantile": 0.001
 
}, - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "windowSettings": {
- "type": "none",
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "regressionAdjustmentSettings": {
- "override": true,
 - "enabled": true,
 - "days": 0
 
}, - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "displayAsPercentage": true,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0,
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "archived": true,
 - "metricAutoSlices": [
- "string"
 
] 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| name required  | string   | 
| description | string   | 
| owner | string   | 
| projects | Array of strings   | 
| tags | Array of strings   | 
| metricType required  | string  Enum: "proportion" "retention" "mean" "quantile" "ratio"    | 
required  | object   | 
object  Only when metricType is 'ratio'  | |
| inverse | boolean  Set to true for things like Bounce Rate, where you want the metric to decrease  | 
object  Controls the settings for quantile metrics (mandatory if metricType is "quantile")  | |
object  Controls how outliers are handled  | |
object  Controls the conversion window for the metric  | |
object  Controls the bayesian prior for the metric. If omitted, organization defaults will be used.  | |
object  Controls the regression adjustment (CUPED) settings for the metric  | |
| riskThresholdSuccess | number  >= 0   Threshold for Risk to be considered low enough, as a proportion (e.g. put 0.0025 for 0.25%).   | 
| riskThresholdDanger | number  >= 0   Threshold for Risk to be considered too high, as a proportion (e.g. put 0.0125 for 1.25%).   | 
| displayAsPercentage | boolean  If true and the metric is a ratio metric, variation means will be displayed as a percentage  | 
| minPercentChange | number  >= 0   Minimum percent change to consider uplift significant, as a proportion (e.g. put 0.005 for 0.5%)  | 
| maxPercentChange | number  >= 0   Maximum percent change to consider uplift significant, as a proportion (e.g. put 0.5 for 50%)  | 
| minSampleSize | number  >= 0    | 
| targetMDE | number  >= 0   The percentage change that you want to reliably detect before ending an experiment, as a proportion (e.g. put 0.1 for 10%). This is used to estimate the "Days Left" for running experiments.  | 
| managedBy | string  Enum: "" "api" "admin"   Set this to "api" to disable editing in the GrowthBook UI  | 
| metricAutoSlices | Array of strings  Array of slice column names that will be automatically included in metric analysis. This is an enterprise feature.  | 
{- "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "metricType": "proportion",
 - "numerator": {
- "factTableId": "string",
 - "column": "string",
 - "aggregation": "sum",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
}, - "aggregateFilterColumn": "string",
 - "aggregateFilter": "string"
 
}, - "denominator": {
- "factTableId": "string",
 - "column": "string",
 - "aggregation": "sum",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
} 
}, - "inverse": true,
 - "quantileSettings": {
- "type": "event",
 - "ignoreZeros": true,
 - "quantile": 0.001
 
}, - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "windowSettings": {
- "type": "none",
 - "delayHours": 0,
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "priorSettings": {
- "override": true,
 - "proper": true,
 - "mean": 0,
 - "stddev": 0
 
}, - "regressionAdjustmentSettings": {
- "override": true,
 - "enabled": true,
 - "days": 0
 
}, - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "displayAsPercentage": true,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0,
 - "managedBy": "",
 - "metricAutoSlices": [
- "string"
 
] 
}{- "factMetric": {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "datasource": "string",
 - "metricType": "proportion",
 - "numerator": {
- "factTableId": "string",
 - "column": "string",
 - "aggregation": "sum",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
}, - "aggregateFilterColumn": "string",
 - "aggregateFilter": "string"
 
}, - "denominator": {
- "factTableId": "string",
 - "column": "string",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
} 
}, - "inverse": true,
 - "quantileSettings": {
- "type": "event",
 - "ignoreZeros": true,
 - "quantile": 0.001
 
}, - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "windowSettings": {
- "type": "none",
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "regressionAdjustmentSettings": {
- "override": true,
 - "enabled": true,
 - "days": 0
 
}, - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "displayAsPercentage": true,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0,
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "archived": true,
 - "metricAutoSlices": [
- "string"
 
] 
} 
}| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/fact-metrics/fact__123abc \ -u secret_abc123DEF456:
{- "factMetric": {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "datasource": "string",
 - "metricType": "proportion",
 - "numerator": {
- "factTableId": "string",
 - "column": "string",
 - "aggregation": "sum",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
}, - "aggregateFilterColumn": "string",
 - "aggregateFilter": "string"
 
}, - "denominator": {
- "factTableId": "string",
 - "column": "string",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
} 
}, - "inverse": true,
 - "quantileSettings": {
- "type": "event",
 - "ignoreZeros": true,
 - "quantile": 0.001
 
}, - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "windowSettings": {
- "type": "none",
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "regressionAdjustmentSettings": {
- "override": true,
 - "enabled": true,
 - "days": 0
 
}, - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "displayAsPercentage": true,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0,
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "archived": true,
 - "metricAutoSlices": [
- "string"
 
] 
} 
}| id required  | string  The id of the requested resource  | 
| name | string   | 
| description | string   | 
| owner | string   | 
| projects | Array of strings   | 
| tags | Array of strings   | 
| metricType | string  Enum: "proportion" "retention" "mean" "quantile" "ratio"    | 
object   | |
object  Only when metricType is 'ratio'  | |
| inverse | boolean  Set to true for things like Bounce Rate, where you want the metric to decrease  | 
object  Controls the settings for quantile metrics (mandatory if metricType is "quantile")  | |
object  Controls how outliers are handled  | |
object  Controls the conversion window for the metric  | |
object  Controls the regression adjustment (CUPED) settings for the metric  | |
| riskThresholdSuccess | number  >= 0   Threshold for Risk to be considered low enough, as a proportion (e.g. put 0.0025 for 0.25%).   | 
| riskThresholdDanger | number  >= 0   Threshold for Risk to be considered too high, as a proportion (e.g. put 0.0125 for 1.25%).   | 
| displayAsPercentage | boolean  If true and the metric is a ratio metric, variation means will be displayed as a percentage  | 
| minPercentChange | number  >= 0   Minimum percent change to consider uplift significant, as a proportion (e.g. put 0.005 for 0.5%)  | 
| maxPercentChange | number  >= 0   Maximum percent change to consider uplift significant, as a proportion (e.g. put 0.5 for 50%)  | 
| minSampleSize | number  >= 0    | 
| targetMDE | number  >= 0    | 
| managedBy | string  Enum: "" "api" "admin"   Set this to "api" to disable editing in the GrowthBook UI  | 
| archived | boolean   | 
| metricAutoSlices | Array of strings  Array of slice column names that will be automatically included in metric analysis. This is an enterprise feature.  | 
{- "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "metricType": "proportion",
 - "numerator": {
- "factTableId": "string",
 - "column": "string",
 - "aggregation": "sum",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
}, - "aggregateFilterColumn": "string",
 - "aggregateFilter": "string"
 
}, - "denominator": {
- "factTableId": "string",
 - "column": "string",
 - "aggregation": "sum",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
} 
}, - "inverse": true,
 - "quantileSettings": {
- "type": "event",
 - "ignoreZeros": true,
 - "quantile": 0.001
 
}, - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "windowSettings": {
- "type": "none",
 - "delayHours": 0,
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "regressionAdjustmentSettings": {
- "override": true,
 - "enabled": true,
 - "days": 0
 
}, - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "displayAsPercentage": true,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0,
 - "managedBy": "",
 - "archived": true,
 - "metricAutoSlices": [
- "string"
 
] 
}{- "factMetric": {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "datasource": "string",
 - "metricType": "proportion",
 - "numerator": {
- "factTableId": "string",
 - "column": "string",
 - "aggregation": "sum",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
}, - "aggregateFilterColumn": "string",
 - "aggregateFilter": "string"
 
}, - "denominator": {
- "factTableId": "string",
 - "column": "string",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
} 
}, - "inverse": true,
 - "quantileSettings": {
- "type": "event",
 - "ignoreZeros": true,
 - "quantile": 0.001
 
}, - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "windowSettings": {
- "type": "none",
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "regressionAdjustmentSettings": {
- "override": true,
 - "enabled": true,
 - "days": 0
 
}, - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "displayAsPercentage": true,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0,
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "archived": true,
 - "metricAutoSlices": [
- "string"
 
] 
} 
}| id required  | string  The id of the requested resource  | 
curl -X DELETE https://api.growthbook.io/api/v1/fact-metrics/fact__123abc \ -u secret_abc123DEF456:
{- "deletedId": "fact__123abc"
 
}| id required  | string  The fact metric id to analyze  | 
| userIdType | string  The identifier type to use for the analysis. If not provided, defaults to the first available identifier type in the fact table.  | 
| lookbackDays | number  [ 1 .. 999999 ]   Number of days to look back for the analysis. Defaults to 30.  | 
| populationType | string  Enum: "factTable" "segment"   The type of population to analyze. Defaults to 'factTable', meaning the analysis will return the metric value for all units found in the fact table.  | 
| populationId | string or null  The ID of the population (e.g., segment ID) when populationType is not 'factTable'. Defaults to null.  | 
| useCache | boolean  Whether to use a cached query if one exists. Defaults to true.  | 
{- "userIdType": "string",
 - "lookbackDays": 1,
 - "populationType": "factTable",
 - "populationId": "string",
 - "useCache": true
 
}{- "metricAnalysis": {
- "id": "string",
 - "status": "string",
 - "settings": { }
 
} 
}| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
| projectId | string  Filter by project id  | 
| datasourceId | string  Filter by Data Source  | 
curl https://api.growthbook.io/api/v1/metrics \ -u secret_abc123DEF456:
{- "metrics": [
- {
- "id": "string",
 - "managedBy": "",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "name": "string",
 - "description": "string",
 - "type": "binomial",
 - "tags": [
- "string"
 
], - "projects": [
- "string"
 
], - "archived": true,
 - "behavior": {
- "goal": "increase",
 - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "cap": 0,
 - "capping": "absolute",
 - "capValue": 0,
 - "windowSettings": {
- "type": "none",
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "priorSettings": {
- "override": true,
 - "proper": true,
 - "mean": 0,
 - "stddev": 0
 
}, - "conversionWindowStart": 0,
 - "conversionWindowEnd": 0,
 - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0
 
}, - "sql": {
- "identifierTypes": [
- "string"
 
], - "conversionSQL": "string",
 - "userAggregationSQL": "string",
 - "denominatorMetricId": "string"
 
}, - "sqlBuilder": {
- "identifierTypeColumns": [
- {
- "identifierType": "string",
 - "columnName": "string"
 
} 
], - "tableName": "string",
 - "valueColumnName": "string",
 - "timestampColumnName": "string",
 - "conditions": [
- {
- "column": "string",
 - "operator": "string",
 - "value": "string"
 
} 
] 
}, - "mixpanel": {
- "eventName": "string",
 - "eventValue": "string",
 - "userAggregation": "string",
 - "conditions": [
- {
- "property": "string",
 - "operator": "string",
 - "value": "string"
 
} 
] 
} 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| datasourceId required  | string  ID for the DataSource  | 
| managedBy | string  Enum: "" "api"   Where this metric must be managed from. If not set (empty string), it can be managed from anywhere. If set to "api", it can be managed via the API only.  | 
| owner | string  Name of the person who owns this metric  | 
| name required  | string  Name of the metric  | 
| description | string  Description of the metric  | 
| type required  | |
| tags | Array of strings  List of tags  | 
| projects | Array of strings  List of project IDs for projects that can access this metric  | 
| archived | boolean   | 
object   | |
object  Preferred way to define SQL. Only one of   | |
object  An alternative way to specify a SQL metric, rather than a full query. Using   | |
object  Only use for MixPanel (non-SQL) Data Sources. Only one of   | 
{- "datasourceId": "string",
 - "managedBy": "",
 - "owner": "string",
 - "name": "string",
 - "description": "string",
 - "type": "binomial",
 - "tags": [
- "string"
 
], - "projects": [
- "string"
 
], - "archived": true,
 - "behavior": {
- "goal": "increase",
 - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "cap": 0,
 - "capping": "absolute",
 - "capValue": 0,
 - "windowSettings": {
- "type": "none",
 - "delayHours": 0,
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "conversionWindowStart": 0,
 - "conversionWindowEnd": 0,
 - "priorSettings": {
- "override": true,
 - "proper": true,
 - "mean": 0,
 - "stddev": 0
 
}, - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0
 
}, - "sql": {
- "identifierTypes": [
- "string"
 
], - "conversionSQL": "string",
 - "userAggregationSQL": "string",
 - "denominatorMetricId": "string"
 
}, - "sqlBuilder": {
- "identifierTypeColumns": [
- {
- "identifierType": "string",
 - "columnName": "string"
 
} 
], - "tableName": "string",
 - "valueColumnName": "string",
 - "timestampColumnName": "string",
 - "conditions": [
- {
- "column": "string",
 - "operator": "string",
 - "value": "string"
 
} 
] 
}, - "mixpanel": {
- "eventName": "string",
 - "eventValue": "string",
 - "userAggregation": "string",
 - "conditions": [
- {
- "property": "string",
 - "operator": "string",
 - "value": "string"
 
} 
] 
} 
}{- "metric": {
- "id": "string",
 - "managedBy": "",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "name": "string",
 - "description": "string",
 - "type": "binomial",
 - "tags": [
- "string"
 
], - "projects": [
- "string"
 
], - "archived": true,
 - "behavior": {
- "goal": "increase",
 - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "cap": 0,
 - "capping": "absolute",
 - "capValue": 0,
 - "windowSettings": {
- "type": "none",
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "priorSettings": {
- "override": true,
 - "proper": true,
 - "mean": 0,
 - "stddev": 0
 
}, - "conversionWindowStart": 0,
 - "conversionWindowEnd": 0,
 - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0
 
}, - "sql": {
- "identifierTypes": [
- "string"
 
], - "conversionSQL": "string",
 - "userAggregationSQL": "string",
 - "denominatorMetricId": "string"
 
}, - "sqlBuilder": {
- "identifierTypeColumns": [
- {
- "identifierType": "string",
 - "columnName": "string"
 
} 
], - "tableName": "string",
 - "valueColumnName": "string",
 - "timestampColumnName": "string",
 - "conditions": [
- {
- "column": "string",
 - "operator": "string",
 - "value": "string"
 
} 
] 
}, - "mixpanel": {
- "eventName": "string",
 - "eventValue": "string",
 - "userAggregation": "string",
 - "conditions": [
- {
- "property": "string",
 - "operator": "string",
 - "value": "string"
 
} 
] 
} 
} 
}| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/metrics/met_123abc \ -u secret_abc123DEF456:
{- "metric": {
- "id": "string",
 - "managedBy": "",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "name": "string",
 - "description": "string",
 - "type": "binomial",
 - "tags": [
- "string"
 
], - "projects": [
- "string"
 
], - "archived": true,
 - "behavior": {
- "goal": "increase",
 - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "cap": 0,
 - "capping": "absolute",
 - "capValue": 0,
 - "windowSettings": {
- "type": "none",
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "priorSettings": {
- "override": true,
 - "proper": true,
 - "mean": 0,
 - "stddev": 0
 
}, - "conversionWindowStart": 0,
 - "conversionWindowEnd": 0,
 - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0
 
}, - "sql": {
- "identifierTypes": [
- "string"
 
], - "conversionSQL": "string",
 - "userAggregationSQL": "string",
 - "denominatorMetricId": "string"
 
}, - "sqlBuilder": {
- "identifierTypeColumns": [
- {
- "identifierType": "string",
 - "columnName": "string"
 
} 
], - "tableName": "string",
 - "valueColumnName": "string",
 - "timestampColumnName": "string",
 - "conditions": [
- {
- "column": "string",
 - "operator": "string",
 - "value": "string"
 
} 
] 
}, - "mixpanel": {
- "eventName": "string",
 - "eventValue": "string",
 - "userAggregation": "string",
 - "conditions": [
- {
- "property": "string",
 - "operator": "string",
 - "value": "string"
 
} 
] 
} 
} 
}| id required  | string  The id of the requested resource  | 
| managedBy | string  Enum: "" "api" "admin"   Where this metric must be managed from. If not set (empty string), it can be managed from anywhere. If set to "api", it can be managed via the API only. Please note that we have deprecated support for setting the managedBy property to "admin". Your existing Legacy Metrics with this value will continue to work, but we suggest migrating to Fact Metrics instead.  | 
| owner | string  Name of the person who owns this metric  | 
| name | string  Name of the metric  | 
| description | string  Description of the metric  | 
| type | |
| tags | Array of strings  List of tags  | 
| projects | Array of strings  List of project IDs for projects that can access this metric  | 
| archived | boolean   | 
object   | |
object  Preferred way to define SQL. Only one of   | |
object  An alternative way to specify a SQL metric, rather than a full query. Using   | |
object  Only use for MixPanel (non-SQL) Data Sources. Only one of   | 
{- "managedBy": "",
 - "owner": "string",
 - "name": "string",
 - "description": "string",
 - "type": "binomial",
 - "tags": [
- "string"
 
], - "projects": [
- "string"
 
], - "archived": true,
 - "behavior": {
- "goal": "increase",
 - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "cap": 0,
 - "capping": "absolute",
 - "capValue": 0,
 - "windowSettings": {
- "type": "none",
 - "delayHours": 0,
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "conversionWindowStart": 0,
 - "conversionWindowEnd": 0,
 - "priorSettings": {
- "override": true,
 - "proper": true,
 - "mean": 0,
 - "stddev": 0
 
}, - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0
 
}, - "sql": {
- "identifierTypes": [
- "string"
 
], - "conversionSQL": "string",
 - "userAggregationSQL": "string",
 - "denominatorMetricId": "string"
 
}, - "sqlBuilder": {
- "identifierTypeColumns": [
- {
- "identifierType": "string",
 - "columnName": "string"
 
} 
], - "tableName": "string",
 - "valueColumnName": "string",
 - "timestampColumnName": "string",
 - "conditions": [
- {
- "column": "string",
 - "operator": "string",
 - "value": "string"
 
} 
] 
}, - "mixpanel": {
- "eventName": "string",
 - "eventValue": "string",
 - "userAggregation": "string",
 - "conditions": [
- {
- "property": "string",
 - "operator": "string",
 - "value": "string"
 
} 
] 
} 
}{- "updatedId": "string"
 
}| id required  | string  The id of the requested resource  | 
curl -X DELETE https://api.growthbook.io/api/v1/metrics/met_123abc \ -u secret_abc123DEF456:
{- "deletedId": "string"
 
}| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
| projectId | string  Filter by project id  | 
| datasourceId | string  Filter by Data Source  | 
| experimentId | string  Filter the returned list by the experiment tracking key (id)  | 
curl https://api.growthbook.io/api/v1/experiments \ -u secret_abc123DEF456:
{- "experiments": [
- {
- "id": "string",
 - "trackingKey": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "type": "standard",
 - "project": "string",
 - "hypothesis": "string",
 - "description": "string",
 - "tags": [
- "string"
 
], - "owner": "string",
 - "archived": true,
 - "status": "string",
 - "autoRefresh": true,
 - "hashAttribute": "string",
 - "fallbackAttribute": "string",
 - "hashVersion": 1,
 - "disableStickyBucketing": true,
 - "bucketVersion": 0,
 - "minBucketVersion": 0,
 - "variations": [
- {
- "variationId": "string",
 - "key": "string",
 - "name": "string",
 - "description": "string",
 - "screenshots": [
- "string"
 
] 
} 
], - "phases": [
- {
- "name": "string",
 - "dateStarted": "string",
 - "dateEnded": "string",
 - "reasonForStopping": "string",
 - "seed": "string",
 - "coverage": 0,
 - "trafficSplit": [
- {
- "variationId": "string",
 - "weight": 0
 
} 
], - "namespace": {
- "namespaceId": "string",
 - "range": [ ]
 
}, - "targetingCondition": "string",
 - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
] 
} 
], - "settings": {
- "datasourceId": "string",
 - "assignmentQueryId": "string",
 - "experimentId": "string",
 - "segmentId": "string",
 - "queryFilter": "string",
 - "inProgressConversions": "include",
 - "attributionModel": "firstExposure",
 - "statsEngine": "bayesian",
 - "regressionAdjustmentEnabled": true,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "goals": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "secondaryMetrics": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "guardrails": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "activationMetric": {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
}, - "resultSummary": {
- "status": "string",
 - "winner": "string",
 - "conclusions": "string",
 - "releasedVariationId": "string",
 - "excludeFromPayload": true
 
}, - "shareLevel": "public",
 - "publicUrl": "string",
 - "banditScheduleValue": 0,
 - "banditScheduleUnit": "days",
 - "banditBurnInValue": 0,
 - "banditBurnInUnit": "days",
 - "linkedFeatures": [
- "string"
 
], - "hasVisualChangesets": true,
 - "hasURLRedirects": true,
 - "customFields": { },
 - "pinnedMetricSlices": [
- "string"
 
], - "customMetricSlices": [
- {
- "slices": [
- {
- "column": "string",
 - "levels": [
- "string"
 
] 
} 
] 
} 
] 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| datasourceId | string  ID for the DataSource  | 
| assignmentQueryId required  | string  The ID property of one of the assignment query objects associated with the datasource  | 
| trackingKey required  | string   | 
| name required  | string  Name of the experiment  | 
| type | string  Enum: "standard" "multi-armed-bandit"    | 
| project | string  Project ID which the experiment belongs to  | 
| hypothesis | string  Hypothesis of the experiment  | 
| description | string  Description of the experiment  | 
| tags | Array of strings   | 
| metrics | Array of strings   | 
| secondaryMetrics | Array of strings   | 
| guardrailMetrics | Array of strings   | 
| activationMetric | string  Users must convert on this metric before being included  | 
| segmentId | string  Only users in this segment will be included  | 
| queryFilter | string  WHERE clause to add to the default experiment query  | 
| owner | string  Email of the person who owns this experiment  | 
| archived | boolean   | 
| status | string  Enum: "draft" "running" "stopped"    | 
| autoRefresh | boolean   | 
| hashAttribute | string   | 
| fallbackAttribute | string   | 
| hashVersion | number  Enum: 1 2    | 
| disableStickyBucketing | boolean   | 
| bucketVersion | number   | 
| minBucketVersion | number   | 
| releasedVariationId | string   | 
| excludeFromPayload | boolean   | 
| inProgressConversions | string  Enum: "loose" "strict"    | 
| attributionModel | string  Enum: "firstExposure" "experimentDuration"   Setting attribution model to   | 
| statsEngine | string  Enum: "bayesian" "frequentist"    | 
required  | Array of objects  >= 2 items    | 
Array of objects   | |
| regressionAdjustmentEnabled | boolean  Controls whether regression adjustment (CUPED) is enabled for experiment analyses  | 
| sequentialTestingEnabled | boolean  Only applicable to frequentist analyses  | 
| sequentialTestingTuningParameter | number   | 
| shareLevel | string  Enum: "public" "organization"    | 
| banditScheduleValue | number   | 
| banditScheduleUnit | string  Enum: "days" "hours"    | 
| banditBurnInValue | number   | 
| banditBurnInUnit | string  Enum: "days" "hours"    | 
| pinnedMetricSlices | Array of strings  Array of pinned metric slices in format   | 
Array of objects  Custom slices that apply to ALL applicable metrics in the experiment  | 
{- "datasourceId": "string",
 - "assignmentQueryId": "string",
 - "trackingKey": "string",
 - "name": "string",
 - "type": "standard",
 - "project": "string",
 - "hypothesis": "string",
 - "description": "string",
 - "tags": [
- "string"
 
], - "metrics": [
- "string"
 
], - "secondaryMetrics": [
- "string"
 
], - "guardrailMetrics": [
- "string"
 
], - "activationMetric": "string",
 - "segmentId": "string",
 - "queryFilter": "string",
 - "owner": "string",
 - "archived": true,
 - "status": "draft",
 - "autoRefresh": true,
 - "hashAttribute": "string",
 - "fallbackAttribute": "string",
 - "hashVersion": 1,
 - "disableStickyBucketing": true,
 - "bucketVersion": 0,
 - "minBucketVersion": 0,
 - "releasedVariationId": "string",
 - "excludeFromPayload": true,
 - "inProgressConversions": "loose",
 - "attributionModel": "firstExposure",
 - "statsEngine": "bayesian",
 - "variations": [
- {
- "id": "string",
 - "key": "string",
 - "name": "string",
 - "description": "string",
 - "screenshots": [
- {
- "path": "string",
 - "width": 0,
 - "height": 0,
 - "description": "string"
 
} 
] 
}, - {
- "id": "string",
 - "key": "string",
 - "name": "string",
 - "description": "string",
 - "screenshots": [
- {
- "path": "string",
 - "width": 0,
 - "height": 0,
 - "description": "string"
 
} 
] 
} 
], - "phases": [
- {
- "name": "string",
 - "dateStarted": "2019-08-24T14:15:22Z",
 - "dateEnded": "2019-08-24T14:15:22Z",
 - "reasonForStopping": "string",
 - "seed": "string",
 - "coverage": 0,
 - "trafficSplit": [
- {
- "variationId": "string",
 - "weight": 0
 
} 
], - "namespace": {
- "namespaceId": "string",
 - "range": [
- 0,
 - 0
 
], - "enabled": true
 
}, - "targetingCondition": "string",
 - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "reason": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "variationWeights": [
- 0
 
] 
} 
], - "regressionAdjustmentEnabled": true,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "shareLevel": "public",
 - "banditScheduleValue": 0,
 - "banditScheduleUnit": "days",
 - "banditBurnInValue": 0,
 - "banditBurnInUnit": "days",
 - "pinnedMetricSlices": [
- "string"
 
], - "customMetricSlices": [
- {
- "slices": [
- {
- "column": "string",
 - "levels": [
- "string"
 
] 
} 
] 
} 
] 
}{- "experiment": {
- "id": "string",
 - "trackingKey": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "type": "standard",
 - "project": "string",
 - "hypothesis": "string",
 - "description": "string",
 - "tags": [
- "string"
 
], - "owner": "string",
 - "archived": true,
 - "status": "string",
 - "autoRefresh": true,
 - "hashAttribute": "string",
 - "fallbackAttribute": "string",
 - "hashVersion": 1,
 - "disableStickyBucketing": true,
 - "bucketVersion": 0,
 - "minBucketVersion": 0,
 - "variations": [
- {
- "variationId": "string",
 - "key": "string",
 - "name": "string",
 - "description": "string",
 - "screenshots": [
- "string"
 
] 
} 
], - "phases": [
- {
- "name": "string",
 - "dateStarted": "string",
 - "dateEnded": "string",
 - "reasonForStopping": "string",
 - "seed": "string",
 - "coverage": 0,
 - "trafficSplit": [
- {
- "variationId": "string",
 - "weight": 0
 
} 
], - "namespace": {
- "namespaceId": "string",
 - "range": [ ]
 
}, - "targetingCondition": "string",
 - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
] 
} 
], - "settings": {
- "datasourceId": "string",
 - "assignmentQueryId": "string",
 - "experimentId": "string",
 - "segmentId": "string",
 - "queryFilter": "string",
 - "inProgressConversions": "include",
 - "attributionModel": "firstExposure",
 - "statsEngine": "bayesian",
 - "regressionAdjustmentEnabled": true,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "goals": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "secondaryMetrics": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "guardrails": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "activationMetric": {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
}, - "resultSummary": {
- "status": "string",
 - "winner": "string",
 - "conclusions": "string",
 - "releasedVariationId": "string",
 - "excludeFromPayload": true
 
}, - "shareLevel": "public",
 - "publicUrl": "string",
 - "banditScheduleValue": 0,
 - "banditScheduleUnit": "days",
 - "banditBurnInValue": 0,
 - "banditBurnInUnit": "days",
 - "linkedFeatures": [
- "string"
 
], - "hasVisualChangesets": true,
 - "hasURLRedirects": true,
 - "customFields": { },
 - "pinnedMetricSlices": [
- "string"
 
], - "customMetricSlices": [
- {
- "slices": [
- {
- "column": "string",
 - "levels": [
- "string"
 
] 
} 
] 
} 
] 
} 
}| projectId | string  Filter by project id  | 
curl https://api.growthbook.io/api/v1/experiment-names?projectId=prj_5l652 \ -u secret_abc123DEF456:
{- "experiments": [
- {
- "id": "string",
 - "name": "string"
 
} 
] 
}| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/experiments/exp_123abc \ -u secret_abc123DEF456:
{- "experiment": {
- "id": "string",
 - "trackingKey": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "type": "standard",
 - "project": "string",
 - "hypothesis": "string",
 - "description": "string",
 - "tags": [
- "string"
 
], - "owner": "string",
 - "archived": true,
 - "status": "string",
 - "autoRefresh": true,
 - "hashAttribute": "string",
 - "fallbackAttribute": "string",
 - "hashVersion": 1,
 - "disableStickyBucketing": true,
 - "bucketVersion": 0,
 - "minBucketVersion": 0,
 - "variations": [
- {
- "variationId": "string",
 - "key": "string",
 - "name": "string",
 - "description": "string",
 - "screenshots": [
- "string"
 
] 
} 
], - "phases": [
- {
- "name": "string",
 - "dateStarted": "string",
 - "dateEnded": "string",
 - "reasonForStopping": "string",
 - "seed": "string",
 - "coverage": 0,
 - "trafficSplit": [
- {
- "variationId": "string",
 - "weight": 0
 
} 
], - "namespace": {
- "namespaceId": "string",
 - "range": [ ]
 
}, - "targetingCondition": "string",
 - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
] 
} 
], - "settings": {
- "datasourceId": "string",
 - "assignmentQueryId": "string",
 - "experimentId": "string",
 - "segmentId": "string",
 - "queryFilter": "string",
 - "inProgressConversions": "include",
 - "attributionModel": "firstExposure",
 - "statsEngine": "bayesian",
 - "regressionAdjustmentEnabled": true,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "goals": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "secondaryMetrics": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "guardrails": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "activationMetric": {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
}, - "resultSummary": {
- "status": "string",
 - "winner": "string",
 - "conclusions": "string",
 - "releasedVariationId": "string",
 - "excludeFromPayload": true
 
}, - "shareLevel": "public",
 - "publicUrl": "string",
 - "banditScheduleValue": 0,
 - "banditScheduleUnit": "days",
 - "banditBurnInValue": 0,
 - "banditBurnInUnit": "days",
 - "linkedFeatures": [
- "string"
 
], - "hasVisualChangesets": true,
 - "hasURLRedirects": true,
 - "customFields": { },
 - "pinnedMetricSlices": [
- "string"
 
], - "customMetricSlices": [
- {
- "slices": [
- {
- "column": "string",
 - "levels": [
- "string"
 
] 
} 
] 
} 
], - "enhancedStatus": {
- "status": "Running",
 - "detailedStatus": "string"
 
} 
} 
}| id required  | string  The id of the requested resource  | 
| datasourceId | string  Can only be set if existing experiment does not have a datasource  | 
| assignmentQueryId | string   | 
| trackingKey | string   | 
| name | string  Name of the experiment  | 
| type | string  Enum: "standard" "multi-armed-bandit"    | 
| project | string  Project ID which the experiment belongs to  | 
| hypothesis | string  Hypothesis of the experiment  | 
| description | string  Description of the experiment  | 
| tags | Array of strings   | 
| metrics | Array of strings   | 
| secondaryMetrics | Array of strings   | 
| guardrailMetrics | Array of strings   | 
| activationMetric | string  Users must convert on this metric before being included  | 
| segmentId | string  Only users in this segment will be included  | 
| queryFilter | string  WHERE clause to add to the default experiment query  | 
| owner | string  Email of the person who owns this experiment  | 
| archived | boolean   | 
| status | string  Enum: "draft" "running" "stopped"    | 
| autoRefresh | boolean   | 
| hashAttribute | string   | 
| fallbackAttribute | string   | 
| hashVersion | number  Enum: 1 2    | 
| disableStickyBucketing | boolean   | 
| bucketVersion | number   | 
| minBucketVersion | number   | 
| releasedVariationId | string   | 
| excludeFromPayload | boolean   | 
| inProgressConversions | string  Enum: "loose" "strict"    | 
| attributionModel | string  Enum: "firstExposure" "experimentDuration"   Setting attribution model to   | 
| statsEngine | string  Enum: "bayesian" "frequentist"    | 
Array of objects  >= 2 items    | |
Array of objects   | |
| regressionAdjustmentEnabled | boolean  Controls whether regression adjustment (CUPED) is enabled for experiment analyses  | 
| sequentialTestingEnabled | boolean  Only applicable to frequentist analyses  | 
| sequentialTestingTuningParameter | number   | 
| shareLevel | string  Enum: "public" "organization"    | 
| banditScheduleValue | number   | 
| banditScheduleUnit | string  Enum: "days" "hours"    | 
| banditBurnInValue | number   | 
| banditBurnInUnit | string  Enum: "days" "hours"    | 
| pinnedMetricSlices | Array of strings  Array of pinned metric slices in format   | 
Array of objects  Custom slices that apply to ALL applicable metrics in the experiment  | 
{- "datasourceId": "string",
 - "assignmentQueryId": "string",
 - "trackingKey": "string",
 - "name": "string",
 - "type": "standard",
 - "project": "string",
 - "hypothesis": "string",
 - "description": "string",
 - "tags": [
- "string"
 
], - "metrics": [
- "string"
 
], - "secondaryMetrics": [
- "string"
 
], - "guardrailMetrics": [
- "string"
 
], - "activationMetric": "string",
 - "segmentId": "string",
 - "queryFilter": "string",
 - "owner": "string",
 - "archived": true,
 - "status": "draft",
 - "autoRefresh": true,
 - "hashAttribute": "string",
 - "fallbackAttribute": "string",
 - "hashVersion": 1,
 - "disableStickyBucketing": true,
 - "bucketVersion": 0,
 - "minBucketVersion": 0,
 - "releasedVariationId": "string",
 - "excludeFromPayload": true,
 - "inProgressConversions": "loose",
 - "attributionModel": "firstExposure",
 - "statsEngine": "bayesian",
 - "variations": [
- {
- "id": "string",
 - "key": "string",
 - "name": "string",
 - "description": "string",
 - "screenshots": [
- {
- "path": "string",
 - "width": 0,
 - "height": 0,
 - "description": "string"
 
} 
] 
}, - {
- "id": "string",
 - "key": "string",
 - "name": "string",
 - "description": "string",
 - "screenshots": [
- {
- "path": "string",
 - "width": 0,
 - "height": 0,
 - "description": "string"
 
} 
] 
} 
], - "phases": [
- {
- "name": "string",
 - "dateStarted": "2019-08-24T14:15:22Z",
 - "dateEnded": "2019-08-24T14:15:22Z",
 - "reasonForStopping": "string",
 - "seed": "string",
 - "coverage": 0,
 - "trafficSplit": [
- {
- "variationId": "string",
 - "weight": 0
 
} 
], - "namespace": {
- "namespaceId": "string",
 - "range": [
- 0,
 - 0
 
], - "enabled": true
 
}, - "targetingCondition": "string",
 - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "reason": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "variationWeights": [
- 0
 
] 
} 
], - "regressionAdjustmentEnabled": true,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "shareLevel": "public",
 - "banditScheduleValue": 0,
 - "banditScheduleUnit": "days",
 - "banditBurnInValue": 0,
 - "banditBurnInUnit": "days",
 - "pinnedMetricSlices": [
- "string"
 
], - "customMetricSlices": [
- {
- "slices": [
- {
- "column": "string",
 - "levels": [
- "string"
 
] 
} 
] 
} 
] 
}{- "experiment": {
- "id": "string",
 - "trackingKey": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "type": "standard",
 - "project": "string",
 - "hypothesis": "string",
 - "description": "string",
 - "tags": [
- "string"
 
], - "owner": "string",
 - "archived": true,
 - "status": "string",
 - "autoRefresh": true,
 - "hashAttribute": "string",
 - "fallbackAttribute": "string",
 - "hashVersion": 1,
 - "disableStickyBucketing": true,
 - "bucketVersion": 0,
 - "minBucketVersion": 0,
 - "variations": [
- {
- "variationId": "string",
 - "key": "string",
 - "name": "string",
 - "description": "string",
 - "screenshots": [
- "string"
 
] 
} 
], - "phases": [
- {
- "name": "string",
 - "dateStarted": "string",
 - "dateEnded": "string",
 - "reasonForStopping": "string",
 - "seed": "string",
 - "coverage": 0,
 - "trafficSplit": [
- {
- "variationId": "string",
 - "weight": 0
 
} 
], - "namespace": {
- "namespaceId": "string",
 - "range": [ ]
 
}, - "targetingCondition": "string",
 - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
] 
} 
], - "settings": {
- "datasourceId": "string",
 - "assignmentQueryId": "string",
 - "experimentId": "string",
 - "segmentId": "string",
 - "queryFilter": "string",
 - "inProgressConversions": "include",
 - "attributionModel": "firstExposure",
 - "statsEngine": "bayesian",
 - "regressionAdjustmentEnabled": true,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "goals": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "secondaryMetrics": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "guardrails": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "activationMetric": {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
}, - "resultSummary": {
- "status": "string",
 - "winner": "string",
 - "conclusions": "string",
 - "releasedVariationId": "string",
 - "excludeFromPayload": true
 
}, - "shareLevel": "public",
 - "publicUrl": "string",
 - "banditScheduleValue": 0,
 - "banditScheduleUnit": "days",
 - "banditBurnInValue": 0,
 - "banditBurnInUnit": "days",
 - "linkedFeatures": [
- "string"
 
], - "hasVisualChangesets": true,
 - "hasURLRedirects": true,
 - "customFields": { },
 - "pinnedMetricSlices": [
- "string"
 
], - "customMetricSlices": [
- {
- "slices": [
- {
- "column": "string",
 - "levels": [
- "string"
 
] 
} 
] 
} 
] 
} 
}| id required  | string  The experiment id of the experiment to update  | 
| triggeredBy | string  Enum: "manual" "schedule"   Set to "schedule" if you want this request to trigger notifications and other events as it if were a scheduled update. Defaults to manual.  | 
{- "triggeredBy": "manual"
 
}{- "snapshot": {
- "id": "string",
 - "experiment": "string",
 - "status": "string"
 
} 
}| id required  | string  The id of the requested resource  | 
| phase | string   | 
| dimension | string   | 
curl https://api.growthbook.io/api/v1/experiments/exp_123abc/results \ -u secret_abc123DEF456:
{- "result": {
- "id": "string",
 - "dateUpdated": "string",
 - "experimentId": "string",
 - "phase": "string",
 - "dateStart": "string",
 - "dateEnd": "string",
 - "dimension": {
- "type": "string",
 - "id": "string"
 
}, - "settings": {
- "datasourceId": "string",
 - "assignmentQueryId": "string",
 - "experimentId": "string",
 - "segmentId": "string",
 - "queryFilter": "string",
 - "inProgressConversions": "include",
 - "attributionModel": "firstExposure",
 - "statsEngine": "bayesian",
 - "regressionAdjustmentEnabled": true,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "goals": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "secondaryMetrics": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "guardrails": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "activationMetric": {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
}, - "queryIds": [
- "string"
 
], - "results": [
- {
- "dimension": "string",
 - "totalUsers": 0,
 - "checks": {
- "srm": 0
 
}, - "metrics": [
- {
- "metricId": "string",
 - "variations": [
- {
- "variationId": "string",
 - "users": 0,
 - "analyses": [
- {
- "engine": null,
 - "numerator": null,
 - "denominator": null,
 - "mean": null,
 - "stddev": null,
 - "percentChange": null,
 - "ciLow": null,
 - "ciHigh": null,
 - "pValue": null,
 - "risk": null,
 - "chanceToBeatControl": null
 
} 
] 
} 
] 
} 
] 
} 
] 
} 
}| id required  | string  The experiment id of the experiment to update  | 
| triggeredBy | string  Enum: "manual" "schedule"   Set to "schedule" if you want this request to trigger notifications and other events as it if were a scheduled update. Defaults to manual.  | 
{- "triggeredBy": "manual"
 
}{- "snapshot": {
- "id": "string",
 - "experiment": "string",
 - "status": "string"
 
} 
}| id required  | string  The id of the requested resource (a snapshot ID, not experiment ID)  | 
curl -X GET https://api.growthbook.io/api/v1/snapshots/snp_1234 \ -u secret_abc123DEF456:
{- "snapshot": {
- "id": "string",
 - "experiment": "string",
 - "status": "string"
 
} 
}| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
| datasourceId | string  Filter by Data Source  | 
curl https://api.growthbook.io/api/v1/dimensions \ -u secret_abc123DEF456:
{- "dimensions": [
- {
- "id": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "name": "string",
 - "description": "string",
 - "query": "string",
 - "managedBy": ""
 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| name required  | string  Name of the dimension  | 
| description | string  Description of the dimension  | 
| owner | string  Owner of the dimension  | 
| datasourceId required  | string  ID of the datasource this dimension belongs to  | 
| identifierType required  | string  Type of identifier (user, anonymous, etc.)  | 
| query required  | string  SQL query or equivalent for the dimension  | 
| managedBy | string  Enum: "" "api"   Where this dimension must be managed from. If not set (empty string), it can be managed from anywhere.  | 
{- "name": "string",
 - "description": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "query": "string",
 - "managedBy": ""
 
}{- "dimension": {
- "id": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "name": "string",
 - "description": "string",
 - "query": "string",
 - "managedBy": ""
 
} 
}| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/dimensions/dim_123abc \ -u secret_abc123DEF456:
{- "dimension": {
- "id": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "name": "string",
 - "description": "string",
 - "query": "string",
 - "managedBy": ""
 
} 
}| id required  | string  The id of the requested resource  | 
| name | string  Name of the dimension  | 
| description | string  Description of the dimension  | 
| owner | string  Owner of the dimension  | 
| datasourceId | string  ID of the datasource this dimension belongs to  | 
| identifierType | string  Type of identifier (user, anonymous, etc.)  | 
| query | string  SQL query or equivalent for the dimension  | 
| managedBy | string  Enum: "" "api"   Where this dimension must be managed from. If not set (empty string), it can be managed from anywhere.  | 
{- "name": "string",
 - "description": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "query": "string",
 - "managedBy": ""
 
}{- "dimension": {
- "id": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "name": "string",
 - "description": "string",
 - "query": "string",
 - "managedBy": ""
 
} 
}| id required  | string  The id of the requested resource  | 
curl -X DELETE https://api.growthbook.io/api/v1/dimensions/dim_123abc \ -u secret_abc123DEF456:
{- "deletedId": "dim_123abc"
 
}| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
| datasourceId | string  Filter by Data Source  | 
curl https://api.growthbook.io/api/v1/segments \ -u secret_abc123DEF456:
{- "segments": [
- {
- "id": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "name": "string",
 - "description": "string",
 - "query": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "managedBy": "",
 - "type": "SQL",
 - "factTableId": "string",
 - "filters": [
- "string"
 
], - "projects": [
- "string"
 
] 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| name required  | string  Name of the segment  | 
| owner | string  Owner of the segment  | 
| description | string  Description of the segment  | 
| datasourceId required  | string  ID of the datasource this segment belongs to  | 
| identifierType required  | string  Type of identifier (user, anonymous, etc.)  | 
| projects | Array of strings  List of project IDs for projects that can access this segment  | 
| managedBy | string  Enum: "" "api"   Where this Segment must be managed from. If not set (empty string), it can be managed from anywhere.  | 
| type required  | string  Enum: "SQL" "FACT"   GrowthBook supports two types of Segments, SQL and FACT. SQL segments are defined by a SQL query, and FACT segments are defined by a fact table and filters.  | 
| query | string  SQL query that defines the Segment. This is required for SQL segments.  | 
| factTableId | string  ID of the fact table this segment belongs to. This is required for FACT segments.  | 
| filters | Array of strings  Optional array of fact table filter ids that can further define the Fact Table based Segment.  | 
{- "name": "string",
 - "owner": "string",
 - "description": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "projects": [
- "string"
 
], - "managedBy": "",
 - "type": "SQL",
 - "query": "string",
 - "factTableId": "string",
 - "filters": [
- "string"
 
] 
}{- "segment": {
- "id": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "name": "string",
 - "description": "string",
 - "query": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "managedBy": "",
 - "type": "SQL",
 - "factTableId": "string",
 - "filters": [
- "string"
 
], - "projects": [
- "string"
 
] 
} 
}| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/segments/seg_123abc \ -u secret_abc123DEF456:
{- "segment": {
- "id": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "name": "string",
 - "description": "string",
 - "query": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "managedBy": "",
 - "type": "SQL",
 - "factTableId": "string",
 - "filters": [
- "string"
 
], - "projects": [
- "string"
 
] 
} 
}| id required  | string  The id of the requested resource  | 
| name | string  Name of the segment  | 
| description | string  Description of the segment  | 
| owner | string  Owner of the segment  | 
| datasourceId | string  ID of the datasource this segment belongs to  | 
| identifierType | string  Type of identifier (user, anonymous, etc.)  | 
| projects | Array of strings  List of project IDs for projects that can access this segment  | 
| managedBy | string  Enum: "" "api"   Where this Segment must be managed from. If not set (empty string), it can be managed from anywhere.  | 
| type | string  Enum: "SQL" "FACT"   GrowthBook supports two types of Segments, SQL and FACT. SQL segments are defined by a SQL query, and FACT segments are defined by a fact table and filters.  | 
| query | string  SQL query that defines the Segment. This is required for SQL segments.  | 
| factTableId | string  ID of the fact table this segment belongs to. This is required for FACT segments.  | 
| filters | Array of strings  Optional array of fact table filter ids that can further define the Fact Table based Segment.  | 
{- "name": "string",
 - "description": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "projects": [
- "string"
 
], - "managedBy": "",
 - "type": "SQL",
 - "query": "string",
 - "factTableId": "string",
 - "filters": [
- "string"
 
] 
}{- "segment": {
- "id": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "name": "string",
 - "description": "string",
 - "query": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "managedBy": "",
 - "type": "SQL",
 - "factTableId": "string",
 - "filters": [
- "string"
 
], - "projects": [
- "string"
 
] 
} 
}| id required  | string  The id of the requested resource  | 
curl -X DELETE https://api.growthbook.io/api/v1/segment/seg_123abc \ -u secret_abc123DEF456:
{- "deletedId": "seg_123abc"
 
}| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
| projectId | string  Filter by project id  | 
| withProxy | string   | 
| multiOrg | string   | 
curl https://api.growthbook.io/api/v1/sdk-connections \ -u secret_abc123DEF456:
{- "connections": [
- {
- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "organization": "string",
 - "languages": [
- "string"
 
], - "sdkVersion": "string",
 - "environment": "string",
 - "project": "string",
 - "projects": [
- "string"
 
], - "encryptPayload": true,
 - "encryptionKey": "string",
 - "includeVisualExperiments": true,
 - "includeDraftExperiments": true,
 - "includeExperimentNames": true,
 - "includeRedirectExperiments": true,
 - "includeRuleIds": true,
 - "key": "string",
 - "proxyEnabled": true,
 - "proxyHost": "string",
 - "proxySigningKey": "string",
 - "sseEnabled": true,
 - "hashSecureAttributes": true,
 - "remoteEvalEnabled": true,
 - "savedGroupReferencesEnabled": true
 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| name required  | string   | 
| language required  | string   | 
| sdkVersion | string   | 
| environment required  | string   | 
| projects | Array of strings   | 
| encryptPayload | boolean   | 
| includeVisualExperiments | boolean   | 
| includeDraftExperiments | boolean   | 
| includeExperimentNames | boolean   | 
| includeRedirectExperiments | boolean   | 
| includeRuleIds | boolean   | 
| proxyEnabled | boolean   | 
| proxyHost | string   | 
| hashSecureAttributes | boolean   | 
| remoteEvalEnabled | boolean   | 
| savedGroupReferencesEnabled | boolean   | 
{- "name": "string",
 - "language": "string",
 - "sdkVersion": "string",
 - "environment": "string",
 - "projects": [
- "string"
 
], - "encryptPayload": true,
 - "includeVisualExperiments": true,
 - "includeDraftExperiments": true,
 - "includeExperimentNames": true,
 - "includeRedirectExperiments": true,
 - "includeRuleIds": true,
 - "proxyEnabled": true,
 - "proxyHost": "string",
 - "hashSecureAttributes": true,
 - "remoteEvalEnabled": true,
 - "savedGroupReferencesEnabled": true
 
}{- "sdkConnection": {
- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "organization": "string",
 - "languages": [
- "string"
 
], - "sdkVersion": "string",
 - "environment": "string",
 - "project": "string",
 - "projects": [
- "string"
 
], - "encryptPayload": true,
 - "encryptionKey": "string",
 - "includeVisualExperiments": true,
 - "includeDraftExperiments": true,
 - "includeExperimentNames": true,
 - "includeRedirectExperiments": true,
 - "includeRuleIds": true,
 - "key": "string",
 - "proxyEnabled": true,
 - "proxyHost": "string",
 - "proxySigningKey": "string",
 - "sseEnabled": true,
 - "hashSecureAttributes": true,
 - "remoteEvalEnabled": true,
 - "savedGroupReferencesEnabled": true
 
} 
}| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/sdk-connections/sdk_123abc \ -u secret_abc123DEF456:
{- "sdkConnection": {
- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "organization": "string",
 - "languages": [
- "string"
 
], - "sdkVersion": "string",
 - "environment": "string",
 - "project": "string",
 - "projects": [
- "string"
 
], - "encryptPayload": true,
 - "encryptionKey": "string",
 - "includeVisualExperiments": true,
 - "includeDraftExperiments": true,
 - "includeExperimentNames": true,
 - "includeRedirectExperiments": true,
 - "includeRuleIds": true,
 - "key": "string",
 - "proxyEnabled": true,
 - "proxyHost": "string",
 - "proxySigningKey": "string",
 - "sseEnabled": true,
 - "hashSecureAttributes": true,
 - "remoteEvalEnabled": true,
 - "savedGroupReferencesEnabled": true
 
} 
}| id required  | string  The id of the requested resource  | 
| name | string   | 
| language | string   | 
| sdkVersion | string   | 
| environment | string   | 
| projects | Array of strings   | 
| encryptPayload | boolean   | 
| includeVisualExperiments | boolean   | 
| includeDraftExperiments | boolean   | 
| includeExperimentNames | boolean   | 
| includeRedirectExperiments | boolean   | 
| includeRuleIds | boolean   | 
| proxyEnabled | boolean   | 
| proxyHost | string   | 
| hashSecureAttributes | boolean   | 
| remoteEvalEnabled | boolean   | 
| savedGroupReferencesEnabled | boolean   | 
{- "name": "string",
 - "language": "string",
 - "sdkVersion": "string",
 - "environment": "string",
 - "projects": [
- "string"
 
], - "encryptPayload": true,
 - "includeVisualExperiments": true,
 - "includeDraftExperiments": true,
 - "includeExperimentNames": true,
 - "includeRedirectExperiments": true,
 - "includeRuleIds": true,
 - "proxyEnabled": true,
 - "proxyHost": "string",
 - "hashSecureAttributes": true,
 - "remoteEvalEnabled": true,
 - "savedGroupReferencesEnabled": true
 
}{- "sdkConnection": {
- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "organization": "string",
 - "languages": [
- "string"
 
], - "sdkVersion": "string",
 - "environment": "string",
 - "project": "string",
 - "projects": [
- "string"
 
], - "encryptPayload": true,
 - "encryptionKey": "string",
 - "includeVisualExperiments": true,
 - "includeDraftExperiments": true,
 - "includeExperimentNames": true,
 - "includeRedirectExperiments": true,
 - "includeRuleIds": true,
 - "key": "string",
 - "proxyEnabled": true,
 - "proxyHost": "string",
 - "proxySigningKey": "string",
 - "sseEnabled": true,
 - "hashSecureAttributes": true,
 - "remoteEvalEnabled": true,
 - "savedGroupReferencesEnabled": true
 
} 
}| key required  | string  The key of the requested sdkConnection  | 
curl https://api.growthbook.io/api/v1/sdk-connections/lookup/sdk-123abc \ -u secret_abc123DEF456:
{- "sdkConnection": {
- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "organization": "string",
 - "languages": [
- "string"
 
], - "sdkVersion": "string",
 - "environment": "string",
 - "project": "string",
 - "projects": [
- "string"
 
], - "encryptPayload": true,
 - "encryptionKey": "string",
 - "includeVisualExperiments": true,
 - "includeDraftExperiments": true,
 - "includeExperimentNames": true,
 - "includeRedirectExperiments": true,
 - "includeRuleIds": true,
 - "key": "string",
 - "proxyEnabled": true,
 - "proxyHost": "string",
 - "proxySigningKey": "string",
 - "sseEnabled": true,
 - "hashSecureAttributes": true,
 - "remoteEvalEnabled": true,
 - "savedGroupReferencesEnabled": true
 
} 
}| id required  | string  The experiment id the visual changesets belong to  | 
curl https://api.growthbook.io/api/v1/experiments/exp_123abc/visual-changesets \ -u secret_abc123DEF456:
{- "visualChangesets": [
- {
- "id": "string",
 - "urlPatterns": [
- {
- "include": true,
 - "type": "simple",
 - "pattern": "string"
 
} 
], - "editorUrl": "string",
 - "experiment": "string",
 - "visualChanges": [
- {
- "description": "string",
 - "css": "string",
 - "js": "string",
 - "variation": "string",
 - "domMutations": [
- {
- "selector": "string",
 - "action": "append",
 - "attribute": "string",
 - "value": "string",
 - "parentSelector": "string",
 - "insertBeforeSelector": "string"
 
} 
] 
} 
] 
} 
] 
}| id required  | string  The id of the requested resource  | 
| includeExperiment | integer  Include the associated experiment in payload  | 
curl https://api.growthbook.io/api/v1/visual-changesets/ds_123abc \ -u secret_abc123DEF456:
{- "visualChangeset": {
- "id": "string",
 - "urlPatterns": [
- {
- "include": true,
 - "type": "simple",
 - "pattern": "string"
 
} 
], - "editorUrl": "string",
 - "experiment": "string",
 - "visualChanges": [
- {
- "description": "string",
 - "css": "string",
 - "js": "string",
 - "variation": "string",
 - "domMutations": [
- {
- "selector": "string",
 - "action": "append",
 - "attribute": "string",
 - "value": "string",
 - "parentSelector": "string",
 - "insertBeforeSelector": "string"
 
} 
] 
} 
] 
}, - "experiment": {
- "id": "string",
 - "trackingKey": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "type": "standard",
 - "project": "string",
 - "hypothesis": "string",
 - "description": "string",
 - "tags": [
- "string"
 
], - "owner": "string",
 - "archived": true,
 - "status": "string",
 - "autoRefresh": true,
 - "hashAttribute": "string",
 - "fallbackAttribute": "string",
 - "hashVersion": 1,
 - "disableStickyBucketing": true,
 - "bucketVersion": 0,
 - "minBucketVersion": 0,
 - "variations": [
- {
- "variationId": "string",
 - "key": "string",
 - "name": "string",
 - "description": "string",
 - "screenshots": [
- "string"
 
] 
} 
], - "phases": [
- {
- "name": "string",
 - "dateStarted": "string",
 - "dateEnded": "string",
 - "reasonForStopping": "string",
 - "seed": "string",
 - "coverage": 0,
 - "trafficSplit": [
- {
- "variationId": "string",
 - "weight": 0
 
} 
], - "namespace": {
- "namespaceId": "string",
 - "range": [ ]
 
}, - "targetingCondition": "string",
 - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
] 
} 
], - "settings": {
- "datasourceId": "string",
 - "assignmentQueryId": "string",
 - "experimentId": "string",
 - "segmentId": "string",
 - "queryFilter": "string",
 - "inProgressConversions": "include",
 - "attributionModel": "firstExposure",
 - "statsEngine": "bayesian",
 - "regressionAdjustmentEnabled": true,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "goals": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "secondaryMetrics": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "guardrails": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "activationMetric": {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
}, - "resultSummary": {
- "status": "string",
 - "winner": "string",
 - "conclusions": "string",
 - "releasedVariationId": "string",
 - "excludeFromPayload": true
 
}, - "shareLevel": "public",
 - "publicUrl": "string",
 - "banditScheduleValue": 0,
 - "banditScheduleUnit": "days",
 - "banditBurnInValue": 0,
 - "banditBurnInUnit": "days",
 - "linkedFeatures": [
- "string"
 
], - "hasVisualChangesets": true,
 - "hasURLRedirects": true,
 - "customFields": { },
 - "pinnedMetricSlices": [
- "string"
 
], - "customMetricSlices": [
- {
- "slices": [
- {
- "column": "string",
 - "levels": [
- "string"
 
] 
} 
] 
} 
] 
} 
}| id required  | string  The id of the requested resource  | 
curl -XPUT https://api.growthbook.io/api/v1/visual-changesets/vc_123abc -d '{"editorUrl": "https://docs.growthbook.io", "urlPatterns":"[{ ... }]"}' \ -u secret_abc123DEF456:
{- "nModified": 0,
 - "visualChangeset": {
- "id": "string",
 - "urlPatterns": [
- {
- "include": true,
 - "type": "simple",
 - "pattern": "string"
 
} 
], - "editorUrl": "string",
 - "experiment": "string",
 - "visualChanges": [
- {
- "description": "string",
 - "css": "string",
 - "js": "string",
 - "variation": "string",
 - "domMutations": [
- {
- "selector": "string",
 - "action": "append",
 - "attribute": "string",
 - "value": "string",
 - "parentSelector": "string",
 - "insertBeforeSelector": "string"
 
} 
] 
} 
] 
} 
}| id required  | string  The id of the requested resource  | 
curl -XPOST https://api.growthbook.io/api/v1/visual-changesets/vc_123abc/visual-change \ -d '{"variation": "v_123abc", "domMutations":"[]"}' \ -u secret_abc123DEF456:
{- "nModified": 0
 
}| id required  | string  The id of the requested resource  | 
| visualChangeId required  | string  Specify a specific visual change  | 
curl -XPUT https://api.growthbook.io/api/v1/visual-changesets/vc_123abc/visual-change/vch_abc123 \ -d '{"variation": "v_123abc", "domMutations":"[]"}' \ -u secret_abc123DEF456:
{- "nModified": 0
 
}Defined sets of attribute values which can be used with feature rules for targeting features at particular users.
| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
curl https://api.growthbook.io/api/v1/saved-groups \ -u secret_abc123DEF456:
{- "savedGroups": [
- {
- "id": "string",
 - "type": "condition",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "owner": "string",
 - "condition": "string",
 - "attributeKey": "string",
 - "values": [
- "string"
 
], - "description": "string",
 - "projects": [
- "string"
 
] 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| name required  | string  The display name of the Saved Group  | 
| type | string  Enum: "condition" "list"   The type of Saved Group (inferred from other arguments if missing)  | 
| condition | string  When type = 'condition', this is the JSON-encoded condition for the group  | 
| attributeKey | string  When type = 'list', this is the attribute key the group is based on  | 
| values | Array of strings  When type = 'list', this is the list of values for the attribute key  | 
| owner | string  The person or team that owns this Saved Group. If no owner, you can pass an empty string.  | 
| projects | Array of strings   | 
{- "name": "string",
 - "type": "condition",
 - "condition": "string",
 - "attributeKey": "string",
 - "values": [
- "string"
 
], - "owner": "string",
 - "projects": [
- "string"
 
] 
}{- "savedGroup": {
- "id": "string",
 - "type": "condition",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "owner": "string",
 - "condition": "string",
 - "attributeKey": "string",
 - "values": [
- "string"
 
], - "description": "string",
 - "projects": [
- "string"
 
] 
} 
}| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/saved-groups/ds_123abc \ -u secret_abc123DEF456:
{- "savedGroup": {
- "id": "string",
 - "type": "condition",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "owner": "string",
 - "condition": "string",
 - "attributeKey": "string",
 - "values": [
- "string"
 
], - "description": "string",
 - "projects": [
- "string"
 
] 
} 
}| id required  | string  The id of the requested resource  | 
| name | string  The display name of the Saved Group  | 
| condition | string  When type = 'condition', this is the JSON-encoded condition for the group  | 
| values | Array of strings  When type = 'list', this is the list of values for the attribute key  | 
| owner | string  The person or team that owns this Saved Group. If no owner, you can pass an empty string.  | 
| projects | Array of strings   | 
{- "name": "string",
 - "condition": "string",
 - "values": [
- "string"
 
], - "owner": "string",
 - "projects": [
- "string"
 
] 
}{- "savedGroup": {
- "id": "string",
 - "type": "condition",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "owner": "string",
 - "condition": "string",
 - "attributeKey": "string",
 - "values": [
- "string"
 
], - "description": "string",
 - "projects": [
- "string"
 
] 
} 
}| id required  | string  The id of the requested resource  | 
curl -X DELETE https://api.growthbook.io/api/v1/saved-groups/grp_123abc \ -u secret_abc123DEF456:
{- "deletedId": "string"
 
}Organizations are used for multi-org deployments where different teams can run their own isolated feature flags and experiments. These endpoints are only via a super-admin's Personal Access Token.
| search | string  Search string to search organization names, owner emails, and external ids by  | 
| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
curl https://api.growthbook.io/api/v1/organizations \ -u secret_abc123DEF456:
{- "organizations": [
- {
- "id": "string",
 - "externalId": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "ownerEmail": "string"
 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| name required  | string  The name of the organization  | 
| externalId | string  An optional identifier that you use within your company for the organization  | 
{- "name": "string",
 - "externalId": "string"
 
}{- "organization": {
- "id": "string",
 - "externalId": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "ownerEmail": "string"
 
} 
}| id required  | string  The id of the requested resource  | 
| name | string  The name of the organization  | 
| externalId | string  An optional identifier that you use within your company for the organization  | 
{- "name": "string",
 - "externalId": "string"
 
}{- "organization": {
- "id": "string",
 - "externalId": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "ownerEmail": "string"
 
} 
}| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
| userName | string  Name of the user.  | 
| userEmail | string  Email address of the user.  | 
| globalRole | string  Name of the global role  | 
curl https://api.growthbook.io/api/v1/members \ -u secret_abc123DEF456:
{- "members": [
- {
- "id": "string",
 - "name": "string",
 - "email": "string",
 - "globalRole": "string",
 - "environments": [
- "string"
 
], - "limitAccessByEnvironment": true,
 - "managedbyIdp": true,
 - "teams": [
- "string"
 
], - "projectRoles": [
- {
- "project": "string",
 - "role": "string",
 - "limitAccessByEnvironment": true,
 - "environments": [
- "string"
 
] 
} 
], - "lastLoginDate": "2019-08-24T14:15:22Z",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| id required  | string  The id of the requested resource  | 
curl -X DELETE https://api.growthbook.io/api/v1/members/member_id \ -u secret_abc123DEF456:
{- "deletedId": "string"
 
}| id required  | string  The id of the requested resource  | 
required  | object   | ||||||
  | |||||||
{- "member": {
- "role": "string",
 - "environments": [
- "string"
 
], - "projectRoles": [
- {
- "project": "string",
 - "role": "string",
 - "environments": [
- "string"
 
], - "limitAccessByEnvironment": true
 
} 
] 
} 
}{- "updatedMember": {
- "id": "string",
 - "role": "string",
 - "environments": [
- "string"
 
], - "limitAccessByEnvironment": true,
 - "projectRoles": [
- {
- "project": "string",
 - "role": "string",
 - "limitAccessByEnvironment": true,
 - "environments": [
- "string"
 
] 
} 
] 
} 
}Intended for use with our code reference CI utility, gb-find-code-refs.
| deleteMissing | string  Enum: "true" "false"   Whether to delete code references that are no longer present in the submitted data  | 
| branch required  | string   | 
| repoName required  | string   | 
required  | Array of objects   | 
{- "branch": "string",
 - "repoName": "string",
 - "refs": [
- {
- "filePath": "string",
 - "startingLineNumber": 0,
 - "lines": "string",
 - "flagKey": "string",
 - "contentHash": "string"
 
} 
] 
}{- "featuresUpdated": [
- "string"
 
] 
}| limit | integer  Default:  10  The number of items to return  | 
| offset | integer  Default:  0  How many items to skip (use in conjunction with limit for pagination)  | 
curl https://api.growthbook.io/api/v1/code-refs/ \ -u secret_abc123DEF456:
{- "codeRefs": [
- {
- "organization": "string",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "feature": "string",
 - "repo": "string",
 - "branch": "string",
 - "platform": "github",
 - "refs": [
- {
- "filePath": "string",
 - "startingLineNumber": 0,
 - "lines": "string",
 - "flagKey": "string"
 
} 
] 
} 
], - "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/code-refs/my_feature \ -u secret_abc123DEF456:
{- "codeRefs": [
- {
- "organization": "string",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "feature": "string",
 - "repo": "string",
 - "branch": "string",
 - "platform": "github",
 - "refs": [
- {
- "filePath": "string",
 - "startingLineNumber": 0,
 - "lines": "string",
 - "flagKey": "string"
 
} 
] 
} 
] 
}curl https://api.growthbook.io/api/v1/archetypes \ -u secret_abc123DEF456:
{- "archetypes": [
- {
- "id": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "isPublic": true,
 - "attributes": { },
 - "projects": [
- "string"
 
] 
} 
] 
}| name required  | string   | 
| description | string   | 
| isPublic required  | boolean  Whether to make this Archetype available to other team members  | 
| attributes | object  The attributes to set when using this Archetype  | 
| projects | Array of strings   | 
{- "name": "string",
 - "description": "string",
 - "isPublic": true,
 - "attributes": { },
 - "projects": [
- "string"
 
] 
}{- "archetype": {
- "id": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "isPublic": true,
 - "attributes": { },
 - "projects": [
- "string"
 
] 
} 
}| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/archetypes/sam_123abc \ -u secret_abc123DEF456:
{- "archetype": {
- "id": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "isPublic": true,
 - "attributes": { },
 - "projects": [
- "string"
 
] 
} 
}| id required  | string  The id of the requested resource  | 
| name | string   | 
| description | string   | 
| isPublic | boolean  Whether to make this Archetype available to other team members  | 
| attributes | object  The attributes to set when using this Archetype  | 
| projects | Array of strings   | 
{- "name": "string",
 - "description": "string",
 - "isPublic": true,
 - "attributes": { },
 - "projects": [
- "string"
 
] 
}{- "archetype": {
- "id": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "isPublic": true,
 - "attributes": { },
 - "projects": [
- "string"
 
] 
} 
}| id required  | string  The id of the requested resource  | 
curl -X DELETE https://api.growthbook.io/api/v1/archetypes/sam_abc123 \ -u secret_abc123DEF456:
{- "deletedId": "string"
 
}| id required  | string  The id of the requested resource  | 
curl https://api.growthbook.io/api/v1/queries/qry_123abc \ -u secret_abc123DEF456:
{- "query": {
- "id": "string",
 - "organization": "string",
 - "datasource": "string",
 - "language": "string",
 - "query": "string",
 - "queryType": "string",
 - "createdAt": "string",
 - "startedAt": "string",
 - "status": "running",
 - "externalId": "string",
 - "dependencies": [
- "string"
 
], - "runAtEnd": true
 
} 
}curl https://api.growthbook.io/api/v1/settings \ -u secret_abc123DEF456:
{- "settings": {
- "confidenceLevel": 0,
 - "northStar": {
- "title": "string",
 - "metricIds": [
- "string"
 
] 
}, - "metricDefaults": {
- "priorSettings": {
- "override": true,
 - "proper": true,
 - "mean": 0,
 - "stddev": 0
 
}, - "minimumSampleSize": 0,
 - "maxPercentageChange": 0,
 - "minPercentageChange": 0,
 - "targetMDE": 0
 
}, - "pastExperimentsMinLength": 0,
 - "metricAnalysisDays": 0,
 - "updateSchedule": {
- "type": "cron",
 - "cron": "string",
 - "hours": 0
 
}, - "multipleExposureMinPercent": 0,
 - "defaultRole": {
- "role": "string",
 - "limitAccessByEnvironment": true,
 - "environments": [
- "string"
 
] 
}, - "statsEngine": "string",
 - "pValueThreshold": 0,
 - "regressionAdjustmentEnabled": true,
 - "regressionAdjustmentDays": 0,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "attributionModel": "firstExposure",
 - "targetMDE": 0,
 - "delayHours": 0,
 - "windowType": "string",
 - "windowHours": 0,
 - "winRisk": 0,
 - "loseRisk": 0,
 - "secureAttributeSalt": "string",
 - "killswitchConfirmation": true,
 - "requireReviews": [
- {
- "requireReviewOn": true,
 - "resetReviewOnChange": true,
 - "environments": [
- "string"
 
], - "projects": [
- "string"
 
] 
} 
], - "featureKeyExample": "string",
 - "featureRegexValidator": "string",
 - "banditScheduleValue": 0,
 - "banditScheduleUnit": "hours",
 - "banditBurnInValue": 0,
 - "banditBurnInUnit": "hours",
 - "experimentMinLengthDays": 0,
 - "experimentMaxLengthDays": 0,
 - "preferredEnvironment": "string",
 - "maxMetricSliceLevels": 0
 
} 
}curl https://api.growthbook.io/api/v1/attributes \ -u secret_abc123DEF456:
{- "attributes": [
- {
- "property": "string",
 - "datatype": "boolean",
 - "description": "string",
 - "hashAttribute": true,
 - "archived": true,
 - "enum": "string",
 - "format": "",
 - "projects": [
- "string"
 
] 
} 
] 
}| property required  | string  The attribute property  | 
| datatype required  | string  Enum: "boolean" "string" "number" "secureString" "enum" "string[]" "number[]" "secureString[]"   The attribute datatype  | 
| description | string  The description of the new attribute  | 
| archived | boolean  The attribute is archived  | 
| hashAttribute | boolean  Shall the attribute be hashed  | 
| enum | string   | 
| format | string  Enum: "" "version" "date" "isoCountryCode"   The attribute's format  | 
| projects | Array of strings   | 
{- "property": "string",
 - "datatype": "boolean",
 - "description": "string",
 - "archived": true,
 - "hashAttribute": true,
 - "enum": "string",
 - "format": "",
 - "projects": [
- "string"
 
] 
}{- "attribute": {
- "property": "string",
 - "datatype": "boolean",
 - "description": "string",
 - "hashAttribute": true,
 - "archived": true,
 - "enum": "string",
 - "format": "",
 - "projects": [
- "string"
 
] 
} 
}| property required  | string  The attribute property  | 
| datatype | string  Enum: "boolean" "string" "number" "secureString" "enum" "string[]" "number[]" "secureString[]"   The attribute datatype  | 
| description | string  The description of the new attribute  | 
| archived | boolean  The attribute is archived  | 
| hashAttribute | boolean  Shall the attribute be hashed  | 
| enum | string   | 
| format | string  Enum: "" "version" "date" "isoCountryCode"   The attribute's format  | 
| projects | Array of strings   | 
{- "datatype": "boolean",
 - "description": "string",
 - "archived": true,
 - "hashAttribute": true,
 - "enum": "string",
 - "format": "",
 - "projects": [
- "string"
 
] 
}{- "attribute": {
- "property": "string",
 - "datatype": "boolean",
 - "description": "string",
 - "hashAttribute": true,
 - "archived": true,
 - "enum": "string",
 - "format": "",
 - "projects": [
- "string"
 
] 
} 
}| property required  | string  The attribute property  | 
curl -X DELETE https://api.growthbook.io/api/v1/enviromnents/property \ -u secret_abc123DEF456:
{- "deletedProperty": "string"
 
}| id required  | string   | 
| dateCreated required  | string   | 
| dateUpdated required  | string   | 
| name required  | string   | 
| description | string   | 
| owner required  | string   | 
| isPublic required  | boolean   | 
| attributes required  | object  The attributes to set when using this Archetype  | 
| projects | Array of strings   | 
{- "id": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "isPublic": true,
 - "attributes": { },
 - "projects": [
- "string"
 
] 
}| property required  | string   | 
| datatype required  | string  Enum: "boolean" "string" "number" "secureString" "enum" "string[]" "number[]" "secureString[]"    | 
| description | string   | 
| hashAttribute | boolean   | 
| archived | boolean   | 
| enum | string   | 
| format | string  Enum: "" "version" "date" "isoCountryCode"    | 
| projects | Array of strings   | 
{- "property": "string",
 - "datatype": "boolean",
 - "description": "string",
 - "hashAttribute": true,
 - "archived": true,
 - "enum": "string",
 - "format": "",
 - "projects": [
- "string"
 
] 
}| organization required  | string  The organization name  | 
| dateUpdated required  | string <date-time>   When the code references were last updated  | 
| feature required  | string  Feature identifier  | 
| repo required  | string  Repository name  | 
| branch required  | string  Branch name  | 
| platform | string  Enum: "github" "gitlab" "bitbucket"   Source control platform  | 
required  | Array of objects   | 
{- "organization": "string",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "feature": "string",
 - "repo": "string",
 - "branch": "string",
 - "platform": "github",
 - "refs": [
- {
- "filePath": "string",
 - "startingLineNumber": 0,
 - "lines": "string",
 - "flagKey": "string"
 
} 
] 
}| id required  | string   | 
| dateCreated required  | string <date-time>    | 
| dateUpdated required  | string <date-time>    | 
| type required  | string   | 
| name required  | string   | 
| description required  | string   | 
| projectIds required  | Array of strings   | 
| eventTracker required  | string   | 
required  | Array of objects   | 
required  | Array of objects   | 
required  | Array of objects   | 
object   | 
{- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "type": "string",
 - "name": "string",
 - "description": "string",
 - "projectIds": [
- "string"
 
], - "eventTracker": "string",
 - "identifierTypes": [
- {
- "id": "string",
 - "description": "string"
 
} 
], - "assignmentQueries": [
- {
- "id": "string",
 - "name": "string",
 - "description": "string",
 - "identifierType": "string",
 - "sql": "string",
 - "includesNameColumns": true,
 - "dimensionColumns": [
- "string"
 
] 
} 
], - "identifierJoinQueries": [
- {
- "identifierTypes": [
- "string"
 
], - "sql": "string"
 
} 
], - "mixpanelSettings": {
- "viewedExperimentEventName": "string",
 - "experimentIdProperty": "string",
 - "variationIdProperty": "string",
 - "extraUserIdProperty": "string"
 
} 
}| id required  | string   | 
| dateCreated required  | string   | 
| dateUpdated required  | string   | 
| owner required  | string   | 
| datasourceId required  | string   | 
| identifierType required  | string   | 
| name required  | string   | 
| description | string   | 
| query required  | string   | 
| managedBy | string  Enum: "" "api" "config"   Where this dimension must be managed from. If not set (empty string), it can be managed from anywhere.  | 
{- "id": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "name": "string",
 - "description": "string",
 - "query": "string",
 - "managedBy": ""
 
}| id required  | string   | 
| description required  | string   | 
| toggleOnList required  | boolean   | 
| defaultState required  | boolean   | 
| projects required  | Array of strings   | 
| parent | string   | 
{- "id": "string",
 - "description": "string",
 - "toggleOnList": true,
 - "defaultState": true,
 - "projects": [
- "string"
 
], - "parent": "string"
 
}| id required  | string   | 
| trackingKey required  | string   | 
| dateCreated required  | string <date-time>    | 
| dateUpdated required  | string <date-time>    | 
| name required  | string   | 
| type required  | string  Enum: "standard" "multi-armed-bandit"    | 
| project required  | string   | 
| hypothesis required  | string   | 
| description required  | string   | 
| tags required  | Array of strings   | 
| owner required  | string   | 
| archived required  | boolean   | 
| status required  | string   | 
| autoRefresh required  | boolean   | 
| hashAttribute required  | string   | 
| fallbackAttribute | string   | 
| hashVersion required  | number  Enum: 1 2    | 
| disableStickyBucketing | boolean   | 
| bucketVersion | number   | 
| minBucketVersion | number   | 
required  | Array of objects   | 
required  | Array of objects   | 
required  | object (ExperimentAnalysisSettings)    | 
object   | |
| shareLevel | string  Enum: "public" "organization"    | 
| publicUrl | string   | 
| banditScheduleValue | number   | 
| banditScheduleUnit | string  Enum: "days" "hours"    | 
| banditBurnInValue | number   | 
| banditBurnInUnit | string  Enum: "days" "hours"    | 
| linkedFeatures | Array of strings   | 
| hasVisualChangesets | boolean   | 
| hasURLRedirects | boolean   | 
object   | |
| pinnedMetricSlices | Array of strings  Array of pinned metric slices in format   | 
Array of objects  Custom slices that apply to ALL applicable metrics in the experiment  | 
{- "id": "string",
 - "trackingKey": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "type": "standard",
 - "project": "string",
 - "hypothesis": "string",
 - "description": "string",
 - "tags": [
- "string"
 
], - "owner": "string",
 - "archived": true,
 - "status": "string",
 - "autoRefresh": true,
 - "hashAttribute": "string",
 - "fallbackAttribute": "string",
 - "hashVersion": 1,
 - "disableStickyBucketing": true,
 - "bucketVersion": 0,
 - "minBucketVersion": 0,
 - "variations": [
- {
- "variationId": "string",
 - "key": "string",
 - "name": "string",
 - "description": "string",
 - "screenshots": [
- "string"
 
] 
} 
], - "phases": [
- {
- "name": "string",
 - "dateStarted": "string",
 - "dateEnded": "string",
 - "reasonForStopping": "string",
 - "seed": "string",
 - "coverage": 0,
 - "trafficSplit": [
- {
- "variationId": "string",
 - "weight": 0
 
} 
], - "namespace": {
- "namespaceId": "string",
 - "range": [ ]
 
}, - "targetingCondition": "string",
 - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
] 
} 
], - "settings": {
- "datasourceId": "string",
 - "assignmentQueryId": "string",
 - "experimentId": "string",
 - "segmentId": "string",
 - "queryFilter": "string",
 - "inProgressConversions": "include",
 - "attributionModel": "firstExposure",
 - "statsEngine": "bayesian",
 - "regressionAdjustmentEnabled": true,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "goals": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "secondaryMetrics": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "guardrails": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "activationMetric": {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
}, - "resultSummary": {
- "status": "string",
 - "winner": "string",
 - "conclusions": "string",
 - "releasedVariationId": "string",
 - "excludeFromPayload": true
 
}, - "shareLevel": "public",
 - "publicUrl": "string",
 - "banditScheduleValue": 0,
 - "banditScheduleUnit": "days",
 - "banditBurnInValue": 0,
 - "banditBurnInUnit": "days",
 - "linkedFeatures": [
- "string"
 
], - "hasVisualChangesets": true,
 - "hasURLRedirects": true,
 - "customFields": { },
 - "pinnedMetricSlices": [
- "string"
 
], - "customMetricSlices": [
- {
- "slices": [
- {
- "column": "string",
 - "levels": [
- "string"
 
] 
} 
] 
} 
] 
}| datasourceId required  | string   | 
| assignmentQueryId required  | string   | 
| experimentId required  | string   | 
| segmentId required  | string   | 
| queryFilter required  | string   | 
| inProgressConversions required  | any  Enum: "include" "exclude"    | 
| attributionModel required  | any  Enum: "firstExposure" "experimentDuration"   Setting attribution model to   | 
| statsEngine required  | any  Enum: "bayesian" "frequentist"    | 
| regressionAdjustmentEnabled | boolean   | 
| sequentialTestingEnabled | boolean   | 
| sequentialTestingTuningParameter | number   | 
required  | Array of objects (ExperimentMetric)    | 
required  | Array of objects (ExperimentMetric)    | 
required  | Array of objects (ExperimentMetric)    | 
object (ExperimentMetric)    | 
{- "datasourceId": "string",
 - "assignmentQueryId": "string",
 - "experimentId": "string",
 - "segmentId": "string",
 - "queryFilter": "string",
 - "inProgressConversions": "include",
 - "attributionModel": "firstExposure",
 - "statsEngine": "bayesian",
 - "regressionAdjustmentEnabled": true,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "goals": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "secondaryMetrics": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "guardrails": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "activationMetric": {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
}| metricId required  | string   | 
required  | object   | 
{- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
}| id required  | string   | 
| dateUpdated required  | string   | 
| experimentId required  | string   | 
| phase required  | string   | 
| dateStart required  | string   | 
| dateEnd required  | string   | 
required  | object   | 
required  | object (ExperimentAnalysisSettings)    | 
| queryIds required  | Array of strings   | 
required  | Array of objects   | 
{- "id": "string",
 - "dateUpdated": "string",
 - "experimentId": "string",
 - "phase": "string",
 - "dateStart": "string",
 - "dateEnd": "string",
 - "dimension": {
- "type": "string",
 - "id": "string"
 
}, - "settings": {
- "datasourceId": "string",
 - "assignmentQueryId": "string",
 - "experimentId": "string",
 - "segmentId": "string",
 - "queryFilter": "string",
 - "inProgressConversions": "include",
 - "attributionModel": "firstExposure",
 - "statsEngine": "bayesian",
 - "regressionAdjustmentEnabled": true,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "goals": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "secondaryMetrics": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "guardrails": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "activationMetric": {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
}, - "queryIds": [
- "string"
 
], - "results": [
- {
- "dimension": "string",
 - "totalUsers": 0,
 - "checks": {
- "srm": 0
 
}, - "metrics": [
- {
- "metricId": "string",
 - "variations": [
- {
- "variationId": "string",
 - "users": 0,
 - "analyses": [
- {
- "engine": "bayesian",
 - "numerator": 0,
 - "denominator": 0,
 - "mean": 0,
 - "stddev": 0,
 - "percentChange": 0,
 - "ciLow": 0,
 - "ciHigh": 0,
 - "pValue": 0,
 - "risk": 0,
 - "chanceToBeatControl": 0
 
} 
] 
} 
] 
} 
] 
} 
] 
}| id required  | string   | 
| experiment required  | string   | 
| status required  | string   | 
{- "id": "string",
 - "experiment": "string",
 - "status": "string"
 
}| id required  | string   | 
| trackingKey required  | string   | 
| dateCreated required  | string <date-time>    | 
| dateUpdated required  | string <date-time>    | 
| name required  | string   | 
| type required  | string  Enum: "standard" "multi-armed-bandit"    | 
| project required  | string   | 
| hypothesis required  | string   | 
| description required  | string   | 
| tags required  | Array of strings   | 
| owner required  | string   | 
| archived required  | boolean   | 
| status required  | string   | 
| autoRefresh required  | boolean   | 
| hashAttribute required  | string   | 
| fallbackAttribute | string   | 
| hashVersion required  | number  Enum: 1 2    | 
| disableStickyBucketing | boolean   | 
| bucketVersion | number   | 
| minBucketVersion | number   | 
required  | Array of objects   | 
required  | Array of objects   | 
required  | object (ExperimentAnalysisSettings)    | 
object   | |
| shareLevel | string  Enum: "public" "organization"    | 
| publicUrl | string   | 
| banditScheduleValue | number   | 
| banditScheduleUnit | string  Enum: "days" "hours"    | 
| banditBurnInValue | number   | 
| banditBurnInUnit | string  Enum: "days" "hours"    | 
| linkedFeatures | Array of strings   | 
| hasVisualChangesets | boolean   | 
| hasURLRedirects | boolean   | 
object   | |
| pinnedMetricSlices | Array of strings  Array of pinned metric slices in format   | 
Array of objects  Custom slices that apply to ALL applicable metrics in the experiment  | |
object   | 
{- "id": "string",
 - "trackingKey": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "type": "standard",
 - "project": "string",
 - "hypothesis": "string",
 - "description": "string",
 - "tags": [
- "string"
 
], - "owner": "string",
 - "archived": true,
 - "status": "string",
 - "autoRefresh": true,
 - "hashAttribute": "string",
 - "fallbackAttribute": "string",
 - "hashVersion": 1,
 - "disableStickyBucketing": true,
 - "bucketVersion": 0,
 - "minBucketVersion": 0,
 - "variations": [
- {
- "variationId": "string",
 - "key": "string",
 - "name": "string",
 - "description": "string",
 - "screenshots": [
- "string"
 
] 
} 
], - "phases": [
- {
- "name": "string",
 - "dateStarted": "string",
 - "dateEnded": "string",
 - "reasonForStopping": "string",
 - "seed": "string",
 - "coverage": 0,
 - "trafficSplit": [
- {
- "variationId": "string",
 - "weight": 0
 
} 
], - "namespace": {
- "namespaceId": "string",
 - "range": [ ]
 
}, - "targetingCondition": "string",
 - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
] 
} 
], - "settings": {
- "datasourceId": "string",
 - "assignmentQueryId": "string",
 - "experimentId": "string",
 - "segmentId": "string",
 - "queryFilter": "string",
 - "inProgressConversions": "include",
 - "attributionModel": "firstExposure",
 - "statsEngine": "bayesian",
 - "regressionAdjustmentEnabled": true,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "goals": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "secondaryMetrics": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "guardrails": [
- {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
], - "activationMetric": {
- "metricId": "string",
 - "overrides": {
- "delayHours": 0,
 - "windowHours": 0,
 - "window": "conversion",
 - "winRiskThreshold": 0,
 - "loseRiskThreshold": 0
 
} 
} 
}, - "resultSummary": {
- "status": "string",
 - "winner": "string",
 - "conclusions": "string",
 - "releasedVariationId": "string",
 - "excludeFromPayload": true
 
}, - "shareLevel": "public",
 - "publicUrl": "string",
 - "banditScheduleValue": 0,
 - "banditScheduleUnit": "days",
 - "banditBurnInValue": 0,
 - "banditBurnInUnit": "days",
 - "linkedFeatures": [
- "string"
 
], - "hasVisualChangesets": true,
 - "hasURLRedirects": true,
 - "customFields": { },
 - "pinnedMetricSlices": [
- "string"
 
], - "customMetricSlices": [
- {
- "slices": [
- {
- "column": "string",
 - "levels": [
- "string"
 
] 
} 
] 
} 
], - "enhancedStatus": {
- "status": "Running",
 - "detailedStatus": "string"
 
} 
}| id required  | string   | 
| name required  | string   | 
| description required  | string   | 
| owner required  | string   | 
| projects required  | Array of strings   | 
| tags required  | Array of strings   | 
| datasource required  | string   | 
| metricType required  | string  Enum: "proportion" "retention" "mean" "quantile" "ratio"    | 
required  | object   | 
object   | |
| inverse required  | boolean  Set to true for things like Bounce Rate, where you want the metric to decrease  | 
object  Controls the settings for quantile metrics (mandatory if metricType is "quantile")  | |
required  | object  Controls how outliers are handled  | 
required  | object  Controls the conversion window for the metric  | 
required  | object  Controls the regression adjustment (CUPED) settings for the metric  | 
| riskThresholdSuccess required  | number   | 
| riskThresholdDanger required  | number   | 
| displayAsPercentage | boolean  If true and the metric is a ratio metric, variation means will be displayed as a percentage  | 
| minPercentChange required  | number   | 
| maxPercentChange required  | number   | 
| minSampleSize required  | number   | 
| targetMDE required  | number   | 
| managedBy required  | string  Enum: "" "api" "admin"   Where this fact metric must be managed from. If not set (empty string), it can be managed from anywhere.  | 
| dateCreated required  | string <date-time>    | 
| dateUpdated required  | string <date-time>    | 
| archived | boolean   | 
| metricAutoSlices | Array of strings  Array of slice column names that will be automatically included in metric analysis. This is an enterprise feature.  | 
{- "id": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "datasource": "string",
 - "metricType": "proportion",
 - "numerator": {
- "factTableId": "string",
 - "column": "string",
 - "aggregation": "sum",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
}, - "aggregateFilterColumn": "string",
 - "aggregateFilter": "string"
 
}, - "denominator": {
- "factTableId": "string",
 - "column": "string",
 - "filters": [
- "string"
 
], - "inlineFilters": {
- "property1": [
- "string"
 
], - "property2": [
- "string"
 
] 
} 
}, - "inverse": true,
 - "quantileSettings": {
- "type": "event",
 - "ignoreZeros": true,
 - "quantile": 0.001
 
}, - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "windowSettings": {
- "type": "none",
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "regressionAdjustmentSettings": {
- "override": true,
 - "enabled": true,
 - "days": 0
 
}, - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "displayAsPercentage": true,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0,
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "archived": true,
 - "metricAutoSlices": [
- "string"
 
] 
}| id required  | string   | 
| name required  | string   | 
| description required  | string   | 
| owner required  | string   | 
| projects required  | Array of strings   | 
| tags required  | Array of strings   | 
| datasource required  | string   | 
| userIdTypes required  | Array of strings   | 
| sql required  | string   | 
| eventName | string  The event name used in SQL template variables  | 
Array of objects (FactTableColumn)   Array of column definitions for this fact table  | |
| columnsError | string or null  Error message if there was an issue parsing the SQL schema  | 
| archived | boolean   | 
| managedBy required  | string  Enum: "" "api" "admin"   Where this fact table must be managed from. If not set (empty string), it can be managed from anywhere.  | 
| dateCreated required  | string <date-time>    | 
| dateUpdated required  | string <date-time>    | 
{- "id": "string",
 - "name": "string",
 - "description": "string",
 - "owner": "string",
 - "projects": [
- "string"
 
], - "tags": [
- "string"
 
], - "datasource": "string",
 - "userIdTypes": [
- "string"
 
], - "sql": "string",
 - "eventName": "string",
 - "columns": [
- {
- "column": "string",
 - "datatype": "number",
 - "numberFormat": "",
 - "jsonFields": {
- "property1": {
- "datatype": "number"
 
}, - "property2": {
- "datatype": "number"
 
} 
}, - "name": "string",
 - "description": "string",
 - "alwaysInlineFilter": false,
 - "deleted": false,
 - "isAutoSliceColumn": false,
 - "autoSlices": [
- "string"
 
], - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
} 
], - "columnsError": "string",
 - "archived": true,
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
}| column required  | string  The actual column name in the database/SQL query  | 
| datatype required  | string  Enum: "number" "string" "date" "boolean" "json" "other" ""    | 
| numberFormat | string  Enum: "" "currency" "time:seconds" "memory:bytes" "memory:kilobytes"    | 
object  For JSON columns, defines the structure of nested fields  | |
| name | string  Display name for the column (can be different from the actual column name)  | 
| description | string   | 
| alwaysInlineFilter | boolean  Default:  false  Whether this column should always be included as an inline filter in queries  | 
| deleted required  | boolean  Default:  false   | 
| isAutoSliceColumn | boolean  Default:  false  Whether this column can be used for auto slice analysis. This is an enterprise feature.  | 
| autoSlices | Array of strings  Specific slices to automatically analyze for this column.  | 
| dateCreated | string <date-time>    | 
| dateUpdated | string <date-time>    | 
{- "column": "string",
 - "datatype": "number",
 - "numberFormat": "",
 - "jsonFields": {
- "property1": {
- "datatype": "number"
 
}, - "property2": {
- "datatype": "number"
 
} 
}, - "name": "string",
 - "description": "string",
 - "alwaysInlineFilter": false,
 - "deleted": false,
 - "isAutoSliceColumn": false,
 - "autoSlices": [
- "string"
 
], - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
}| id required  | string   | 
| name required  | string   | 
| description required  | string   | 
| value required  | string   | 
| managedBy required  | string  Enum: "" "api"   Where this fact table filter must be managed from. If not set (empty string), it can be managed from anywhere.  | 
| dateCreated required  | string <date-time>    | 
| dateUpdated required  | string <date-time>    | 
{- "id": "string",
 - "name": "string",
 - "description": "string",
 - "value": "string",
 - "managedBy": "",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
}| id required  | string   | 
| dateCreated required  | string <date-time>    | 
| dateUpdated required  | string <date-time>    | 
| archived required  | boolean   | 
| description required  | string   | 
| owner required  | string   | 
| project required  | string   | 
| valueType required  | string  Enum: "boolean" "string" "number" "json"    | 
| defaultValue required  | string   | 
| tags required  | Array of strings   | 
required  | object   | 
| prerequisites | Array of strings  Feature IDs. Each feature must evaluate to   | 
required  | object   | 
object   | 
{- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "archived": true,
 - "description": "string",
 - "owner": "string",
 - "project": "string",
 - "valueType": "boolean",
 - "defaultValue": "string",
 - "tags": [
- "string"
 
], - "environments": {
- "property1": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
}, - "property2": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
} 
}, - "prerequisites": [
- "string"
 
], - "revision": {
- "version": 0,
 - "comment": "string",
 - "date": "2019-08-24T14:15:22Z",
 - "publishedBy": "string"
 
}, - "customFields": { }
 
}| defaultValue required  | string or number or array or object or null   | 
Array of objects   | 
{- "defaultValue": "string",
 - "rules": [
- {
- "force": "string",
 - "weights": [
- 0
 
], - "variations": [
- "string"
 
], - "hashAttribute": "string",
 - "namespace": [
- 0,
 - 0,
 - 0
 
], - "key": "string",
 - "coverage": 0,
 - "condition": { }
 
} 
] 
}| enabled required  | boolean   | 
| defaultValue required  | string   | 
required  | Array of any (FeatureRule)    | 
| definition | string  A JSON stringified FeatureDefinition  | 
object   | 
{- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
}| description required  | string   | 
| id required  | string   | 
| enabled required  | boolean   | 
| type required  | string  Value: "experiment-ref"    | 
| condition | string   | 
Array of objects (ScheduleRule) [ items  = 2 items  ]   | |
required  | Array of objects   | 
| experimentId required  | string   | 
{- "description": "string",
 - "id": "string",
 - "enabled": true,
 - "type": "experiment-ref",
 - "condition": "string",
 - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "variations": [
- {
- "value": "string",
 - "variationId": "string"
 
} 
], - "experimentId": "string"
 
}| description required  | string   | 
| condition required  | string   | 
| id required  | string   | 
| enabled required  | boolean   | 
| type required  | string  Value: "experiment"    | 
| trackingKey | string   | 
| hashAttribute | string   | 
| fallbackAttribute | string   | 
| disableStickyBucketing | boolean   | 
| bucketVersion | number   | 
| minBucketVersion | number   | 
object   | |
| coverage | number   | 
Array of objects (ScheduleRule) [ items  = 2 items  ]   | |
Array of objects   | 
{- "description": "string",
 - "condition": "string",
 - "id": "string",
 - "enabled": true,
 - "type": "experiment",
 - "trackingKey": "string",
 - "hashAttribute": "string",
 - "fallbackAttribute": "string",
 - "disableStickyBucketing": true,
 - "bucketVersion": 0,
 - "minBucketVersion": 0,
 - "namespace": {
- "enabled": true,
 - "name": "string",
 - "range": [
- 0,
 - 0
 
] 
}, - "coverage": 0,
 - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "value": [
- {
- "value": "string",
 - "weight": 0,
 - "name": "string"
 
} 
] 
}| description required  | string   | 
| condition required  | string   | 
Array of objects   | |
Array of objects   | |
Array of objects (ScheduleRule) [ items  = 2 items  ]   | |
| id required  | string   | 
| enabled required  | boolean   | 
| type required  | string  Value: "force"    | 
| value required  | string   | 
{- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
}| baseVersion required  | integer   | 
| version required  | integer   | 
| comment required  | string   | 
| date required  | string <date-time>    | 
| status required  | string   | 
| publishedBy | string   | 
required  | object   | 
object   | 
{- "baseVersion": 0,
 - "version": 0,
 - "comment": "string",
 - "date": "2019-08-24T14:15:22Z",
 - "status": "string",
 - "publishedBy": "string",
 - "rules": {
- "property1": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "property2": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
] 
}, - "definitions": {
- "property1": "string",
 - "property2": "string"
 
} 
}| description required  | string   | 
| condition required  | string   | 
Array of objects   | |
Array of objects (ScheduleRule) [ items  = 2 items  ]   | |
| id required  | string   | 
| enabled required  | boolean   | 
| type required  | string  Value: "rollout"    | 
| value required  | string   | 
| coverage required  | number   | 
| hashAttribute required  | string   | 
{- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "rollout",
 - "value": "string",
 - "coverage": 0,
 - "hashAttribute": "string"
 
}| description required  | string   | 
| condition required  | string   | 
Array of objects   | |
Array of objects   | |
Array of objects (ScheduleRule) [ items  = 2 items  ]   | |
| id required  | string   | 
| enabled required  | boolean   | 
| type required  | string   | 
| value required  | string   | 
{- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
}| condition required  | string   | 
Array of objects   | |
Array of objects   | |
| id required  | string   | 
| trackingKey | string   | 
| enabled required  | boolean   | 
| type required  | string  Value: "safe-rollout"    | 
| controlValue required  | string   | 
| variationValue required  | string   | 
| seed | string   | 
| hashAttribute | string   | 
| safeRolloutId | string   | 
| status | string  Enum: "running" "released" "rolled-back" "stopped"    | 
Array of objects (ScheduleRule) [ items  = 2 items  ]   | 
{- "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "id": "string",
 - "trackingKey": "string",
 - "enabled": true,
 - "type": "safe-rollout",
 - "controlValue": "string",
 - "variationValue": "string",
 - "seed": "string",
 - "hashAttribute": "string",
 - "safeRolloutId": "string",
 - "status": "running",
 - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
] 
}| id required  | string   | 
| dateCreated required  | string <date-time>    | 
| dateUpdated required  | string <date-time>    | 
| archived required  | boolean   | 
| description required  | string   | 
| owner required  | string   | 
| project required  | string   | 
| valueType required  | string  Enum: "boolean" "string" "number" "json"    | 
| defaultValue required  | string   | 
| tags required  | Array of strings   | 
required  | object   | 
| prerequisites | Array of strings  Feature IDs. Each feature must evaluate to   | 
required  | object   | 
object   | |
Array of objects (FeatureRevision)    | 
{- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "archived": true,
 - "description": "string",
 - "owner": "string",
 - "project": "string",
 - "valueType": "boolean",
 - "defaultValue": "string",
 - "tags": [
- "string"
 
], - "environments": {
- "property1": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
}, - "property2": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string",
 - "draft": {
- "enabled": true,
 - "defaultValue": "string",
 - "rules": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "definition": "string"
 
} 
} 
}, - "prerequisites": [
- "string"
 
], - "revision": {
- "version": 0,
 - "comment": "string",
 - "date": "2019-08-24T14:15:22Z",
 - "publishedBy": "string"
 
}, - "customFields": { },
 - "revisions": [
- {
- "baseVersion": 0,
 - "version": 0,
 - "comment": "string",
 - "date": "2019-08-24T14:15:22Z",
 - "status": "string",
 - "publishedBy": "string",
 - "rules": {
- "property1": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
], - "property2": [
- {
- "description": "string",
 - "condition": "string",
 - "savedGroupTargeting": [
- {
- "matchType": "all",
 - "savedGroups": [
- "string"
 
] 
} 
], - "prerequisites": [
- {
- "id": "string",
 - "condition": "string"
 
} 
], - "scheduleRules": [
- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
], - "id": "string",
 - "enabled": true,
 - "type": "force",
 - "value": "string"
 
} 
] 
}, - "definitions": {
- "property1": "string",
 - "property2": "string"
 
} 
} 
] 
}| id required  | string   | 
| name | string   | 
| email required  | string   | 
| globalRole required  | string   | 
| environments | Array of strings   | 
| limitAccessByEnvironment | boolean   | 
| managedbyIdp | boolean   | 
| teams | Array of strings   | 
Array of objects   | |
| lastLoginDate | string <date-time>    | 
| dateCreated | string <date-time>    | 
| dateUpdated | string <date-time>    | 
{- "id": "string",
 - "name": "string",
 - "email": "string",
 - "globalRole": "string",
 - "environments": [
- "string"
 
], - "limitAccessByEnvironment": true,
 - "managedbyIdp": true,
 - "teams": [
- "string"
 
], - "projectRoles": [
- {
- "project": "string",
 - "role": "string",
 - "limitAccessByEnvironment": true,
 - "environments": [
- "string"
 
] 
} 
], - "lastLoginDate": "2019-08-24T14:15:22Z",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z"
 
}| id required  | string   | 
| managedBy required  | string  Enum: "" "api" "config" "admin"   Where this metric must be managed from. If not set (empty string), it can be managed from anywhere.  | 
| dateCreated required  | string   | 
| dateUpdated required  | string   | 
| owner required  | string   | 
| datasourceId required  | string   | 
| name required  | string   | 
| description required  | string   | 
| type required  | string  Enum: "binomial" "count" "duration" "revenue"    | 
| tags required  | Array of strings   | 
| projects required  | Array of strings   | 
| archived required  | boolean   | 
required  | object   | 
object   | |
object   | |
object   | 
{- "id": "string",
 - "managedBy": "",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "name": "string",
 - "description": "string",
 - "type": "binomial",
 - "tags": [
- "string"
 
], - "projects": [
- "string"
 
], - "archived": true,
 - "behavior": {
- "goal": "increase",
 - "cappingSettings": {
- "type": "none",
 - "value": 0,
 - "ignoreZeros": true
 
}, - "cap": 0,
 - "capping": "absolute",
 - "capValue": 0,
 - "windowSettings": {
- "type": "none",
 - "delayValue": 0,
 - "delayUnit": "minutes",
 - "windowValue": 0,
 - "windowUnit": "minutes"
 
}, - "priorSettings": {
- "override": true,
 - "proper": true,
 - "mean": 0,
 - "stddev": 0
 
}, - "conversionWindowStart": 0,
 - "conversionWindowEnd": 0,
 - "riskThresholdSuccess": 0,
 - "riskThresholdDanger": 0,
 - "minPercentChange": 0,
 - "maxPercentChange": 0,
 - "minSampleSize": 0,
 - "targetMDE": 0
 
}, - "sql": {
- "identifierTypes": [
- "string"
 
], - "conversionSQL": "string",
 - "userAggregationSQL": "string",
 - "denominatorMetricId": "string"
 
}, - "sqlBuilder": {
- "identifierTypeColumns": [
- {
- "identifierType": "string",
 - "columnName": "string"
 
} 
], - "tableName": "string",
 - "valueColumnName": "string",
 - "timestampColumnName": "string",
 - "conditions": [
- {
- "column": "string",
 - "operator": "string",
 - "value": "string"
 
} 
] 
}, - "mixpanel": {
- "eventName": "string",
 - "eventValue": "string",
 - "userAggregation": "string",
 - "conditions": [
- {
- "property": "string",
 - "operator": "string",
 - "value": "string"
 
} 
] 
} 
}| id required  | string  The ID of the created metric analysis  | 
| status required  | string  The status of the analysis (e.g., "running", "completed", "error")  | 
| settings | object   | 
{- "id": "string",
 - "status": "string",
 - "settings": { }
 
}| id | string  The Growthbook unique identifier for the organization  | 
| externalId | string  An optional identifier that you use within your company for the organization  | 
| dateCreated | string <date-time>   The date the organization was created  | 
| name | string  The name of the organization  | 
| ownerEmail | string  The email address of the organization owner  | 
{- "id": "string",
 - "externalId": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "ownerEmail": "string"
 
}| limit required  | integer   | 
| offset required  | integer   | 
| count required  | integer   | 
| total required  | integer   | 
| hasMore required  | boolean   | 
| nextOffset required  | integer or null   | 
{- "limit": 0,
 - "offset": 0,
 - "count": 0,
 - "total": 0,
 - "hasMore": true,
 - "nextOffset": 0
 
}| id required  | string   | 
| name required  | string   | 
| dateCreated required  | string <date-time>    | 
| dateUpdated required  | string <date-time>    | 
| description | string   | 
object   | 
{- "id": "string",
 - "name": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "description": "string",
 - "settings": {
- "statsEngine": "string"
 
} 
}| id required  | string   | 
| organization required  | string   | 
| datasource required  | string   | 
| language required  | string   | 
| query required  | string   | 
| queryType required  | string   | 
| createdAt required  | string   | 
| startedAt required  | string   | 
| status required  | string  Enum: "running" "queued" "failed" "partially-succeeded" "succeeded"    | 
| externalId required  | string   | 
| dependencies required  | Array of strings   | 
| runAtEnd required  | boolean   | 
{- "id": "string",
 - "organization": "string",
 - "datasource": "string",
 - "language": "string",
 - "query": "string",
 - "queryType": "string",
 - "createdAt": "string",
 - "startedAt": "string",
 - "status": "running",
 - "externalId": "string",
 - "dependencies": [
- "string"
 
], - "runAtEnd": true
 
}| id required  | string   | 
| type required  | string  Enum: "condition" "list"    | 
| dateCreated required  | string <date-time>    | 
| dateUpdated required  | string <date-time>    | 
| name required  | string   | 
| owner | string   | 
| condition | string  When type = 'condition', this is the JSON-encoded condition for the group  | 
| attributeKey | string  When type = 'list', this is the attribute key the group is based on  | 
| values | Array of strings  When type = 'list', this is the list of values for the attribute key  | 
| description | string   | 
| projects | Array of strings   | 
{- "id": "string",
 - "type": "condition",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "owner": "string",
 - "condition": "string",
 - "attributeKey": "string",
 - "values": [
- "string"
 
], - "description": "string",
 - "projects": [
- "string"
 
] 
}| enabled required  | boolean  Whether the rule should be enabled or disabled at the specified timestamp.  | 
| timestamp required  | string or null <date-time>   ISO timestamp when the rule should activate.  | 
[- {
- "enabled": true,
 - "timestamp": null
 
}, - {
- "enabled": false,
 - "timestamp": "2025-06-23T16:09:37.769Z"
 
} 
]| id required  | string   | 
| dateCreated required  | string <date-time>    | 
| dateUpdated required  | string <date-time>    | 
| name required  | string   | 
| organization required  | string   | 
| languages required  | Array of strings   | 
| sdkVersion | string   | 
| environment required  | string   | 
| project required  | string  Use 'projects' instead. This is only for backwards compatibility and contains the first project only.  | 
| projects | Array of strings   | 
| encryptPayload required  | boolean   | 
| encryptionKey required  | string   | 
| includeVisualExperiments | boolean   | 
| includeDraftExperiments | boolean   | 
| includeExperimentNames | boolean   | 
| includeRedirectExperiments | boolean   | 
| includeRuleIds | boolean   | 
| key required  | string   | 
| proxyEnabled required  | boolean   | 
| proxyHost required  | string   | 
| proxySigningKey required  | string   | 
| sseEnabled | boolean   | 
| hashSecureAttributes | boolean   | 
| remoteEvalEnabled | boolean   | 
| savedGroupReferencesEnabled | boolean   | 
{- "id": "string",
 - "dateCreated": "2019-08-24T14:15:22Z",
 - "dateUpdated": "2019-08-24T14:15:22Z",
 - "name": "string",
 - "organization": "string",
 - "languages": [
- "string"
 
], - "sdkVersion": "string",
 - "environment": "string",
 - "project": "string",
 - "projects": [
- "string"
 
], - "encryptPayload": true,
 - "encryptionKey": "string",
 - "includeVisualExperiments": true,
 - "includeDraftExperiments": true,
 - "includeExperimentNames": true,
 - "includeRedirectExperiments": true,
 - "includeRuleIds": true,
 - "key": "string",
 - "proxyEnabled": true,
 - "proxyHost": "string",
 - "proxySigningKey": "string",
 - "sseEnabled": true,
 - "hashSecureAttributes": true,
 - "remoteEvalEnabled": true,
 - "savedGroupReferencesEnabled": true
 
}| id required  | string   | 
| owner required  | string   | 
| datasourceId required  | string   | 
| identifierType required  | string   | 
| name required  | string   | 
| description | string   | 
| query | string   | 
| dateCreated required  | string   | 
| dateUpdated required  | string   | 
| managedBy | string  Enum: "" "api" "config"   Where this segment must be managed from. If not set (empty string), it can be managed from anywhere.  | 
| type | any  Enum: "SQL" "FACT"    | 
| factTableId | string   | 
| filters | Array of strings   | 
| projects | Array of strings   | 
{- "id": "string",
 - "owner": "string",
 - "datasourceId": "string",
 - "identifierType": "string",
 - "name": "string",
 - "description": "string",
 - "query": "string",
 - "dateCreated": "string",
 - "dateUpdated": "string",
 - "managedBy": "",
 - "type": "SQL",
 - "factTableId": "string",
 - "filters": [
- "string"
 
], - "projects": [
- "string"
 
] 
}| confidenceLevel required  | number   | 
required  | object or null   | 
required  | object   | 
| pastExperimentsMinLength required  | number   | 
| metricAnalysisDays required  | number   | 
required  | object or null   | 
| multipleExposureMinPercent required  | number   | 
required  | object   | 
| statsEngine required  | string   | 
| pValueThreshold required  | number   | 
| regressionAdjustmentEnabled required  | boolean   | 
| regressionAdjustmentDays required  | number   | 
| sequentialTestingEnabled required  | boolean   | 
| sequentialTestingTuningParameter required  | number   | 
| attributionModel required  | string  Enum: "firstExposure" "experimentDuration"    | 
| targetMDE required  | number   | 
| delayHours required  | number   | 
| windowType required  | string   | 
| windowHours required  | number   | 
| winRisk required  | number   | 
| loseRisk required  | number   | 
| secureAttributeSalt required  | string   | 
| killswitchConfirmation required  | boolean   | 
required  | Array of objects   | 
| featureKeyExample required  | string   | 
| featureRegexValidator required  | string   | 
| banditScheduleValue required  | number   | 
| banditScheduleUnit required  | string  Enum: "hours" "days"    | 
| banditBurnInValue required  | number   | 
| banditBurnInUnit required  | string  Enum: "hours" "days"    | 
| experimentMinLengthDays required  | number   | 
| experimentMaxLengthDays | number or null   | 
| preferredEnvironment | string or null   | 
| maxMetricSliceLevels | number   | 
{- "confidenceLevel": 0,
 - "northStar": {
- "title": "string",
 - "metricIds": [
- "string"
 
] 
}, - "metricDefaults": {
- "priorSettings": {
- "override": true,
 - "proper": true,
 - "mean": 0,
 - "stddev": 0
 
}, - "minimumSampleSize": 0,
 - "maxPercentageChange": 0,
 - "minPercentageChange": 0,
 - "targetMDE": 0
 
}, - "pastExperimentsMinLength": 0,
 - "metricAnalysisDays": 0,
 - "updateSchedule": {
- "type": "cron",
 - "cron": "string",
 - "hours": 0
 
}, - "multipleExposureMinPercent": 0,
 - "defaultRole": {
- "role": "string",
 - "limitAccessByEnvironment": true,
 - "environments": [
- "string"
 
] 
}, - "statsEngine": "string",
 - "pValueThreshold": 0,
 - "regressionAdjustmentEnabled": true,
 - "regressionAdjustmentDays": 0,
 - "sequentialTestingEnabled": true,
 - "sequentialTestingTuningParameter": 0,
 - "attributionModel": "firstExposure",
 - "targetMDE": 0,
 - "delayHours": 0,
 - "windowType": "string",
 - "windowHours": 0,
 - "winRisk": 0,
 - "loseRisk": 0,
 - "secureAttributeSalt": "string",
 - "killswitchConfirmation": true,
 - "requireReviews": [
- {
- "requireReviewOn": true,
 - "resetReviewOnChange": true,
 - "environments": [
- "string"
 
], - "projects": [
- "string"
 
] 
} 
], - "featureKeyExample": "string",
 - "featureRegexValidator": "string",
 - "banditScheduleValue": 0,
 - "banditScheduleUnit": "hours",
 - "banditBurnInValue": 0,
 - "banditBurnInUnit": "hours",
 - "experimentMinLengthDays": 0,
 - "experimentMaxLengthDays": 0,
 - "preferredEnvironment": "string",
 - "maxMetricSliceLevels": 0
 
}| description | string   | 
| css | string   | 
| js | string   | 
| variation required  | string   | 
Array of objects   | 
{- "description": "string",
 - "css": "string",
 - "js": "string",
 - "variation": "string",
 - "domMutations": [
- {
- "selector": "string",
 - "action": "append",
 - "attribute": "string",
 - "value": "string",
 - "parentSelector": "string",
 - "insertBeforeSelector": "string"
 
} 
] 
}| id | string   | 
required  | Array of objects   | 
| editorUrl required  | string   | 
| experiment required  | string   | 
required  | Array of objects   | 
{- "id": "string",
 - "urlPatterns": [
- {
- "include": true,
 - "type": "simple",
 - "pattern": "string"
 
} 
], - "editorUrl": "string",
 - "experiment": "string",
 - "visualChanges": [
- {
- "description": "string",
 - "css": "string",
 - "js": "string",
 - "variation": "string",
 - "domMutations": [
- {
- "selector": "string",
 - "action": "append",
 - "attribute": "string",
 - "value": "string",
 - "parentSelector": "string",
 - "insertBeforeSelector": "string"
 
} 
] 
} 
] 
}