---
title: "Get the build."
method: GET
path: "/users/{login_name}/build/{name}"
tags: ["build"]
---

# Get the build.

`GET /users/{login_name}/build/{name}`

Get the build.

## Path parameters

- `login_name` string, required
- `name` string, required

## Response `200`

OK

- BuildResponse
  - `spec` TypesBuildSpec
    - `authn` TypesAuthN
      - `password` string
      - `token` string
      - `username` string
    - `branch` string
    - `buildTarget` TypesBuildTarget
      - `builder` 'Dockerfile' | 'envd' | 'image'
      - `digest` string
      - `directory` string — directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional
      - `duration` string
      - `image` string
      - `image_tag` string
      - `registry` string
      - `registry_token` string
    - `image` string
    - `image_tag` string
    - `name` string
    - `namespace` string
    - `repository` string — repository is the URL
    - `revision` string — revision is the commit hash for the specified revision. +optional
    - `secret_id` string
  - `status` TypesBuildStatus
    - `phase` 'Pending' | 'Running' | 'Succeeded' | 'Failed'

---

[API](https://skmtc.net/modelz/apis/modelz-api.md) · [All operations](https://skmtc.net/modelz/apis/modelz-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modelz/modelz-api/versions/b68d575c96e8/schema)
