---
title: "Clone Repository"
method: POST
path: "/api/workspace/git/clone"
tags: ["runtime_mutations", "git"]
---

# Clone Repository

`POST /api/workspace/git/clone`

Clone a repository into the workspace, streaming progress as NDJSON.

Every failure the user can act on is reported as a terminal ``error`` event
carrying a stable ``code``, so the UI can offer the matching affordance --
most importantly ``github_auth_required``, which becomes a Connect GitHub
button rather than an opaque "not found".

## Response `200`

Successful Response

- unknown

## Changes

- **2026-09-02** `247eb6860e72` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/changes/api/workspace/git/clone/post.md)

---

[API](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api.md) · [All operations](https://skmtc.dev/quadrillion/apis/quadrillion-cloud-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/quadrillion/quadrillion-cloud-api/revisions/247eb6860e72/schema)
