Skip to main content
Get Screenshot StatusFetch build status by buildId / buildName
TestMu AI
StatusCommunityBlog
Get Screenshot Status

Fetch build status by buildId / buildName

This API fetches the status of all screenshots which are uploaded to smartui using either build id or build name. Note: When both buildId and buildName are provided in the request, buildId will be given priority over buildName.

GET
/screenshot/build/status
Fetch build status by buildId / buildName
curl --request GET \
--url "https://api.lambdatest.com/automation/smart-ui/screenshot/build/status" \
--header "Authorization: Basic <encoded-value>"
{
"data": {
"Screenshots": [
{
"screenshotId": "3137e779-e00a-4d88-8cbe-9ff2eb8cceaf",
"mismatchPercentage": 12.65,
"threshold": 1200,
"status": "Under Screening"
}
],
"buildId": "50af60e1-8709-40b1-981f-19636de5a590",
"buildName": "0e1915b",
"projectName": "FPS-Monterey",
"buildStatus": "1 Under Review"
},
"status": "success"
}

Authorizations

Authorizationstringheaderrequired

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

Query Parameters

projectTokenstringrequired

To validate the project in which you want to map your uploaded screenshots

buildIdstring

You can pass the id of speicifc build if you need to map multiple screenshots of different tests to one build. (Optional)

buildNamestring

You can pass the name of specific build if you need to map multiple screenshots of different tests to one build. (Optional)

Response

application/json

Successful operation

dataobject
data.Screenshotsobject[]
data.buildIdstring
Example: "50af60e1-8709-40b1-981f-19636de5a590"
data.buildNamestring
Example: "0e1915b"
data.projectNamestring
Example: "FPS-Monterey"
data.buildStatusstring
Example: "1 Under Review"
statusstring
Fetch build status by buildId / buildName
curl --request GET \
--url "https://api.lambdatest.com/automation/smart-ui/screenshot/build/status" \
--header "Authorization: Basic <encoded-value>"
{
"data": {
"Screenshots": [
{
"screenshotId": "3137e779-e00a-4d88-8cbe-9ff2eb8cceaf",
"mismatchPercentage": 12.65,
"threshold": 1200,
"status": "Under Screening"
}
],
"buildId": "50af60e1-8709-40b1-981f-19636de5a590",
"buildName": "0e1915b",
"projectName": "FPS-Monterey",
"buildStatus": "1 Under Review"
},
"status": "success"
}