---
raw: true
search:
  tags:
    - Builds
    - GET
seo:
  description: >-
    Returns the current state, immutable input, settings snapshot, target,
    diagnostics,… Reference for the GET /v1/builds/{buildId} endpoint in the
    Spacefast API.
sidebar:
  label: Get a build by id
  badge: GET
title: Get a build by id
type: openapi-operation
---
Returns the current state, immutable input, settings snapshot, target, diagnostics, and produced or reused version for a build.

`GET /v1/builds/{buildId}`

**Responses**

- `200` — Response for status 200
- `default` — Problem details (RFC 9457). Any 4xx/5xx response is one \`application/problem+json\` document.

Response example, 200:

```json
{
  "$schema": "http://example.com",
  "data": {
    "capture": {
      "state": "string",
      "previewSummary": {
        "property1": null,
        "property2": null
      },
      "progress": {
        "property1": null,
        "property2": null
      },
      "archiveHash": "string"
    },
    "id": "string",
    "spaceId": "string",
    "status": "waiting_for_source",
    "input": {
      "kind": "url",
      "sourceUrl": "http://example.com"
    },
    "source": null,
    "settingsSnapshot": {
      "rootDirectory": null,
      "installDirectory": null,
      "installCommand": null,
      "buildCommand": null,
      "outputDirectory": null,
      "ignoredBuildCommand": null,
      "frameworkPreset": null,
      "platformPreset": null,
      "allowUnsupportedPlatformFeatures": false,
      "timeoutSeconds": 900
    },
    "target": {
      "channel": null,
      "preview": false
    },
    "retryOfBuildId": null,
    "producedVersionId": "string",
    "reusedVersionId": null,
    "diagnostics": [],
    "createdAt": "2019-08-24T14:15:22Z",
    "startedAt": "2019-08-24T14:15:22Z",
    "finishedAt": "2019-08-24T14:15:22Z"
  }
}
```
