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

# Add Credential

> Add or update connector credentials (API keys) for a specific account and connector.

Args:
    account_name: Name of the account
    connector_name: Name of the connector
    credentials: Dictionary containing the connector credentials

Returns:
    Success message when credentials are added

Raises:
    HTTPException: 400 if there's an error adding the credentials



## OpenAPI

````yaml /api-reference/openapi.json post /accounts/add-credential/{account_name}/{connector_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:
  /accounts/add-credential/{account_name}/{connector_name}:
    post:
      tags:
        - Accounts
      summary: Add Credential
      description: >-
        Add or update connector credentials (API keys) for a specific account
        and connector.


        Args:
            account_name: Name of the account
            connector_name: Name of the connector
            credentials: Dictionary containing the connector credentials

        Returns:
            Success message when credentials are added

        Raises:
            HTTPException: 400 if there's an error adding the credentials
      operationId: >-
        add_credential_accounts_add_credential__account_name___connector_name__post
      parameters:
        - name: account_name
          in: path
          required: true
          schema:
            type: string
            title: Account Name
        - name: connector_name
          in: path
          required: true
          schema:
            type: string
            title: Connector Name
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              additionalProperties: true
              title: Credentials
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema: {}
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBasic: []
components:
  schemas:
    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

````