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

# Get template by name

> Retrieve a full local template



## OpenAPI

````yaml /phishmonger-docs/phishmonger-openapi.json get /get_template
openapi: 3.0.0
info:
  title: Phishmonger API
  version: 2.0.0
  description: >-
    RESTful API for programmatic access to Phishmonger phishing platform
    functionality
servers:
  - url: https://yourdomain.com
    description: Phishmonger server
security:
  - cookieAuth: []
tags:
  - name: Template
    description: Email template management
  - name: Campaign
    description: Phishing campaign operations
  - name: Target
    description: Target recipient management
  - name: Event
    description: Event tracking and analytics
paths:
  /get_template:
    get:
      tags:
        - Template
      summary: Get template by name
      description: Retrieve a full local template
      parameters:
        - name: name
          in: query
          required: true
          schema:
            type: string
          description: Template name
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Template'
        '401':
          description: Not authorized
      security:
        - cookieAuth: []
components:
  schemas:
    Template:
      type: object
      properties:
        name:
          type: string
          description: Template name
        email:
          type: string
          description: Raw email MIME content
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: admin_cookie
      description: Admin cookie authentication (configurable in config.json)

````