Skip to main content
POST
/
api
/
v1
/
repositories
/
fork
cURL
curl --request POST \
  --url https://api.example.com/api/v1/repositories/fork \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "source_org": "<string>",
  "source_repo": "<string>",
  "source_tag": "<string>",
  "repo_name": "<string>",
  "tag_name": "<string>"
}
'
{
  "commit_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "reference": "<string>",
  "repo_name": "<string>",
  "tag_name": "<string>",
  "vm_id": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Request body for POST /api/v1/repositories/fork

source_org
string
required

The organization that owns the source public repository

source_repo
string
required

The source repository name

source_tag
string
required

The tag to fork (e.g. "latest", "v1.0")

repo_name
string | null

Name for the new repository in your org (defaults to source_repo if omitted)

tag_name
string | null

Tag name in the new repo (defaults to source_tag if omitted)

Response

Repository forked successfully

Response body for POST /api/v1/repositories/fork

commit_id
string<uuid>
required

The new commit in your org (snapshot of the forked VM)

reference
string
required

Full reference: repo_name:tag_name

repo_name
string
required

The new repository name in your org

tag_name
string
required

The tag name pointing to the forked commit

vm_id
string
required

The new VM that was created from the fork