> ## Documentation Index
> Fetch the complete documentation index at: https://www.octoparse.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Get build

> Inspect one snapshot's status and failure reason. Use for polling code-type build progress.

**`GET`** `https://api-datahub.octoparse.com/v1/data-apps/{app_id}/builds/{build_id}`

Authentication: API key required (`Authorization: Bearer <API Key>`). App author only; others get `404`.

Status and failure reason for a single snapshot — the polling window for code-type build progress.

## Request

### Path parameters

<ParamField path="app_id" type="string" required>
  App reference.
</ParamField>

<ParamField path="build_id" type="string" required>
  Build id.
</ParamField>

### Example request

```bash theme={null}
curl \
  -H "Authorization: Bearer $OCTOPARSE_API_KEY" \
  "https://api-datahub.octoparse.com/v1/data-apps/carol/reviews-query/builds/bld_a583f440a0ab"
```

## Response

### 200 success

```json theme={null}
{
  "data": {
    "build_id": "string",
    "build_status": "string",
    "error": "string",
    "content_hash": "",
    "source_revision": 0,
    "created_at": "string"
  }
}
```

Fields match the items on <a href="/docs/en/datahub/api/reference/publishing/list-builds">List builds</a>.

The payload is wrapped in `data`. Fields:

<ResponseField name="build_id" type="string" required>
  —
</ResponseField>

<ResponseField name="build_status" type="string" required>
  —
</ResponseField>

<ResponseField name="error" type="string">
  —
</ResponseField>

<ResponseField name="content_hash" type="string">
  —
</ResponseField>

<ResponseField name="source_revision" type="integer">
  —
</ResponseField>

<ResponseField name="created_at" type="string">
  —
</ResponseField>

### Errors

| HTTP | `code`            | `category`  | Description                    |
| ---- | ----------------- | ----------- | ------------------------------ |
| 401  | `unauthorized`    | `forbidden` | Missing or invalid API key.    |
| 404  | `build-not-found` | `not_found` | Build snapshot does not exist. |

Error responses use `{"error": {code, category, message, retryable}}`. See <a href="/docs/en/datahub/api/reference/introduction#errors">Errors</a>.

## Client libraries

The Python and JavaScript SDKs do not wrap this endpoint yet. Call REST directly.
