# Retrieve a template and its JSON Schema (/docs/api-reference/templates/get)

`GET https://druckling-nine.vercel.app/v1/templates/{slug}`

## Parameters

| Name | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `slug` | path | string | yes |  |

## Response 200: OK

```json
{
  "type": "object",
  "properties": {
    "id": {
      "type": "string"
    },
    "object": {
      "const": "template"
    },
    "slug": {
      "type": "string"
    },
    "name": {
      "type": "string"
    },
    "status": {
      "enum": [
        "draft",
        "published"
      ],
      "type": "string"
    },
    "latest_version": {
      "anyOf": [
        {
          "type": "number"
        },
        {
          "type": "null"
        }
      ]
    },
    "required_fields": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "language": {
      "type": "string",
      "description": "Default language, used when a render names none."
    },
    "languages": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Every language the template renders in (pass one as `language`), default first. From the latest published version, or the draft if never published."
    },
    "updated_at": {
      "type": "string",
      "format": "date-time"
    },
    "json_schema": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    },
    "sample_data": {
      "type": "object",
      "propertyNames": {
        "type": "string"
      },
      "additionalProperties": {}
    }
  },
  "required": [
    "id",
    "object",
    "slug",
    "name",
    "status",
    "latest_version",
    "required_fields",
    "language",
    "languages",
    "updated_at",
    "json_schema",
    "sample_data"
  ]
}
```