Skip to main content
POST
Fork a public repository into the caller's organization.

Authorizations

Authorization
string
header
required

Vers API key (VERS_API_KEY) sent as Authorization: Bearer <key>.

Body

application/json

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

source_org
string
required

The org that owns the source (public) repository

source_repo
string
required

The source repository name

source_tag
string
required

The source tag within the source repository

keep_alive
boolean

Whether the forked VM is exempt from inactivity auto-sleep. Defaults to true.

repo_name
string | null

Optional name for the forked repository (defaults to source_repo)

tag_name
string | null

Optional tag name for the fork (defaults to source_tag)

Response

Repository forked successfully

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

commit_id
string<uuid>
required

The commit ID of the forked snapshot

keep_alive
boolean
required

Whether the forked VM is exempt from inactivity auto-sleep.

reference
string
required

Full reference in repo_name:tag format

repo_name
string
required

The forked repository name

tag_name
string
required

The fork's tag name

vm_id
string
required

The VM created from the fork