---
title: "Returns the defined project-level repository templates."
method: GET
path: "/projects/{projectKey}/project-templates"
tags: ["Project templates"]
---

# Returns the defined project-level repository templates.

`GET /projects/{projectKey}/project-templates`

## Path parameters

- `projectKey` string, required

## Response `200`

Project-level repository templates found

- ProjectTemplate[]
  - `defaultTemplate` boolean — is default template
  - `description` string — the description of the project-level template
  - `id` integer — the ID of the project-level template configuration
  - `logoData` string — the base64-encoded image logo
  - `repos` object[] — the list of repositories that should be assigned to this template; just pass a list of repository ID's, e.g., [ { "id" : 1 }, { "id" : 2 } ]. You should leave this empty for DELETE.
  - `template` RestRepositoryRef — the template repository; just pass its repository ID, e.g., { "id" : 1 } OR project key and repository slug, e.g. { "project" : { "key" : "PROJECT_1" }, "slug" : "rep_1" }
    - `id` integer
    - `project` ProjectRef
      - `key` string
    - `slug` string

## Other responses

- `401` — The currently authenticated user does not have PROJECT_ADMIN credentials

## Changes

- **2025-02-04** `c973497aa59f` — 11 warning, 1 info
  - removed the optional property `items/repos/items/defaultBranch` from the response with the `200` status
  - removed the optional property `items/repos/items/description` from the response with the `200` status
  - removed the optional property `items/repos/items/empty` from the response with the `200` status
  - removed the optional property `items/repos/items/forkable` from the response with the `200` status
  - …8 more

[Change history](https://skmtc.dev/mibexsoftware/apis/repository-templates-for-bitbucket-rest-api/changes/projects/:projectKey/project-templates/get.md)

---

[API](https://skmtc.dev/mibexsoftware/apis/repository-templates-for-bitbucket-rest-api.md) · [All operations](https://skmtc.dev/mibexsoftware/apis/repository-templates-for-bitbucket-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mibexsoftware/repository-templates-for-bitbucket-rest-api/revisions/34d717f7cf3a/schema)
