---
title: "Clone code repo"
method: POST
path: "/repositories/code/clone"
---

# Clone code repo

`POST /repositories/code/clone`

Clone code repo for multi branch scanning

## Request body

- object
  - `code_repo_id` integer, required — The ID of the code repo
  - `branch` string, required — The other branch Aikido should scan

## Response `200`

The code repo has been cloned and multi branch scanning has been set up.

- object
  - `success` integer — The integer 1 indicating success
  - `code_repo_id` integer — The id of the newly created code repo

---

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