---
title: "Gets a Loops deployment"
method: GET
path: "/v1/loops/deployments/{deployment_id}"
---

# Gets a Loops deployment

`GET /v1/loops/deployments/{deployment_id}`

Fetches a Loops deployment by ID, including its latest status.

## Response `200`

- GetLoopsDeploymentResponseV1 — Response for ``GET /v1/loops/deployments/<deployment_id>``.
  - `deployment` LoopsDeploymentV1, required — A Loops deployment — the long-lived run + sampler pair owned by a user. The deployment's current sampler is included inline. The full list of samplers visible to the caller (across all deployments) lives at ``GET /v1/loops/samplers``.
    - `id` string, required — The Loops deployment ID.
    - `active_run_id` string, nullable — The ID of the run currently active on this deployment, if any. Null when the deployment's runs have been marked inactive (e.g. scale-to-zero) without a successor.
    - `base_model` string, required — The HuggingFace base model the deployment is fine-tuning.
    - `base_url` string, required — The run's base URL.
    - `status` LoopsDeploymentStatusV1, required — Latest deployment status for a Loops deployment.
      - `name` 'CREATED' | 'DEPLOYING' | 'RUNNING' | 'SCALED_TO_ZERO' | 'FAILED' | 'STOPPED', required
    - `user` UserV1, required — A user.
      - `email` string, nullable — Email of the user.
    - `sampler` LoopsSamplerV1
      - `id` string, required
      - `base_url` string, required
      - `base_model` string, required — The HuggingFace base model the sampler is serving.
      - `created_at` string, date-time, required — Time the sampler was created in ISO 8601 format
      - `model_id` string, required — Hashid of the underlying Baseten model.
      - `deployment_id` string, required — Hashid of the specific model deployment (version).
      - `status` LoopsSamplerStatusV1, required — The current status of a Loops sampler.
        - `name` 'BUILDING' | 'DEPLOYING' | 'DEPLOY_FAILED' | 'LOADING_MODEL' | 'ACTIVE' | 'UNHEALTHY' | 'BUILD_FAILED' | 'BUILD_STOPPED' | 'DEACTIVATING' | 'INACTIVE' | 'FAILED' | 'UPDATING' | 'SCALED_TO_ZERO' | 'WAKING_UP', required — The status of a deployment.

---

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