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

# Restart Gateway

> Restart Gateway container.

If config is provided, the container will be removed and recreated with new configuration.
If no config is provided, the container will be stopped and started with existing configuration.



## OpenAPI

````yaml /api-reference/openapi.json post /gateway/restart
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:
  /gateway/restart:
    post:
      tags:
        - Gateway
      summary: Restart Gateway
      description: >-
        Restart Gateway container.


        If config is provided, the container will be removed and recreated with
        new configuration.

        If no config is provided, the container will be stopped and started with
        existing configuration.
      operationId: restart_gateway_gateway_restart_post
      requestBody:
        content:
          application/json:
            schema:
              anyOf:
                - $ref: '#/components/schemas/GatewayConfig'
                - type: 'null'
              title: Config
      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:
    GatewayConfig:
      properties:
        image:
          type: string
          title: Image
          description: Docker image for Gateway
          default: hummingbot/gateway:development
        port:
          type: integer
          title: Port
          description: Port for Gateway API
          default: 15888
      type: object
      title: GatewayConfig
      description: >-
        Configuration for Gateway container deployment.


        The Gateway always runs secured (TLS + mTLS); there is intentionally no
        ``dev_mode`` and no

        ``passphrase`` field (SEC-048):

        - A Gateway that holds wallet keys must never be served over plain HTTP,
        so the API does not
          support a dev/insecure mode.
        - The Gateway (v2.x) uses a single ``GATEWAY_PASSPHRASE`` for *both* TLS
        cert-key decryption
          and wallet encryption, and the shared mTLS cert set must be decryptable by this API's
          clients (which use ``CONFIG_PASSWORD``). The passphrase is therefore always
          ``CONFIG_PASSWORD``; a separate value would only break the API<->Gateway mTLS chain.
    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

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.