Skip to main content
BuildFetch all builds of an account. (Server 2)
TestMu AI
StatusCommunityBlog
Build

Fetch all builds of an account. (Server 2)

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. (Server 2)
curl --request GET \
--url "https://manual-api.lambdatest.com/builds" \
--header "Authorization: Basic <encoded-value>"
{
"Meta": {
"attributes": {
"org_id": 123
},
"result_set": {
"count": 1,
"limit": 1,
"offset": 123,
"total": 100
}
},
"data": [
{
"build_id": 1782,
"name": "shivam-video-test",
"user_id": 1212,
"username": "shivam",
"status_ind": "completed",
"create_timestamp": "2019-02-05 08:24:36",
"end_timestamp": "2019-02-05 08:27:22",
"project_id": 0,
"project_name": "automation1",
"tags": [
"tag1",
"tag2",
"tag3"
]
}
]
}

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 status. You can pass multiple comma seperated status 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"

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-05 08:24:36"
data.end_timestampstring
Example: "2019-02-05 08:27:22"
data.project_idnumber
Example: 0
data.project_namestring
Example: "automation1"
data.tagsstring[]
Example:
["tag1","tag2","tag3"]
Fetch all builds of an account. (Server 2)
curl --request GET \
--url "https://manual-api.lambdatest.com/builds" \
--header "Authorization: Basic <encoded-value>"
{
"Meta": {
"attributes": {
"org_id": 123
},
"result_set": {
"count": 1,
"limit": 1,
"offset": 123,
"total": 100
}
},
"data": [
{
"build_id": 1782,
"name": "shivam-video-test",
"user_id": 1212,
"username": "shivam",
"status_ind": "completed",
"create_timestamp": "2019-02-05 08:24:36",
"end_timestamp": "2019-02-05 08:27:22",
"project_id": 0,
"project_name": "automation1",
"tags": [
"tag1",
"tag2",
"tag3"
]
}
]
}