---
title: "Get a template project Git repository"
method: GET
path: "/v1/templates/{id}/repository"
tags: ["Templates"]
---

# Get a template project Git repository

`GET /v1/templates/{id}/repository`

## Request

- Base URL: `https://api.samva.dev`
- URL: `https://api.samva.dev/v1/templates/{id}/repository`
- Auth: API key in header `x-api-key`

Returns the credential-free HTTPS remote and default branch for the template project repository.

## Path parameters

- `id` string, required

## Response `200`

Success

- object
  - `remote` string, required
  - `defaultBranch` string, required

## Other responses

- `401`: UnauthorizedError
- `403`: ForbiddenError
- `404`: ResourceNotFoundError
- `409`: ConflictError
- `422`: ValidationError
- `500`: InternalError
- `504`: GatewayTimeoutError

---

[API](https://skmtc.dev/samva/apis/samva-api.md) · [All operations](https://skmtc.dev/samva/apis/samva-api/llms.txt) · [OpenAPI document](https://skmtc.dev/samva/apis/samva-api/revisions/a99408542cc3?raw)
