# Get all gitignore templates

From **GitHub v3 REST API**.

`GET /gitignore/templates`

List all templates available to pass as an option when [creating a repository](https://docs.github.com/enterprise-server@3.0/rest/reference/repos#create-a-repository-for-the-authenticated-user).

## Responses

### `200`

Response

### `application/json`

- Type: `array`

```json
[
  "Actionscript",
  "Android",
  "AppceleratorTitanium",
  "Autotools",
  "Bancha",
  "C",
  "C++"
]
```

```json
{"items":{"type":"string"},"type":"array"}
```

### `304`

Not modified

## Request examples

### cURL

```shell
curl --request GET \
  --url {protocol}://{hostname}/api/v3/gitignore/templates
```
