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

# Get Persona Template By Id



## OpenAPI

````yaml GET /ext/template/{id}
openapi: 3.0.3
info:
  title: TruGen Developer Platform API
  version: 1.0.0
  description: OpenAPI specification for MCP endpoint
servers:
  - url: https://api.trugen.ai/v1
security: []
paths:
  /ext/template/{id}:
    parameters:
      - name: id
        in: path
        required: true
        schema:
          type: string
          format: uuid
        description: Unique identifier for the template
    get:
      summary: Retrieve a Template details by ID
      operationId: getTemplateById
      responses:
        '200':
          description: Template details retrieved successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    format: uuid
                    description: Unique identifier for the template
                    example: ff152cd9-efb6-4367-ae34-917f7c735f1d
                  template_name:
                    type: string
                    description: Name of the template
                    example: Default Calling Template
                  template_system_prompt:
                    type: string
                    description: System prompt text used by the template
                    example: You are a helpful AI assistant.
                  config:
                    type: object
                    description: Settings and configuration for the template
                    properties:
                      maxCallDuration:
                        type: integer
                        description: Maximum allowed call duration in seconds
                        example: 900
                      conversationalContext:
                        type: string
                        description: Context for maintaining conversation across calls
                        example: ''
                  record:
                    type: boolean
                    description: Whether the call should be recorded
                    example: true
                  knowledge_base:
                    type: array
                    description: List of knowledge bases attached to this agent.
                    nullable: true
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                          description: Knowledge base identifier.
                          example: ac79226e-73e1-41fe-8cde-469ae4e244fa
                        name:
                          type: string
                          description: Name of the knowledge base.
                          example: Product Support Articles
                        description:
                          type: string
                          description: Short summary of the knowledge base content.
                          example: >-
                            Contains FAQs and troubleshooting guides for product
                            lines.
                  created_at:
                    type: string
                    format: date-time
                    description: Timestamp when the template was created
                    example: '2025-12-03T10:15:30.000Z'
                  updated_at:
                    type: string
                    format: date-time
                    description: Timestamp when the template was last updated
                    example: '2025-12-03T12:00:00.000Z'
        '404':
          description: Template not found
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
              example:
                message: Template not found
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````