Get Build Status › Fetch build status by buildId or buildName
Get Build Status
Fetch build status by buildId or buildName This API fetches the build status along with the count of different screenshot statuses. Note: When both buildId and buildName are provided in the request, buildId will be given priority over buildName.
Fetch build status by buildId or buildName curl -- request GET \
-- url "https://api.lambdatest.com/automation/smart-ui/build/status" \
-- header "Authorization: Basic <encoded-value>"
{
"data" : {
"changesFound" : 2 ,
"approved" : 3 ,
"underReview" : 0 ,
"rejected" : 0 ,
"buildId" : "2423e94d-7f12-460c-8de7-e35db3698d8a" ,
"buildName" : "c24dd3e" ,
"projectName" : "web-project" ,
"buildStatus" : "Changes Need Approval" ,
"message" : "Fetched Build Status Successfully"
} ,
"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
Validate and map the project in which the build exists
buildId string
Unique ID for the build. You can get it from the URL of build's tests page.
buildName string
Name of the build. (For storybook project, provide build ID)
Response 200▼
application/json Successful operation
data object
▶ Hide child attributesdata. changesFound number
Example: 2
data. approved number
Example: 3
data. underReview number
Example: 0
data. rejected number
Example: 0
data. buildId string
Example: "2423e94d-7f12-460c-8de7-e35db3698d8a"
data. buildName string
Example: "c24dd3e"
data. projectName string
Example: "web-project"
data. buildStatus string
Example: "Changes Need Approval"
data. message string
Example: "Fetched Build Status Successfully"
Fetch build status by buildId or buildName curl -- request GET \
-- url "https://api.lambdatest.com/automation/smart-ui/build/status" \
-- header "Authorization: Basic <encoded-value>"
{
"data" : {
"changesFound" : 2 ,
"approved" : 3 ,
"underReview" : 0 ,
"rejected" : 0 ,
"buildId" : "2423e94d-7f12-460c-8de7-e35db3698d8a" ,
"buildName" : "c24dd3e" ,
"projectName" : "web-project" ,
"buildStatus" : "Changes Need Approval" ,
"message" : "Fetched Build Status Successfully"
} ,
"status" : "success"
}