V3 Dashboards

Create a dashboard

Changed on

Creates an empty dashboard in a workspace. Needs write access to the workspace. A name already used in the workspace answers 409.

post/api/v3/dashboards

Request

  • Base URL
    https://app.formbricks.com
  • URL
    https://app.formbricks.com/api/v3/dashboards
  • Auth
    • API key in cookie next-auth.session-token
    • or API key in header x-api-key
    • or HTTP bearer

Request body

workspaceIdstring cuid2 required
namestring required

Unique within the workspace; leading and trailing whitespace is trimmed.

Response

Dashboard created

Example response

{
  "data": {
    "widgets": [
      {
        "chart": {
          "query": {
            "measures": [
              "FeedbackRecords.npsScore"
            ],
            "dimensions": [
              "FeedbackRecords.sourceName"
            ],
            "timeDimensions": [
              {
                "dimension": "FeedbackRecords.collectedAt",
                "dateRange": "last 30 days"
              }
            ],
            "filters": [
              {
                "member": "FeedbackRecords.sourceType"
              }
            ]
          }
        }
      }
    ]
  }
}

Changes