> For clean Markdown of any page, append .md to the page URL. > For a complete documentation index, see https://docs-beta.getzep.com/v3/sdk-reference/context/create-context-template/llms.txt. > For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs-beta.getzep.com/_mcp/server. # Create Context Template POST https://api.getzep.com/api/v2/context-templates Content-Type: application/json Creates a new context template. Reference: https://docs-beta.getzep.com/sdk-reference/context/create-context-template ## Request ### Body (application/json) This endpoint expects an apidata.CreateContextTemplateRequest. - `template` (string, required) — The template content (max 1200 characters). - `template_id` (string, required) — Unique identifier for the template (max 100 characters). ## Response ### 200 The created 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) ### 500 Internal Server Error Internal Server Error - `message` (string, optional) ## Examples **Request** ```json { "template": "Dear {{user_name}}, your appointment is scheduled for {{appointment_date}} at {{appointment_time}}. Please arrive 10 minutes early.", "template_id": "appointment_reminder_v1" } ``` **Response** ```json { "template": "Dear {{user_name}}, your appointment is scheduled for {{appointment_date}} at {{appointment_time}}. Please arrive 10 minutes early.", "template_id": "appointment_reminder_v1", "uuid": "3fa85f64-5717-4562-b3fc-2c963f66afa6" } ```