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

# Update Api Keys

> Update API keys in Gateway configuration.

Args:
    request: Contains api_keys dict mapping provider name to API key value

Example request:
{
    "api_keys": {
        "helius": "new-api-key-value",
        "infura": "another-api-key"
    }
}

Note: After updating API keys, restart Gateway for changes to take effect.



## OpenAPI

````yaml /api-reference/openapi.json post /gateway/apiKeys
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/apiKeys:
    post:
      tags:
        - Gateway
      summary: Update Api Keys
      description: >-
        Update API keys in Gateway configuration.


        Args:
            request: Contains api_keys dict mapping provider name to API key value

        Example request:

        {
            "api_keys": {
                "helius": "new-api-key-value",
                "infura": "another-api-key"
            }
        }


        Note: After updating API keys, restart Gateway for changes to take
        effect.
      operationId: update_api_keys_gateway_apiKeys_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/UpdateApiKeysRequest'
        required: true
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                additionalProperties: true
                type: object
                title: Response Update Api Keys Gateway Apikeys Post
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    UpdateApiKeysRequest:
      properties:
        api_keys:
          additionalProperties: true
          type: object
          title: Api Keys
          description: >-
            Dict mapping provider name to API key value (e.g., {'helius':
            'abc123', 'infura': 'xyz789'})
      type: object
      required:
        - api_keys
      title: UpdateApiKeysRequest
      description: Request to update Gateway API keys
    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

````