# List an organization's builds `GET /distribution/v1/builds` Return one page of an organization's builds, newest first. Naming a repository, branch and commit together selects a single build. ## Request example ```bash curl --request GET \ --url 'https://api.eu1.luigisbox.ai/distribution/v1/builds?organization_id=&page=1&size=20' \ --header 'Authorization: Bearer ' ``` ## Query Parameters | Name | Type | Required | Description | Constraints | |---|---|---|---|---| | `organization_id` | `string` | Yes | Organization whose builds to list, e.g. `lbo_r2vn8c`. | — | | `repository_id` | `anyOf(string, null)` | No | Narrow to one repository, e.g. `lbdr_8w3k2p`. | — | | `branch` | `anyOf(string, null)` | No | Narrow to one branch. | — | | `commit_sha` | `anyOf(string, null)` | No | Narrow to one commit — a full 40-hex SHA. | — | | `page` | `integer` | No | 1-based page number. | >= 1; <= 10000 | | `size` | `integer` | No | Number of items per page. | >= 1; <= 100 | ## Responses | Status | Description | Content | |---|---|---| | `200` | Successful Response | application/json: Page_BuildView_ | | `401` | Missing or invalid credentials | application/json: ErrorResponse | | `403` | Authenticated but not permitted | application/json: ErrorResponse | | `422` | Request validation failed | application/json: ErrorResponse | | `503` | Service temporarily unavailable | application/json: ErrorResponse | ### 200 Successful Response #### application/json Schema: `Page_BuildView_` ##### Attributes | Attribute | Type | Required | Description | Constraints | |---|---|---|---|---| | `items` | `Array` | Yes | The items on this page. | — | | `items[].branch` | `string` | Yes | 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. | — | | `items[].build_id` | `string` | Yes | Assigned build id, e.g. `lbb_7k2m9x`. | — | | `items[].commit_sha` | `string` | Yes | The commit that was built — a full lowercase 40-hex SHA. | — | | `items[].created_at` | `string` | Yes | When the build was recorded. | format: date-time | | `items[].failed_node` | `anyOf(string, null)` | No | Which pipeline node failed, in the workflow's own words. A note, not a code to switch on. | — | | `items[].lifecycle_status` | `BuildLifecycleStatus` | Yes | 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. | — | | `items[].organization_id` | `string` | Yes | Organization that owns the repository, e.g. `lbo_r2vn8c`. | — | | `items[].repository_id` | `string` | Yes | Repository the commit was pushed to, e.g. `lbdr_8w3k2p`. | — | | `items[].run_id` | `anyOf(string, null)` | No | The test run performed for this build, e.g. `lbtr_3n8q1v`. `null` when no agent ran, and also once the run has aged out of retention while the build itself is kept. | — | | `items[].skip_detail` | `anyOf(string, null)` | No | 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. | — | | `items[].test_status` | `anyOf(BuildTestStatus, null)` | No | The testing verdict, or `skipped:` 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. | — | | `items[].updated_at` | `string` | Yes | When the build record last changed. | format: date-time | | `page` | `integer` | Yes | 1-based page number. | — | | `size` | `integer` | Yes | Number of items per page. | — | | `total` | `integer` | Yes | Total number of items across all pages. | — | ##### Response example ```json { "items": [ { "branch": "example", "build_id": "example", "commit_sha": "example", "created_at": "2026-04-15T12:00:00Z", "failed_node": "example", "lifecycle_status": "queued", "organization_id": "example", "repository_id": "example", "run_id": "example", "skip_detail": "example", "test_status": "tested", "updated_at": "2026-04-15T12:00:00Z" } ], "page": 1, "size": 1, "total": 1 } ``` ### 401 Missing or invalid credentials #### application/json Schema: `ErrorResponse` ##### Attributes | Attribute | Type | Required | Description | Constraints | |---|---|---|---|---| | `exception_details` | `ExceptionDetails` | No | Machine-readable error context; empty object when there is nothing to add. | — | | `exception_details.error_code` | `string` | No | 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. | — | | `exception_details.validation_errors` | `Array` | No | Every field-level problem found in the request, when validation is what failed. Absent when the rejection is not about a specific value. | — | | `exception_details.validation_errors[].loc` | `Array` | Yes | Path to the offending value from the request root, e.g. `["body", "filters", 0, "operator"]`. | — | | `exception_details.validation_errors[].msg` | `string` | Yes | What is wrong with the value at `loc`. | — | | `exception_details.validation_errors[].type` | `string` | Yes | Stable machine code for the problem, e.g. `missing` or `string_too_short`. | — | | `exception_details.*` | `any` | No | Additional property. | — | | `reason` | `string` | Yes | Human-readable, actionable error message. | — | | `request_id` | `anyOf(string, null)` | No | Request correlation ID (matches the X-Request-Id response header). | — | ##### Response example ```json { "exception_details": { "error_code": "example", "validation_errors": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ] }, "reason": "example", "request_id": "example" } ``` ### 403 Authenticated but not permitted #### application/json Schema: `ErrorResponse` ##### Attributes | Attribute | Type | Required | Description | Constraints | |---|---|---|---|---| | `exception_details` | `ExceptionDetails` | No | Machine-readable error context; empty object when there is nothing to add. | — | | `exception_details.error_code` | `string` | No | 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. | — | | `exception_details.validation_errors` | `Array` | No | Every field-level problem found in the request, when validation is what failed. Absent when the rejection is not about a specific value. | — | | `exception_details.validation_errors[].loc` | `Array` | Yes | Path to the offending value from the request root, e.g. `["body", "filters", 0, "operator"]`. | — | | `exception_details.validation_errors[].msg` | `string` | Yes | What is wrong with the value at `loc`. | — | | `exception_details.validation_errors[].type` | `string` | Yes | Stable machine code for the problem, e.g. `missing` or `string_too_short`. | — | | `exception_details.*` | `any` | No | Additional property. | — | | `reason` | `string` | Yes | Human-readable, actionable error message. | — | | `request_id` | `anyOf(string, null)` | No | Request correlation ID (matches the X-Request-Id response header). | — | ##### Response example ```json { "exception_details": { "error_code": "example", "validation_errors": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ] }, "reason": "example", "request_id": "example" } ``` ### 422 Request validation failed #### application/json Schema: `ErrorResponse` ##### Attributes | Attribute | Type | Required | Description | Constraints | |---|---|---|---|---| | `exception_details` | `ExceptionDetails` | No | Machine-readable error context; empty object when there is nothing to add. | — | | `exception_details.error_code` | `string` | No | 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. | — | | `exception_details.validation_errors` | `Array` | No | Every field-level problem found in the request, when validation is what failed. Absent when the rejection is not about a specific value. | — | | `exception_details.validation_errors[].loc` | `Array` | Yes | Path to the offending value from the request root, e.g. `["body", "filters", 0, "operator"]`. | — | | `exception_details.validation_errors[].msg` | `string` | Yes | What is wrong with the value at `loc`. | — | | `exception_details.validation_errors[].type` | `string` | Yes | Stable machine code for the problem, e.g. `missing` or `string_too_short`. | — | | `exception_details.*` | `any` | No | Additional property. | — | | `reason` | `string` | Yes | Human-readable, actionable error message. | — | | `request_id` | `anyOf(string, null)` | No | Request correlation ID (matches the X-Request-Id response header). | — | ##### Response example ```json { "exception_details": { "error_code": "example", "validation_errors": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ] }, "reason": "example", "request_id": "example" } ``` ### 503 Service temporarily unavailable #### application/json Schema: `ErrorResponse` ##### Attributes | Attribute | Type | Required | Description | Constraints | |---|---|---|---|---| | `exception_details` | `ExceptionDetails` | No | Machine-readable error context; empty object when there is nothing to add. | — | | `exception_details.error_code` | `string` | No | 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. | — | | `exception_details.validation_errors` | `Array` | No | Every field-level problem found in the request, when validation is what failed. Absent when the rejection is not about a specific value. | — | | `exception_details.validation_errors[].loc` | `Array` | Yes | Path to the offending value from the request root, e.g. `["body", "filters", 0, "operator"]`. | — | | `exception_details.validation_errors[].msg` | `string` | Yes | What is wrong with the value at `loc`. | — | | `exception_details.validation_errors[].type` | `string` | Yes | Stable machine code for the problem, e.g. `missing` or `string_too_short`. | — | | `exception_details.*` | `any` | No | Additional property. | — | | `reason` | `string` | Yes | Human-readable, actionable error message. | — | | `request_id` | `anyOf(string, null)` | No | Request correlation ID (matches the X-Request-Id response header). | — | ##### Response example ```json { "exception_details": { "error_code": "example", "validation_errors": [ { "loc": [ "example" ], "msg": "example", "type": "example" } ] }, "reason": "example", "request_id": "example" } ```