Skip to main content
BuildFetch all builds of an account.
TestMu AI
StatusCommunityBlog
Build

Fetch all builds of an account.

Fetch all builds of an account. You can limit the number of records and apply filter on status,build date range and sort by users,start date and end date in asc and desc order. You can apply sort on multiple columns.

GET
/builds
Fetch all builds of an account.
curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/builds" \
--header "Authorization: Basic <encoded-value>"
{
"Meta": {
"attributes": {
"org_id": 123
},
"result_set": {
"count": 123,
"limit": 123,
"offset": 123,
"total": 123
}
},
"data": [
{
"build_id": 1782,
"name": "shivam-video-test",
"user_id": 1212,
"username": "shivam",
"status_ind": "completed",
"create_timestamp": "2019-02-05T08:24:36.000Z",
"end_timestamp": "2019-02-05T08:27:22.000Z",
"project_id": "ML",
"project_name": "magicleap",
"tags": [
"tag1",
"tag2",
"tag3"
],
"duration": 719
}
]
}

Authorizations

Authorizationstringheaderrequired

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

Query Parameters

offsetinteger

It defines the number of lists on the basis of limit parameter. e.g offset=10

limitinteger

To fetch specified number of records. e.g. limit=10

statusstring

To fetch the list of builds with specific statuses. You can pass multiple comma seperated statuses e.g. running,queued,completed,timeout and error.

fromdatestring

To fetch the list of builds that executed from the specified Start Date. The Date format must be YYYY-MM-DD. e.g. "2018-03-15".

todatestring

To fetch the list of builds that executed till the specified End Date. If both fromdate and todate value provided then it works as range filter. The Date format must be YYYY-MM-DD. e.g. "2018-03-15".

sortstring

To sort the list in ascending or descending order using multiple keys. e.g. "asc.user_id,desc.org_id"

publicurlboolean

If true, includes the public URL for each build in the response. If false (default), public URLs are omitted. When true, the limit cannot exceed 20.

usernamestring

To filter builds by username(s). You can pass a single username or multiple comma-separated usernames (e.g. "alice,bob").

Response

application/json

successful operation

Metaobjectrequired
Meta.attributesobject
Meta.result_setobject
dataobject[]required
data.build_idnumber
Example: 1782
data.namestring
Example: "shivam-video-test"
data.user_idnumber
Example: 1212
data.usernamestring
Example: "shivam"
data.status_indstring
Example: "completed"
data.create_timestampstring
Example: "2019-02-05T08:24:36.000Z"
data.end_timestampstring
Example: "2019-02-05T08:27:22.000Z"
data.project_idstring
Example: "ML"
data.project_namestring
Example: "magicleap"
data.tagsstring[]
Example:
["tag1","tag2","tag3"]
data.durationnumber
Example: 719
Fetch all builds of an account.
curl --request GET \
--url "https://api.lambdatest.com/automation/api/v1/builds" \
--header "Authorization: Basic <encoded-value>"
{
"Meta": {
"attributes": {
"org_id": 123
},
"result_set": {
"count": 123,
"limit": 123,
"offset": 123,
"total": 123
}
},
"data": [
{
"build_id": 1782,
"name": "shivam-video-test",
"user_id": 1212,
"username": "shivam",
"status_ind": "completed",
"create_timestamp": "2019-02-05T08:24:36.000Z",
"end_timestamp": "2019-02-05T08:27:22.000Z",
"project_id": "ML",
"project_name": "magicleap",
"tags": [
"tag1",
"tag2",
"tag3"
],
"duration": 719
}
]
}