latestOpenAPI 3.0.32026-08-10152216352.3 KB

eea119b4113f

VCS

Get authenticated clone URL for a repository

Generates an authenticated git clone URL with embedded credentials for the specified repository. Supports all VCS providers: GitHub, GitLab, Bitbucket, Bitbucket Data Center, Azure DevOps, and AWS CodeCommit.

post/api/vcs/clone-url

Request body

vcsIdstring required

The VCS integration ID

repositorystring required

Repository path. Format varies by provider:

  • GitHub/GitLab/Bitbucket: org/repo
  • Bitbucket DC: project/repo
  • Azure DevOps: org/project/repo
  • CodeCommit: repo-name
regionstring

AWS region (required only for CodeCommit)

Example request

{
  "vcsId": "66169dfaf49923c0aab04510",
  "repository": "my-org/my-repo",
  "region": "us-east-1"
}

Response

Successfully generated clone URL

cloneUrlstring required

The authenticated git clone URL

vcsType'github' | 'gitlab' | 'bitbucket' | 'bitbucketdc' | 'azuredevops' | 'codecommit' required

The type of VCS provider

Example response

{
  "cloneUrl": "https://ghp_xxxx@github.com/my-org/my-repo.git"
}