Skip to main content
GET
/
{projectId}
/
dashboard
Get dashboard
curl --request GET \
  --url https://api.testdino.com/api/public/v1/{projectId}/dashboard \
  --header 'Authorization: Bearer <token>'
{
  "success": true,
  "data": {
    "metrics": {
      "environment": "<string>",
      "metrics": {
        "totalTests": {
          "value": 123,
          "trend": 123
        },
        "passedTests": {
          "value": 123,
          "trend": 123
        },
        "failedTests": {
          "value": 123,
          "trend": 123
        },
        "totalDuration": {
          "value": 123,
          "trend": 123
        }
      }
    },
    "mostFlakyTests": {
      "environment": "<string>",
      "tests": [
        {}
      ]
    },
    "slowestTestCases": {
      "metadata": {
        "dateRange": "<string>",
        "environment": "<string>",
        "totalTestCases": 123,
        "sortBy": "<string>",
        "order": "<string>",
        "filterThreshold": {
          "description": "<string>",
          "overallAvgDuration": 123,
          "thresholdDuration": 123
        }
      },
      "testCases": [
        {
          "testName": "<string>",
          "specFile": "<string>",
          "avgDuration": 123,
          "frequency": 123,
          "maxDuration": 123,
          "performanceTrend": {
            "trend": "<string>",
            "changePercentage": 123
          },
          "lastTestId": "<string>",
          "lastTestRunId": "<string>"
        }
      ]
    },
    "environments": {
      "metrics": [
        {
          "environment": "<string>",
          "passRate": 123,
          "testsCount": 123,
          "flakyRate": 123,
          "executionTime": 123,
          "totalRuns": 123
        }
      ]
    },
    "recentTestRuns": {
      "runs": [
        {
          "id": "<string>",
          "counter": 123,
          "branch": "<string>",
          "environment": "<string>",
          "author": "<string>",
          "commitMessage": "<string>",
          "commitHash": "<string>",
          "ci": {
            "provider": "<string>",
            "pipelineUrl": "<string>"
          },
          "hostname": "<string>",
          "status": "pending",
          "passed": 123,
          "failed": 123,
          "flaky": 123,
          "skipped": 123,
          "interrupted": 123,
          "total": 123,
          "duration": 123,
          "startTime": "2023-11-07T05:31:56Z"
        }
      ]
    },
    "recentPullRequests": {
      "pullRequests": [
        {
          "id": "<string>",
          "number": 123,
          "title": "<string>",
          "url": "<string>",
          "author": "<string>",
          "status": "<string>",
          "lastUpdated": "2023-11-07T05:31:56Z"
        }
      ]
    }
  }
}

Authorizations

Authorization
string
header
required

Project PAT (tdp_) token with public-api scope

Path Parameters

projectId
string
required

The project identifier (e.g. project_abc123). Must match the project associated with your PAT.

Query Parameters

dateRange
enum<string>

Predefined date range filter. Takes precedence over startDate/endDate if both are provided. For custom ranges, omit this and use startDate+endDate instead.

Available options:
7d,
14d,
30d,
60d,
90d
environment
string

Filter results by environment name (e.g. production, staging). Use the /filters endpoint to discover available environments.

startDate
string<date>

Start of a custom date range (ISO 8601 date, e.g. 2026-03-01). Must be used together with endDate. Ignored if dateRange is also provided.

endDate
string<date>

End of a custom date range (ISO 8601 date, e.g. 2026-03-31). Must be used together with startDate. Ignored if dateRange is also provided.

Response

Dashboard data

success
boolean
data
object