Skip to main content
POST
/
dashboards
cURL
curl -X POST https://api.growthbook.io/api/v1/dashboards -d '{ ... }' -u secret_abc123DEF456
{
  "dashboard": {
    "id": "<string>",
    "uid": "<string>",
    "organization": "<string>",
    "isDefault": true,
    "isDeleted": true,
    "userId": "<string>",
    "editLevel": "published",
    "shareLevel": "published",
    "enableAutoUpdates": true,
    "title": "<string>",
    "dateCreated": "2023-11-07T05:31:56Z",
    "dateUpdated": "2023-11-07T05:31:56Z",
    "blocks": [
      {
        "organization": "<string>",
        "id": "<string>",
        "uid": "<string>",
        "type": "<string>",
        "title": "<string>",
        "description": "<string>",
        "factMetricId": "<string>",
        "visualizationType": "histogram",
        "valueType": "avg",
        "metricAnalysisId": "<string>",
        "analysisSettings": {
          "userIdType": "<string>",
          "lookbackDays": 123,
          "populationType": "metric",
          "populationId": "<string>",
          "startDate": "<string>",
          "endDate": "<string>",
          "additionalNumeratorFilters": [
            "<string>"
          ],
          "additionalDenominatorFilters": [
            "<string>"
          ]
        },
        "snapshotId": "<string>"
      }
    ],
    "experimentId": "<string>",
    "updateSchedule": {
      "type": "<string>",
      "hours": 123
    },
    "projects": [
      "<string>"
    ],
    "nextUpdate": "2023-11-07T05:31:56Z",
    "lastUpdated": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://growthbook-preview.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

If using Bearer auth, pass the Secret Key as the token:

curl https://api.growthbook.io/api/v1 \
-H "Authorization: Bearer secret_abc123DEF456"

Body

application/json
title
string
required

The display name of the Dashboard

editLevel
enum<string>
required

Dashboards that are "published" are editable by organization members with appropriate permissions

Available options:
published,
private
shareLevel
enum<string>
required

General Dashboards only. Dashboards that are "published" are viewable by organization members with appropriate permissions

Available options:
published,
private
enableAutoUpdates
boolean
required

If enabled for a General Dashboard, also requires an updateSchedule

blocks
object[]
required
updateSchedule
object

General Dashboards only. Experiment Dashboards update based on the parent experiment instead

experimentId
string

The parent experiment for an Experiment Dashboard, or undefined for a general dashboard

projects
string[]

General Dashboards only, Experiment Dashboards use the experiment's projects

Response

200 - application/json

Success

dashboard
object
required