Pre-launch API. The concepts described here are settled, but the API shape is not: request and response fields, parameters and defaults can still change. Build against it, and talk to your Luigi's Box contact before you put an integration into production.
const url = 'https://api.eu1.luigisbox.ai/distribution/v1/builds?organization_id=example&page=1&size=20';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api.eu1.luigisbox.ai/distribution/v1/builds?organization_id=example&page=1&size=20' \ --header 'Authorization: Bearer <token>'Return one page of an organization’s builds, newest first.
Naming a repository, branch and commit together selects a single build.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Organization whose builds to list, e.g. lbo_r2vn8c.
Organization whose builds to list, e.g. lbo_r2vn8c.
1-based page number.
1-based page number.
Number of items per page.
Number of items per page.
Responses
Section titled “Responses”Successful Response
object
The items on this page.
One build of one commit on one branch, and what testing said about it.
object
The branch it was pushed to. Part of the build’s identity: the same commit on two branches is two builds, published under two labels and with two verdicts.
Assigned build id, e.g. lbb_7k2m9x.
The commit that was built — a full lowercase 40-hex SHA.
When the build was recorded.
Where the build stands. queued is the only non-terminal value. published is not a lesser promoted — a successful build on a branch nobody promotes is finished. test-blocked says the testing step failed on a production branch and the promotion was withheld; on any other branch a failed test leaves the build published, with the verdict on test_status. build-failed is every other failed step, a promotion among them, so read failed_node for which one. stopped says the platform did not build the push at all: it was going to be tested and nothing testable could be resolved, and test_status plus skip_detail say why.
Organization that owns the repository, e.g. lbo_r2vn8c.
Repository the commit was pushed to, e.g. lbdr_8w3k2p.
Free-text detail: which channel was looked at, which origins were refused, which channels belong to somebody else. Always present on a stopped build; elsewhere only where one skip reason covers more than one situation. A note for a reader, never a code to switch on.
The testing verdict, or skipped:<reason> when no agent ran. null means no verdict has been reported yet — a build still under test. It is neither a pass nor a skip. On a stopped build the reason is why nothing was built.
Every value a build’s testing verdict is published as.
Four verdicts the agent reached and seven reasons it never ran. ERRORED
means the run could not evaluate the integration at all, and withholds a
promotion just as FAILED does. A SKIPPED_* value is neither a pass nor a
fault. skipped:force is found only on older builds; nothing records it.
The storage layer keeps the verdict and the skip reason in separate columns, so this set is declared here; a test pins it to the values the database admits.
When the build record last changed.
1-based page number.
Number of items per page.
Total number of items across all pages.
Example
{ "items": [ { "lifecycle_status": "queued", "test_status": "tested" } ]}Missing or invalid credentials
Canonical error body — every non-2xx response uses this shape.
object
Machine-readable error context; empty object when there is nothing to add.
object
Stable machine code naming why a well-formed request was refused: snake_case, prefixed by its domain — e.g. filter_unknown_field or cursor_mismatch. Safe to branch on; reason is not. Absent when the status code says all there is to say.
Every field-level problem found in the request, when validation is what failed. Absent when the rejection is not about a specific value.
One field-level reason a request was rejected.
object
Path to the offending value from the request root, e.g. ["body", "filters", 0, "operator"].
What is wrong with the value at loc.
Stable machine code for the problem, e.g. missing or string_too_short.
Human-readable, actionable error message.
Example generated
{ "exception_details": { "error_code": "example", "validation_errors": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ] }, "reason": "example", "request_id": "example"}Authenticated but not permitted
Canonical error body — every non-2xx response uses this shape.
object
Machine-readable error context; empty object when there is nothing to add.
object
Stable machine code naming why a well-formed request was refused: snake_case, prefixed by its domain — e.g. filter_unknown_field or cursor_mismatch. Safe to branch on; reason is not. Absent when the status code says all there is to say.
Every field-level problem found in the request, when validation is what failed. Absent when the rejection is not about a specific value.
One field-level reason a request was rejected.
object
Path to the offending value from the request root, e.g. ["body", "filters", 0, "operator"].
What is wrong with the value at loc.
Stable machine code for the problem, e.g. missing or string_too_short.
Human-readable, actionable error message.
Example generated
{ "exception_details": { "error_code": "example", "validation_errors": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ] }, "reason": "example", "request_id": "example"}Request validation failed
Canonical error body — every non-2xx response uses this shape.
object
Machine-readable error context; empty object when there is nothing to add.
object
Stable machine code naming why a well-formed request was refused: snake_case, prefixed by its domain — e.g. filter_unknown_field or cursor_mismatch. Safe to branch on; reason is not. Absent when the status code says all there is to say.
Every field-level problem found in the request, when validation is what failed. Absent when the rejection is not about a specific value.
One field-level reason a request was rejected.
object
Path to the offending value from the request root, e.g. ["body", "filters", 0, "operator"].
What is wrong with the value at loc.
Stable machine code for the problem, e.g. missing or string_too_short.
Human-readable, actionable error message.
Example generated
{ "exception_details": { "error_code": "example", "validation_errors": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ] }, "reason": "example", "request_id": "example"}Service temporarily unavailable
Canonical error body — every non-2xx response uses this shape.
object
Machine-readable error context; empty object when there is nothing to add.
object
Stable machine code naming why a well-formed request was refused: snake_case, prefixed by its domain — e.g. filter_unknown_field or cursor_mismatch. Safe to branch on; reason is not. Absent when the status code says all there is to say.
Every field-level problem found in the request, when validation is what failed. Absent when the rejection is not about a specific value.
One field-level reason a request was rejected.
object
Path to the offending value from the request root, e.g. ["body", "filters", 0, "operator"].
What is wrong with the value at loc.
Stable machine code for the problem, e.g. missing or string_too_short.
Human-readable, actionable error message.
Example generated
{ "exception_details": { "error_code": "example", "validation_errors": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ] }, "reason": "example", "request_id": "example"}Was this page helpful?
Thanks.