> This page is for version v3 (default).
> For other versions, use one of these documentation indexes:
> - v3 (default): https://help.getzep.com/v3/llms.txt
> - v2: https://help.getzep.com/v2/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://help.getzep.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://help.getzep.com/_mcp/server.

# Get Context Template

GET https://api.getzep.com/api/v2/context-templates/{template_id}

Retrieves a context template by template_id.

Reference: https://help.getzep.com/sdk-reference/context/get-context-template

## Request

### Path parameters

- `template_id` (string, required) — Template ID

## Response

### 200

The context template.

- `template` (string, optional) — The template content.
- `template_id` (string, optional) — Unique identifier for the template (max 100 characters).
- `uuid` (string, optional) — Unique identifier for the template.

## Errors

### 400 Bad Request Error

Bad Request

- `message` (string, optional)

### 404 Not Found Error

Not Found

- `message` (string, optional)

### 500 Internal Server Error

Internal Server Error

- `message` (string, optional)

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "template": "Dear {{user.firstName}}, your appointment is scheduled for {{appointment.date}} at {{appointment.time}}.",
  "template_id": "appointment-reminder-001",
  "uuid": "a3f1c9e2-7b4d-4f8a-9c2e-5d6f7a8b9c0d"
}
```