Skip to main content
POST
/
v2
/
enterprise
/
organizations
/
{org_id}
/
clone
curl -X POST "https://api.devin.ai/v2/enterprise/organizations/YOUR_ORG_ID/clone" \
  -H "Authorization: Bearer YOUR_API_KEY"
  --data '{"repo": "octocat/hello-world"}'
{
  "snapshot-id": "snapshot-adc12f7",
  "snapshot_name": "Dev Environment 2025-10-16 15:06:15",
  "status": snapshot.status,
  "org_id": "org-abc1234",
  "created_at": "2025-10-16T15:06:15.000Z",
}
Clones a git repository in an organization and updates into a new snapshot version.

Query Parameters

repo
string
required
Repository uri to be clone. Must be in the pattern namespace/repository-name.
startup_commands
array
default:"[]"
A list of bash commands to run when the snapshot starts.
setup_steps
object
default:"{}"
An object specifying every stage of the setup alongside a list of commands to run for each of them.

Response

snapshot_id
string
required
ID of the new snapshot
snapshot_name
string
required
Descriptive name of the new snapshot
status
string
required
State of the upgrade process.
created_at
date-time
required
Date and Time of the creation event
curl -X POST "https://api.devin.ai/v2/enterprise/organizations/YOUR_ORG_ID/clone" \
  -H "Authorization: Bearer YOUR_API_KEY"
  --data '{"repo": "octocat/hello-world"}'
{
  "snapshot-id": "snapshot-adc12f7",
  "snapshot_name": "Dev Environment 2025-10-16 15:06:15",
  "status": snapshot.status,
  "org_id": "org-abc1234",
  "created_at": "2025-10-16T15:06:15.000Z",
}