API Reference
Direct REST API access for custom integrations. All endpoints require authentication via API key or session token.
Authentication
Include your API key in the Authorization header:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://your-dashboard.com/api/executionsGet your API key from Settings → API Keys in the dashboard.
Base URL
https://your-dashboard.vercel.app/apiReplace with your actual dashboard URL.
Endpoints
/api/executionsList test executions with optional filters
/api/executions/:idGet detailed execution including all test results and artifacts
/api/metricsDashboard metrics: pass rate, failure counts, duration averages
/api/trendsTime-series pass/fail data with flexible granularity (hourly, daily, weekly, monthly)
/api/flaky-testsList flaky tests sorted by flakiness rate
/api/compareCompare two executions to identify regressions, improvements, and performance changes
/api/ingestUpload test results (used by Playwright Reporter and GitHub Action)
Rate Limits
API requests are rate limited to ensure fair usage:
- • 100 requests/minute for read endpoints
- • 10 requests/minute for write endpoints
- • Rate limit headers are included in responses
Error Handling
Errors return appropriate HTTP status codes with JSON error details:
{
"success": false,
"error": {
"code": "UNAUTHORIZED",
"message": "Invalid or expired API key"
}
}Common Status Codes
200- Success400- Bad request (invalid parameters)401- Unauthorized (invalid API key)404- Resource not found429- Rate limit exceeded500- Internal server error