---
title: "Returns information about a gitignore template"
method: GET
path: "/gitignore/templates/{name}"
tags: ["miscellaneous"]
---

# Returns information about a gitignore template

`GET /gitignore/templates/{name}`

## Path parameters

- `name` string, required

## Response `200`

GitignoreTemplateInfo

- GitignoreTemplateInfo — GitignoreTemplateInfo name and text of a gitignore template
  - `name` string — Name is the name of the gitignore template
  - `source` string — Source contains the content of the gitignore template

## Other responses

- `404` — APINotFound is a not found empty response

---

[API](https://skmtc.net/gitea/apis/gitea-api.md) · [All operations](https://skmtc.net/gitea/apis/gitea-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/gitea/gitea-api/versions/350de506cefa/schema)
