# List Templates - Documentation

> For the complete documentation index, see [llms.txt](/llms.txt). Markdown is available with `Accept: text/markdown` and `.md` URL variants.

Source: /docs/api-reference/gpus-v2-list-templates

# List Templates

GET

/

gpus

/

v2

/

templates

Try it

List Templates

cURL

```
curl --request GET \
--url https://api.novita.ai/gpus/v2/templates \
--header 'Authorization: &#x3C;authorization>'
```

```
import requestsurl = "https://api.novita.ai/gpus/v2/templates"headers = {"Authorization": "&#x3C;authorization>"}response = requests.get(url, headers=headers)print(response.text)
```

```
const options = {method: 'GET', headers: {Authorization: '&#x3C;authorization>'}};fetch('https://api.novita.ai/gpus/v2/templates', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
```

```
&#x3C;?php$curl = curl_init();curl_setopt_array($curl, [ CURLOPT_URL => "https://api.novita.ai/gpus/v2/templates", CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAXREDIRS => 10, CURLOPT_TIMEOUT => 30, CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1, CURLOPT_CUSTOMREQUEST => "GET", CURLOPT_HTTPHEADER => [ "Authorization: &#x3C;authorization>" ],]);$response = curl_exec($curl);$err = curl_error($curl);curl_close($curl);if ($err) { echo "cURL Error #:" . $err;} else { echo $response;}
```

```
package mainimport (	"fmt"	"net/http"	"io")func main() {	url := "https://api.novita.ai/gpus/v2/templates"	req, _ := http.NewRequest("GET", url, nil)	req.Header.Add("Authorization", "&#x3C;authorization>")	res, _ := http.DefaultClient.Do(req)	defer res.Body.Close()	body, _ := io.ReadAll(res.Body)	fmt.Println(string(body))}
```

```
HttpResponse&#x3C;String> response = Unirest.get("https://api.novita.ai/gpus/v2/templates") .header("Authorization", "&#x3C;authorization>") .asString();
```

```
require 'uri'require 'net/http'url = URI("https://api.novita.ai/gpus/v2/templates")http = Net::HTTP.new(url.host, url.port)http.use_ssl = truerequest = Net::HTTP::Get.new(url)request["Authorization"] = '&#x3C;authorization>'response = http.request(request)puts response.read_body
```

200

```
{
"data": [
{
"id": "tpl-001",
"owner_id": "owner-001",
"name": "pytorch-2.3-cuda12",
"type": "instance",
"visibility": "community",
"image": "registry.example.com/ml/pytorch:2.3-cuda12",
"registry_auth_id": "&#x3C;string>",
"command": "",
"entrypoint": "&#x3C;string>",
"rootfs_size_gb": 50,
"ports": [
{
"protocol": "http",
"port": 8888
}
],
"envs": [
{
"key": "&#x3C;string>",
"value": "&#x3C;string>"
}
],
"metadata": {
"readme": "PyTorch 2.3 with CUDA 12",
"logo": "https://example.com/logo.png",
"description": "PyTorch development template",
"author": "PAI",
"tags": [
"pytorch",
"cuda"
]
},
"min_cuda_version": "12.2",
"created_at": 1715750400,
"updated_at": 1715750400,
"member_id": "550e8400-e29b-41d4-a716-446655440000"
}
],
"next_cursor": "eyJvZmZzZXQiOjIwfQ",
"has_more": true
}
```

#### Headers

[​](#parameter-authorization)

Authorization

string

required

Bearer authentication format, e.g.: `Bearer {{API_KEY}}`.

#### Query Parameters

[​](#parameter-limit)

limit

integer

Page size. Integer, value >= 0.

[​](#parameter-cursor)

cursor

string

Cursor. Leave empty for the first request. Pass through the `next_cursor` from the previous response. String, length: 0-1024 characters.

[​](#parameter-name)

name

string

Search by template name. String, length: 0-255 characters.

[​](#parameter-type)

type

string

Filter by template type.

[​](#parameter-visibilities)

visibilities

string

Filter by visibility. Multiple values are comma-separated.

[​](#parameter-member-ids)

member_ids

string

Filter by creator member ID. Multiple IDs are comma-separated. String, length: 0-255 characters.

[​](#parameter-is-my-community)

is_my_community

boolean

Whether to query only the user's community templates.

#### Response

200 - application/json

OK

[​](#response-data)

data

object[]

Template list

Show child attributes

[​](#response-next-cursor)

next_cursor

string

Cursor for the next page. Empty string when `has_more=false`

Example:

`"eyJvZmZzZXQiOjIwfQ"`

[​](#response-has-more)

has_more

boolean

Whether there are more pages

Example:

`true`

Last modified on June 23, 2026
