---
title: "Add Credential"
method: POST
path: "/accounts/add-credential/{account_name}/{connector_name}"
tags: ["Accounts"]
---

# Add Credential

`POST /accounts/add-credential/{account_name}/{connector_name}`

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

## Path parameters

- `account_name` string, required
- `connector_name` string, required

## Request body

- object

## Response `201`

Successful Response

- unknown

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/hummingbot/apis/hummingbot-api.md) · [All operations](https://skmtc.net/hummingbot/apis/hummingbot-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/hummingbot/hummingbot-api/revisions/5347fe79537f/schema)
