> ## Documentation Index
> Fetch the complete documentation index at: https://docs.docyard.cc/llms.txt
> Use this file to discover all available pages before exploring further.

# Get Template

> Get details of a specific template

# Get Template

Retrieve details of a specific artifact type template.

## Endpoint

```
GET /templates/{template_id}
```

## Path Parameters

| Parameter     | Type   | Required | Description     |
| ------------- | ------ | -------- | --------------- |
| `template_id` | string | Yes      | The template ID |

## Request

```bash theme={null}
curl -X GET https://api.docyard.io/v1/templates/tmpl-ins-dec-001 \
  -H "X-API-Key: dk_live_dist_aaaaaaaa" \
  -H "X-API-Secret: dk_secret_dist_bbbbbbbb"
```

## Response

```json theme={null}
{
  "template_id": "tmpl-ins-dec-001",
  "name": "Insurance Declaration Page",
  "description": "Standard insurance policy declaration document",
  "status": "published",
  "owner": {
    "id": "dist-abc123",
    "name": "Acme Insurance"
  },
  "locks": [
    {
      "name": "policy_number",
      "data_type": "string",
      "description": "Unique insurance policy identifier",
      "validation": {
        "pattern": "^POL-[0-9]{8}$"
      },
      "weight": 20,
      "required": true
    },
    {
      "name": "effective_date",
      "data_type": "date",
      "description": "Date the policy coverage begins",
      "weight": 10,
      "required": true
    }
  ],
  "created_at": "2026-03-10T09:00:00Z",
  "published_at": "2026-03-12T14:00:00Z"
}
```

## Error Responses

### Not Found (404)

```json theme={null}
{
  "error": "not_found",
  "message": "Template not found",
  "details": {
    "template_id": "tmpl-nonexistent"
  }
}
```

***

## Related Endpoints

* [List Templates](/api-reference/artifact-types/list)
* [Create Template](/api-reference/artifact-types/create)
