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

# Get build status

> Check whether a template version's golden snapshot is ready.

Returns the current build state of a version. Poll this after [Build template](/api-reference/templates/build) until `status` is `ready`, or stream [build logs](/api-reference/templates/build-events) for live output.

## Path parameters

<ParamField path="namespace" type="string" required>Template namespace.</ParamField>
<ParamField path="name" type="string" required>Template name.</ParamField>
<ParamField path="version" type="string" required>Version (semver).</ParamField>

## Response

<ResponseField name="status" type="string">
  One of:

  * `not_built` — no golden snapshot yet. Call [Build template](/api-reference/templates/build).
  * `building` — a build is in progress.
  * `ready` — built and launchable.
  * `failed` — the last build failed. See `error`.
</ResponseField>

<ResponseField name="ref" type="string">Template ref.</ResponseField>
<ResponseField name="digest" type="string">Content-addressed digest.</ResponseField>
<ResponseField name="build_time_ms" type="integer">Build duration in milliseconds. Present when `ready`.</ResponseField>
<ResponseField name="reused" type="boolean">Whether an existing golden was reused.</ResponseField>
<ResponseField name="error" type="string">Failure reason. Present when `status` is `failed`.</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl https://www.orgo.ai/api/templates/default/claude-code/1.0.0/build \
    -H "Authorization: Bearer $ORGO_API_KEY"
  ```

  ```python Python theme={null}
  import os, requests

  r = requests.get(
      "https://www.orgo.ai/api/templates/default/claude-code/1.0.0/build",
      headers={"Authorization": f"Bearer {os.environ['ORGO_API_KEY']}"},
  )
  print(r.json()["status"])
  ```

  ```javascript JavaScript theme={null}
  const r = await fetch(
    "https://www.orgo.ai/api/templates/default/claude-code/1.0.0/build",
    { headers: { Authorization: `Bearer ${process.env.ORGO_API_KEY}` } },
  );
  console.log((await r.json()).status);
  ```
</CodeGroup>

### Response

```json theme={null}
{
  "ref": "default/claude-code@1.0.0",
  "digest": "a1b2c3d4e5f6a7b8c9d0e1f2a3b4c5d6e7f8a9b0c1d2e3f4a5b6c7d8e9f0a1b2",
  "status": "ready",
  "build_time_ms": 118420,
  "reused": false
}
```


## OpenAPI

````yaml GET /templates/{namespace}/{name}/{version}/build
openapi: 3.1.0
info:
  title: Orgo API
  description: >-
    Launch cloud computers that AI agents can control and interact with. Create
    workspaces, provision computers, and control them programmatically.
  version: 2.0.0
  contact:
    name: Orgo Support
    email: spencer@orgo.ai
    url: https://orgo.ai
servers:
  - url: https://www.orgo.ai/api
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Workspaces
    description: Organize computers into named workspaces
  - name: Computers
    description: Provision and manage virtual computers
  - name: Computer Lifecycle
    description: Start, stop, and restart computers
  - name: Computer Actions
    description: Control mouse, keyboard, and execute commands
  - name: Streaming
    description: Stream computer display via RTMP
  - name: Files
    description: Upload and download files
  - name: Templates
    description: Author, build, and launch reproducible computers from templates
paths:
  /templates/{namespace}/{name}/{version}/build:
    get:
      tags:
        - Templates
      summary: Get build status
      description: >-
        Returns the current build state of a version. Poll until status is
        `ready`.
      operationId: getBuildStatus
      parameters:
        - name: namespace
          in: path
          required: true
          schema:
            type: string
        - name: name
          in: path
          required: true
          schema:
            type: string
        - name: version
          in: path
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Build status
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuildResult'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    BuildResult:
      type: object
      properties:
        ref:
          type: string
        digest:
          type: string
        status:
          type: string
          enum:
            - ready
            - building
            - failed
            - not_built
        golden_dir:
          type: string
        build_time_ms:
          type: integer
          description: Build duration in milliseconds. Present when ready.
        reused:
          type: boolean
          description: Whether an existing golden with the same digest was reused.
        error:
          type: string
          description: Failure reason. Present when status is failed.
    Error:
      type: object
      properties:
        error:
          type: string
          description: Error message
  responses:
    Unauthorized:
      description: Invalid or missing API key
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Invalid API key
    NotFound:
      description: Resource not found
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Resource not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: API key authentication. Get your key at orgo.ai/workspaces

````