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

# Get Controller

> Get controller content by type and name.

Supports both single-file controllers (controller.py) and
package-style controllers (controller/controller.py).

Args:
    controller_type: Type of the controller
    controller_name: Name of the controller

Returns:
    Dictionary with controller name, type, and content

Raises:
    HTTPException: 404 if controller not found



## OpenAPI

````yaml /api-reference/openapi.json get /controllers/{controller_type}/{controller_name}
openapi: 3.1.0
info:
  title: Hummingbot API
  description: API for managing Hummingbot trading instances
  version: 1.0.1
servers:
  - url: http://localhost:8000
    description: Local development server
security: []
paths:
  /controllers/{controller_type}/{controller_name}:
    get:
      tags:
        - Controllers
      summary: Get Controller
      description: |-
        Get controller content by type and name.

        Supports both single-file controllers (controller.py) and
        package-style controllers (controller/controller.py).

        Args:
            controller_type: Type of the controller
            controller_name: Name of the controller

        Returns:
            Dictionary with controller name, type, and content

        Raises:
            HTTPException: 404 if controller not found
      operationId: get_controller_controllers__controller_type___controller_name__get
      parameters:
        - name: controller_type
          in: path
          required: true
          schema:
            $ref: '#/components/schemas/ControllerType'
        - name: controller_name
          in: path
          required: true
          schema:
            type: string
            title: Controller Name
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  type: string
                title: >-
                  Response Get Controller Controllers  Controller Type  
                  Controller Name  Get
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    ControllerType:
      type: string
      enum:
        - directional_trading
        - market_making
        - generic
      title: ControllerType
      description: Types of controllers available
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    HTTPBasic:
      type: http
      scheme: basic

````