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"
}
]
}
}
}Project health snapshot in one call.
Returns key metrics (total runs, pass rate, fail rate), top 10 flaky and slowest tests, environment breakdowns, recent test runs, and recent pull requests. Designed to power custom dashboards and status pages without chaining multiple requests.
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"
}
]
}
}
}Project PAT (tdp_) token with public-api scope
The project identifier (e.g. project_abc123). Must match the project associated with your PAT.
Predefined date range filter. Takes precedence over startDate/endDate if both are provided. For custom ranges, omit this and use startDate+endDate instead.
7d, 14d, 30d, 60d, 90d Filter results by environment name (e.g. production, staging). Use the /filters endpoint to discover available environments.
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.
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.
Was this page helpful?