Skip to content

    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.

    List an organization's builds

    View source
    GET
    /distribution/v1/builds
    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.

    organization_id
    required
    Organization Id

    Organization whose builds to list, e.g. lbo_r2vn8c.

    string

    Organization whose builds to list, e.g. lbo_r2vn8c.

    repository_id
    Repository Id

    Narrow to one repository, e.g. lbdr_8w3k2p.

    Any of:
    string

    Narrow to one repository, e.g. lbdr_8w3k2p.

    branch
    Branch

    Narrow to one branch.

    Any of:
    string
    <= 255 characters

    Narrow to one branch.

    commit_sha
    Commit Sha

    Narrow to one commit — a full 40-hex SHA.

    Any of:
    string

    Narrow to one commit — a full 40-hex SHA.

    page
    Page

    1-based page number.

    integer
    default: 1 >= 1 <= 10000

    1-based page number.

    size
    Size

    Number of items per page.

    integer
    default: 20 >= 1 <= 100

    Number of items per page.

    Successful Response

    Media typeapplication/json
    Page[BuildView]
    object
    items
    required
    Items

    The items on this page.

    Array<object>
    BuildView

    One build of one commit on one branch, and what testing said about it.

    object
    branch
    required
    Branch

    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.

    string
    build_id
    required
    Build Id

    Assigned build id, e.g. lbb_7k2m9x.

    string
    commit_sha
    required
    Commit Sha

    The commit that was built — a full lowercase 40-hex SHA.

    string
    created_at
    required
    Created At

    When the build was recorded.

    string format: date-time
    failed_node
    Failed Node

    Which pipeline node failed, in the workflow’s own words. A note, not a code to switch on.

    Any of:
    string
    lifecycle_status
    required
    BuildLifecycleStatus

    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.

    string
    Allowed values: queued published promoted build-failed test-blocked errored stopped
    organization_id
    required
    Organization Id

    Organization that owns the repository, e.g. lbo_r2vn8c.

    string
    repository_id
    required
    Repository Id

    Repository the commit was pushed to, e.g. lbdr_8w3k2p.

    string
    run_id
    Run Id

    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.

    Any of:
    string
    skip_detail
    Skip Detail

    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.

    Any of:
    string
    test_status

    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.

    Any of:
    BuildTestStatus

    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.

    string
    Allowed values: tested warning failed errored skipped:force skipped:skip-requested skipped:not-requested skipped:no-channels skipped:no-origins skipped:foreign-channel skipped:origin-not-allowlisted
    updated_at
    required
    Updated At

    When the build record last changed.

    string format: date-time
    page
    required
    Page

    1-based page number.

    integer
    size
    required
    Size

    Number of items per page.

    integer
    total
    required
    Total

    Total number of items across all pages.

    integer

    Example

    {
    "items": [
    {
    "lifecycle_status": "queued",
    "test_status": "tested"
    }
    ]
    }

    Missing or invalid credentials

    Media typeapplication/json
    ErrorResponse

    Canonical error body — every non-2xx response uses this shape.

    object
    exception_details
    ExceptionDetails

    Machine-readable error context; empty object when there is nothing to add.

    object
    error_code
    Error Code

    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.

    string
    validation_errors
    Validation Errors

    Every field-level problem found in the request, when validation is what failed. Absent when the rejection is not about a specific value.

    Array<object>
    ValidationProblem

    One field-level reason a request was rejected.

    object
    loc
    required
    Loc

    Path to the offending value from the request root, e.g. ["body", "filters", 0, "operator"].

    Array
    msg
    required
    Msg

    What is wrong with the value at loc.

    string
    type
    required
    Type

    Stable machine code for the problem, e.g. missing or string_too_short.

    string
    key
    additional properties
    any
    reason
    required
    Reason

    Human-readable, actionable error message.

    string
    request_id
    Request Id

    Request correlation ID (matches the X-Request-Id response header).

    Any of:
    string

    Example generated

    {
    "exception_details": {
    "error_code": "example",
    "validation_errors": [
    {
    "loc": [
    "example"
    ],
    "msg": "example",
    "type": "example"
    }
    ]
    },
    "reason": "example",
    "request_id": "example"
    }

    Authenticated but not permitted

    Media typeapplication/json
    ErrorResponse

    Canonical error body — every non-2xx response uses this shape.

    object
    exception_details
    ExceptionDetails

    Machine-readable error context; empty object when there is nothing to add.

    object
    error_code
    Error Code

    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.

    string
    validation_errors
    Validation Errors

    Every field-level problem found in the request, when validation is what failed. Absent when the rejection is not about a specific value.

    Array<object>
    ValidationProblem

    One field-level reason a request was rejected.

    object
    loc
    required
    Loc

    Path to the offending value from the request root, e.g. ["body", "filters", 0, "operator"].

    Array
    msg
    required
    Msg

    What is wrong with the value at loc.

    string
    type
    required
    Type

    Stable machine code for the problem, e.g. missing or string_too_short.

    string
    key
    additional properties
    any
    reason
    required
    Reason

    Human-readable, actionable error message.

    string
    request_id
    Request Id

    Request correlation ID (matches the X-Request-Id response header).

    Any of:
    string

    Example generated

    {
    "exception_details": {
    "error_code": "example",
    "validation_errors": [
    {
    "loc": [
    "example"
    ],
    "msg": "example",
    "type": "example"
    }
    ]
    },
    "reason": "example",
    "request_id": "example"
    }

    Request validation failed

    Media typeapplication/json
    ErrorResponse

    Canonical error body — every non-2xx response uses this shape.

    object
    exception_details
    ExceptionDetails

    Machine-readable error context; empty object when there is nothing to add.

    object
    error_code
    Error Code

    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.

    string
    validation_errors
    Validation Errors

    Every field-level problem found in the request, when validation is what failed. Absent when the rejection is not about a specific value.

    Array<object>
    ValidationProblem

    One field-level reason a request was rejected.

    object
    loc
    required
    Loc

    Path to the offending value from the request root, e.g. ["body", "filters", 0, "operator"].

    Array
    msg
    required
    Msg

    What is wrong with the value at loc.

    string
    type
    required
    Type

    Stable machine code for the problem, e.g. missing or string_too_short.

    string
    key
    additional properties
    any
    reason
    required
    Reason

    Human-readable, actionable error message.

    string
    request_id
    Request Id

    Request correlation ID (matches the X-Request-Id response header).

    Any of:
    string

    Example generated

    {
    "exception_details": {
    "error_code": "example",
    "validation_errors": [
    {
    "loc": [
    "example"
    ],
    "msg": "example",
    "type": "example"
    }
    ]
    },
    "reason": "example",
    "request_id": "example"
    }

    Service temporarily unavailable

    Media typeapplication/json
    ErrorResponse

    Canonical error body — every non-2xx response uses this shape.

    object
    exception_details
    ExceptionDetails

    Machine-readable error context; empty object when there is nothing to add.

    object
    error_code
    Error Code

    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.

    string
    validation_errors
    Validation Errors

    Every field-level problem found in the request, when validation is what failed. Absent when the rejection is not about a specific value.

    Array<object>
    ValidationProblem

    One field-level reason a request was rejected.

    object
    loc
    required
    Loc

    Path to the offending value from the request root, e.g. ["body", "filters", 0, "operator"].

    Array
    msg
    required
    Msg

    What is wrong with the value at loc.

    string
    type
    required
    Type

    Stable machine code for the problem, e.g. missing or string_too_short.

    string
    key
    additional properties
    any
    reason
    required
    Reason

    Human-readable, actionable error message.

    string
    request_id
    Request Id

    Request correlation ID (matches the X-Request-Id response header).

    Any of:
    string

    Example generated

    {
    "exception_details": {
    "error_code": "example",
    "validation_errors": [
    {
    "loc": [
    "example"
    ],
    "msg": "example",
    "type": "example"
    }
    ]
    },
    "reason": "example",
    "request_id": "example"
    }