Skip to main content
Get Build StatusFetch build status by buildId or buildName
TestMu AI
StatusCommunityBlog
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.

GET
/build/status
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

Authorizationstringheaderrequired

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

Query Parameters

projectTokenstringrequired

Validate and map the project in which the build exists

buildIdstring

Unique ID for the build. You can get it from the URL of build's tests page.

buildNamestring

Name of the build. (For storybook project, provide build ID)

Response

application/json

Successful operation

dataobject
data.changesFoundnumber
Example: 2
data.approvednumber
Example: 3
data.underReviewnumber
Example: 0
data.rejectednumber
Example: 0
data.buildIdstring
Example: "2423e94d-7f12-460c-8de7-e35db3698d8a"
data.buildNamestring
Example: "c24dd3e"
data.projectNamestring
Example: "web-project"
data.buildStatusstring
Example: "Changes Need Approval"
data.messagestring
Example: "Fetched Build Status Successfully"
statusstring
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"
}