Skip to main content
Test DataGet test execution data with AI insights.
TestMu AI
StatusCommunityBlog
Test Data

Get test execution data with AI insights.

Returns paginated test execution records enriched with AI-powered insights including smart tags, flakiness metrics, and root cause analysis (RCA) category. Date range: Defaults to the last 7 days when no timestamps are provided. Both from_timestamp and to_timestamp must be supplied together — providing only one returns a 400 error. The maximum allowed span per API call is 31 days. Filters: At least one filter (job_ids, task_ids, stage_ids, test_ids, build_ids) OR a date range must implicitly scope the query. Filters are applied with AND logic when combined. The total number of IDs across all filter params combined must not exceed 100. Pagination: Cursor-based via cursor + limit. Pass the next_cursor from the previous response as cursor in the next request. Sorting: Control result order with sort_by and sort_order. Sortable fields: create_timestamp (default), duration, status. Default order is desc (newest/largest first).

GET
/tests
Get test execution data with AI insights.
curl --request GET \
--url "https://api.lambdatest.com/insights/api/v3/public/tests" \
--header "Authorization: Basic <encoded-value>"
{
"status": "success",
"data": [
{
"test_id": "RMAA-AND-160849-XXXX",
"env_config": {
"os": "Android",
"os_version": "13",
"browser": "",
"browser_version": "",
"device": "Galaxy S23",
"resolution": ""
},
"test_metadata": {
"test_name": "Login with valid credentials",
"status": "failed",
"duration": 12.5,
"create_timestamp": "2026-03-10T08:00:00Z",
"start_timestamp": "2026-03-10T08:00:01Z",
"end_timestamp": "2026-03-10T08:00:13Z",
"tags": [
"smoke",
"login"
]
},
"build_metadata": {
"build_id": "290136414",
"build_name": "Regression Suite - March Sprint",
"build_tags": [
"regression"
],
"build_create_timestamp": "2026-03-10T07:55:00Z",
"job_id": "e3251d99-805a-4b3f-a3f5-c0ea9b1d2e3f",
"task_id": "task-abc-12345",
"stage_id": "stage-xyz-67890"
},
"insights": {
"smart_tags": {
"is_always_failing": false,
"is_new_failure": true,
"is_flaky": false,
"is_performance_anomaly": false
},
"flakiness": {
"is_flaky": false,
"flake_rate": 0,
"compared_test_ids": []
},
"rca": {
"category": "Test Data Issue",
"summary": "App could not reach backend server during test execution."
},
"failure_category": "Test Data Issue"
}
}
],
"pagination": {
"next_cursor": "eyJzb3J0IjpbMTc0MTU5NjAwMDAwMCwiUk1BQS1BTkQtMTYwODQ5LVhYWFgiXX0=",
"has_more": true,
"limit": 100
}
}

Authorizations

Authorizationstringheaderrequired

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

from_timestampstring

Start of the date range in RFC3339 UTC format (e.g. 2026-03-01T00:00:00Z). Must be provided together with to_timestamp — both must be supplied or both omitted. When both are omitted, the range defaults to the last 7 days.

to_timestampstring

End of the date range in RFC3339 UTC format (e.g. 2026-03-08T00:00:00Z). Defaults to the current time when both timestamps are omitted. Must be after from_timestamp. Cannot be more than 1 hour in the future.

job_idsstring

Comma-separated list of job IDs to filter by (HyperExecute jobs). Maximum 100 IDs total across all filter params. Whitespace around values is trimmed.

task_idsstring

Comma-separated list of task IDs to filter by (HyperExecute tasks). Maximum 100 IDs total across all filter params.

stage_idsstring

Comma-separated list of stage IDs to filter by. Maximum 100 IDs total across all filter params.

test_idsstring

Comma-separated list of test execution IDs to fetch directly. Maximum 100 IDs total across all filter params.

build_idsstring

Comma-separated list of build IDs to filter by. Maximum 100 IDs total across all filter params.

limitinteger

Number of records to return per page. Defaults to 100. Maximum is 500. Invalid or non-positive values fall back to 100 with an explanatory note in the response. Values above 500 are silently clamped to 500.

cursorstring

Base64-encoded pagination cursor returned as next_cursor in the previous response. Omit (or pass an empty string) to fetch the first page.

sort_bystring

Field to sort results by. Defaults to create_timestamp.

sort_orderstring

Sort direction. Defaults to desc (newest first).

Response

application/json

Successful operation. Returns matching test records with pagination state.

statusstring
dataobject[]

Array of test execution records. Empty array if no results match.

data.test_idstring
Example: "RMAA-AND-160849-XXXX"
data.env_configobject
data.test_metadataobject
data.build_metadataobject
data.insightsobject
paginationobject
pagination.next_cursorstring
Example: "eyJzb3J0IjpbMTc0MTU5NjAwMDAwMCwiUk1BQS1BTkQtMTYwODQ5LVhYWFgiXX0="
pagination.has_moreboolean
Example: true
pagination.limitnumber
Example: 100
notesarray

Informational messages (e.g., limit clamping). Omitted when empty.

Get test execution data with AI insights.
curl --request GET \
--url "https://api.lambdatest.com/insights/api/v3/public/tests" \
--header "Authorization: Basic <encoded-value>"
{
"status": "success",
"data": [
{
"test_id": "RMAA-AND-160849-XXXX",
"env_config": {
"os": "Android",
"os_version": "13",
"browser": "",
"browser_version": "",
"device": "Galaxy S23",
"resolution": ""
},
"test_metadata": {
"test_name": "Login with valid credentials",
"status": "failed",
"duration": 12.5,
"create_timestamp": "2026-03-10T08:00:00Z",
"start_timestamp": "2026-03-10T08:00:01Z",
"end_timestamp": "2026-03-10T08:00:13Z",
"tags": [
"smoke",
"login"
]
},
"build_metadata": {
"build_id": "290136414",
"build_name": "Regression Suite - March Sprint",
"build_tags": [
"regression"
],
"build_create_timestamp": "2026-03-10T07:55:00Z",
"job_id": "e3251d99-805a-4b3f-a3f5-c0ea9b1d2e3f",
"task_id": "task-abc-12345",
"stage_id": "stage-xyz-67890"
},
"insights": {
"smart_tags": {
"is_always_failing": false,
"is_new_failure": true,
"is_flaky": false,
"is_performance_anomaly": false
},
"flakiness": {
"is_flaky": false,
"flake_rate": 0,
"compared_test_ids": []
},
"rca": {
"category": "Test Data Issue",
"summary": "App could not reach backend server during test execution."
},
"failure_category": "Test Data Issue"
}
}
],
"pagination": {
"next_cursor": "eyJzb3J0IjpbMTc0MTU5NjAwMDAwMCwiUk1BQS1BTkQtMTYwODQ5LVhYWFgiXX0=",
"has_more": true,
"limit": 100
}
}