---
title: "Get the template."
method: GET
path: "/users/{login_name}/templates/{id}"
tags: ["template"]
---

# Get the template.

`GET /users/{login_name}/templates/{id}`

Get the template.

## Path parameters

- `login_name` string, required
- `id` string, required

## Response `200`

OK

- GithubComTensorchordModelzApiserverPkgQueryTemplate
  - `command` SqlNullString
    - `string` string
    - `valid` boolean — Valid is true if String is not NULL
  - `created_at` string
  - `deployment_source` PgtypeJSONB
    - `bytes` integer[]
    - `status` 0 | 1 | 2
  - `description` SqlNullString
    - `string` string
    - `valid` boolean — Valid is true if String is not NULL
  - `env_vars` PgtypeJSONB
    - `bytes` integer[]
    - `status` 0 | 1 | 2
  - `framework` SqlNullString
    - `string` string
    - `valid` boolean — Valid is true if String is not NULL
  - `http_probe_path` SqlNullString
    - `string` string
    - `valid` boolean — Valid is true if String is not NULL
  - `id` string
  - `image` SqlNullString
    - `string` string
    - `valid` boolean — Valid is true if String is not NULL
  - `is_public` SqlNullBool
    - `bool` boolean
    - `valid` boolean — Valid is true if Bool is not NULL
  - `name` string
  - `port` SqlNullInt32
    - `int32` integer
    - `valid` boolean — Valid is true if Int32 is not NULL
  - `readme` SqlNullString
    - `string` string
    - `valid` boolean — Valid is true if String is not NULL
  - `repo` SqlNullString
    - `string` string
    - `valid` boolean — Valid is true if String is not NULL
  - `server_resource` SqlNullString
    - `string` string
    - `valid` boolean — Valid is true if String is not NULL
  - `suggest_name` SqlNullString
    - `string` string
    - `valid` boolean — Valid is true if String is not NULL
  - `tags` PgtypeJSONB
    - `bytes` integer[]
    - `status` 0 | 1 | 2
  - `updated_at` string
  - `user_id` string

---

[API](https://skmtc.dev/modelz/apis/modelz-api.md) · [All operations](https://skmtc.dev/modelz/apis/modelz-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/modelz/modelz-api/revisions/b68d575c96e8/schema)
