> ## 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.

# Deploy V2 Script

> Deploy a V2 script bot with optional script configuration.
This endpoint creates and starts a Hummingbot instance running the specified script.

Args:
    deployment: V2ScriptDeployment configuration containing instance name, credentials,
               optional script name and configuration
    docker_manager: Docker service dependency
    db_manager: Database manager dependency

Returns:
    Dictionary with deployment response including instance details

Raises:
    HTTPException: 500 if deployment fails



## OpenAPI

````yaml /api-reference/openapi.json post /bot-orchestration/deploy-v2-script
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:
  /bot-orchestration/deploy-v2-script:
    post:
      tags:
        - Bot Orchestration
      summary: Deploy V2 Script
      description: >-
        Deploy a V2 script bot with optional script configuration.

        This endpoint creates and starts a Hummingbot instance running the
        specified script.


        Args:
            deployment: V2ScriptDeployment configuration containing instance name, credentials,
                       optional script name and configuration
            docker_manager: Docker service dependency
            db_manager: Database manager dependency

        Returns:
            Dictionary with deployment response including instance details

        Raises:
            HTTPException: 500 if deployment fails
      operationId: deploy_v2_script_bot_orchestration_deploy_v2_script_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/V2ScriptDeployment'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    V2ScriptDeployment:
      properties:
        instance_name:
          type: string
          title: Instance Name
          description: Unique name for the bot instance
        credentials_profile:
          type: string
          title: Credentials Profile
          description: Name of the credentials profile to use
        image:
          type: string
          title: Image
          description: Docker image for the Hummingbot instance
          default: hummingbot/hummingbot:latest
        script:
          anyOf:
            - type: string
            - type: 'null'
          title: Script
          description: Script name to run (without .py extension)
        script_config:
          anyOf:
            - type: string
            - type: 'null'
          title: Script Config
          description: Script configuration file name (without .yml extension)
        headless:
          type: boolean
          title: Headless
          description: Run in headless mode (no UI)
          default: false
      type: object
      required:
        - instance_name
        - credentials_profile
      title: V2ScriptDeployment
      description: Configuration for deploying a bot with a script
    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

````