Get Template
GET
/api/v1/chat/templates/{template_id}
Get a template by ID.
Args: template_id: Template UUID conn: Database connection (injected)
Returns: Template if found
Raises: HTTPException: 404 if not found
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” template_id
required
Template Id
string
Responses
Section titled “ Responses ”Successful Response
ChatTemplate
A reusable chat template with persona and configuration defaults.
object
name
required
Name
string
tags
Tags
Array<string>
is_public
Is Public
Whether template is publicly visible
boolean
instructions
Instructions
Behavior instructions
Array<string>
roles
required
default_context_mode
ContextMode
How to provide context to the LLM.
string
default_rag_config
Any of:
RAGConfig
Complete RAG configuration for a chat query.
object
sources
required
Sources
Array<object>
DataSourceConfigConfiguration for a single data source in RAG.
retrieval_strategy
RetrievalStrategy
How to combine results from multiple sources.
string
max_total_results
Max Total Results
integer
include_content
Include Content
boolean
null
default_attachment_config
Any of:
AttachmentConfig
Configuration for attachment-based context retrieval.
object
attachments
include_full_content
Include Full Content
Include full document content (vs summary/excerpts)
boolean
null
llm_model
Llm Model
string
temperature
Temperature
number
max_tokens
Max Tokens
integer
Validation Error
HTTPValidationError
object
detail
Detail
Array<object>
ValidationErrorobject
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
input
Input
ctx
Context