Agent

Get authenticated repository clone URL

Get the clone URL and any required Git configuration for a repository. Most providers embed a short-lived credential in the URL. Bitbucket Data Center connections use a URL-scoped Bearer header returned in gitConfig. Supports GitHub (app installation tokens or PATs), GitLab, and Bitbucket repositories.

post/api/v2/agent/getRepoCloneUrl

Request

  • Base URL
    https://zeropath.com
  • Auth
    API key in header X-ZeroPath-API-Token-Id and API key in header X-ZeroPath-API-Token-Secret

Request body

organizationIdstring

Organization ID (injected by MCP server)

repositoryIdstring uuid required

ID of the repository to get a clone URL for

Response

Authenticated clone URL

cloneUrlstring required

Clone URL. Credentials are embedded for providers that use Basic auth; a Bitbucket Data Center connection returns a credential-free HTTP(S) URL with gitConfig.

Changes

No recorded changes to this operation across all 1 revision of this API.