---
title: "Retrieve build output"
method: GET
path: "/v1/builds/{id}/outputs/{target}"
---

# Retrieve build output

`GET /v1/builds/{id}/outputs/{target}`

Get the output status and details for a specific target for a specific build

## Path parameters

- `id` string, required
- `target` 'node' | 'python' | 'go' | 'java' | 'kotlin' | 'ruby' | 'typescript', required

## Response `200`

Successful response

- BuildOutputResponse
  - `commit` union, required
    - BuildStepOutputNotStarted
      - `status` string, required
    - BuildStepOutputQueued
      - `status` string, required
    - BuildStepOutputInProgress
      - `status` string, required
    - CommitBuildStepOutputCompleted
      - `status` string, required
      - `completed` union, required
        - CommitPresentShape
          - `conclusion` 'error' | 'success' | 'warning' | 'note', required
          - `commit` object, required
            - `sha` string, required
            - `repo` object, required
              - …
        - MergeConflictShape
          - `conclusion` 'merge_conflict' | 'upstream_merge_conflict', required
          - `merge_conflict_pr` object, required
            - `number` integer, required
            - `repo` object, required
              - …
        - OtherConclusionShape
          - `conclusion` 'cancelled' | 'timed_out' | 'fatal' | 'payment_required' | 'noop' | 'version_bump', required
  - `lint` union, required
    - BuildStepOutputNotStarted
      - `status` string, required
    - BuildStepOutputQueued
      - `status` string, required
    - BuildStepOutputInProgress
      - `status` string, required
    - LintBuildStepOutputCompleted
      - `status` string, required
      - `completed` LintCompletedShape, required
        - `conclusion` 'success' | 'failure' | 'skipped' | 'cancelled' | 'action_required' | 'neutral' | 'timed_out', required
  - `test` union, required
    - BuildStepOutputNotStarted
      - `status` string, required
    - BuildStepOutputQueued
      - `status` string, required
    - BuildStepOutputInProgress
      - `status` string, required
    - TestBuildStepOutputCompleted
      - `status` string, required
      - `completed` TestCompletedShape, required
        - `conclusion` 'success' | 'failure' | 'skipped' | 'cancelled' | 'action_required' | 'neutral' | 'timed_out', required

## Other responses

- `401` — Unauthorized
- `404` — Build not found

## Changes

- **2025-03-20** `efd1aba15824` — 2 info
  - added `#/components/schemas/MergeConflictShape, #/components/schemas/OtherConclusionShape` to the `commit/anyOf[#/components/schemas/CommitBuildStepOutputCompleted]/completed` response property `anyOf` list for the response status `200`
  - removed `#/components/schemas/CommitMissingShape` from the `commit/anyOf[#/components/schemas/CommitBuildStepOutputCompleted]/completed` response property `anyOf` list for the response status `200`
- **2025-01-14** `6a98b110d004` — 1 info
  - added discriminator to `commit/anyOf[#/components/schemas/CommitBuildStepOutputCompleted]/completed` response property for the response status `200`
- **2025-01-14** `18a4de357cb4` — 3 breaking, 1 info
  - the `commit/anyOf[#/components/schemas/CommitBuildStepOutputCompleted]/completed` response's property type/format changed from `object`/`` to ``/`` for status `200`
  - removed the required property `commit/anyOf[#/components/schemas/CommitBuildStepOutputCompleted]/completed/commit` from the response with the `200` status
  - removed the required property `commit/anyOf[#/components/schemas/CommitBuildStepOutputCompleted]/completed/conclusion` from the response with the `200` status
  - added `#/components/schemas/CommitMissingShape, #/components/schemas/CommitPresentShape` to the `commit/anyOf[#/components/schemas/CommitBuildStepOutputCompleted]/completed` response property `anyOf` list for the response status `200`
- …earlier changes not shown

[Full history](https://skmtc.dev/stainless-api/apis/builds-api/changes/v1/builds/:id/outputs/:target/get.md)

---

[API](https://skmtc.dev/stainless-api/apis/builds-api.md) · [All operations](https://skmtc.dev/stainless-api/apis/builds-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/stainless-api/builds-api/revisions/efd1aba15824/schema)
