Skip to main content
POST
/
v1
/
repos
/
{repo_id}
/
git-upload-pack
Git fetch/clone operation
curl --request POST \
  --url https://repos.morphllm.com/v1/repos/{repo_id}/git-upload-pack \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/x-git-upload-pack-request'
This response does not have an example.

Git Protocol Endpoint

This endpoint implements the Git smart HTTP protocol’s upload-pack phase, which transfers repository objects during fetch/clone operations.

Automatic Usage

Called automatically by:
# Standard git
git clone https://repos.morphllm.com/v1/repos/my-project
git fetch origin

# Or via SDK
import { MorphGit } from 'morphsdk/git';
const morphGit = new MorphGit({ apiKey: 'sk-...' });
await morphGit.clone({ repoId: 'my-project', dir: './my-project' });

Architecture

Git Client → git-proxy (repos.morphllm.com) → Azure DevOps
              ↓ Auth translation
         Morph API key → Azure PAT

Authorizations

Authorization
string
header
required

Use your Morph API key as the bearer token. Get your API key at https://morphllm.com/dashboard

Path Parameters

repo_id
string
required

Repository identifier

Example:

"my-project"

Body

application/x-git-upload-pack-request · file

Git protocol pack negotiation data

Git protocol pack request (binary format)

Response

Repository data retrieved successfully

Git protocol pack data