Get Screenshot Status › Fetch build status by buildId / buildName
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.
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 Authorization string header required
Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.
Query Parameters projectToken string required
To validate the project in which you want to map your uploaded screenshots
buildId string
You can pass the id of speicifc build if you need to map multiple screenshots of different tests to one build. (Optional)
buildName string
You can pass the name of specific build if you need to map multiple screenshots of different tests to one build. (Optional)
Response 200▼
application/json Successful operation
data object
▶ Hide child attributesdata. Screenshots object[]
▶ Show child attributes
data. buildId string
Example: "50af60e1-8709-40b1-981f-19636de5a590"
data. buildName string
Example: "0e1915b"
data. projectName string
Example: "FPS-Monterey"
data. buildStatus string
Example: "1 Under Review"
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"
}