> ## Documentation Index
> Fetch the complete documentation index at: https://nango.dev/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Cloudsmith - How do I link my account?

## Overview

To authenticate with Cloudsmith, you need:

1. **API Key** - A Cloudsmith personal API key, or the API key of a service account in your workspace.

This guide will show you how to get one.

### Prerequisites

* A Cloudsmith account. You can [sign up](https://cloudsmith.com/pricing) on the free Core plan.
* To create a service account, you need the Owner or Manager role in the workspace.

### Step 1: Create an API key

A personal API key acts as your user. A service account API key is not tied to a specific user. Both work with Nango.

**Personal API key**

1. Log in to [Cloudsmith](https://app.cloudsmith.com/login).
2. Click your user icon in the top right corner, then click **Personal API keys**. If asked to confirm access, enter your password and click **Continue**.

![Personal API keys in the Cloudsmith user menu](https://mintcdn.com/nango/mIkSflofhizfGa_e/api-integrations/cloudsmith/user_menu_personal_api_keys.png?fit=max\&auto=format\&n=mIkSflofhizfGa_e\&q=85\&s=c2049fd18414418feb0a8729702d5bb3)

3. Click **Create API key**, then click **Create API key** again in the dialog.

![Create API key button on the Cloudsmith Personal API keys page](https://mintcdn.com/nango/mIkSflofhizfGa_e/api-integrations/cloudsmith/create_personal_api_key.png?fit=max\&auto=format\&n=mIkSflofhizfGa_e\&q=85\&s=29a8da18ddfe5d6eaf01e25a6cf0ae05)

4. Click the copy button next to the new key and store it somewhere safe.

![New Cloudsmith personal API key with its copy button](https://mintcdn.com/nango/mIkSflofhizfGa_e/api-integrations/cloudsmith/personal_api_key_created.png?fit=max\&auto=format\&n=mIkSflofhizfGa_e\&q=85\&s=f9e707e6473a4f6fd10a22db6a55e4ca)

**Service account API key**

1. In your workspace, go to **Accounts** -> **Services**.
2. Click **Create service**, enter a name, keep the **Member** role and click **Create service**.

![Create service form on the Cloudsmith Services page](https://mintcdn.com/nango/mIkSflofhizfGa_e/api-integrations/cloudsmith/create_service_account.png?fit=max\&auto=format\&n=mIkSflofhizfGa_e\&q=85\&s=5bf8054aa9eceebb382309019634175a)

3. Click the copy button next to the service account's API key and store it somewhere safe.

![New Cloudsmith service account API key with its copy button](https://mintcdn.com/nango/mIkSflofhizfGa_e/api-integrations/cloudsmith/service_account_api_key_created.png?fit=max\&auto=format\&n=mIkSflofhizfGa_e\&q=85\&s=1b38da8119a5bffee9975b1347ae2bdf)

### Step 2: Enter your API key in the Connect UI

1. Open the form where you need to authenticate with Cloudsmith.
2. Enter your **API Key** in the designated field.
3. Submit the form, and you should be successfully authenticated.

![Cloudsmith connection form in Nango's Connect UI](https://mintcdn.com/nango/mIkSflofhizfGa_e/api-integrations/cloudsmith/form.png?fit=max\&auto=format\&n=mIkSflofhizfGa_e\&q=85\&s=37ef647a82016ab3cabbf4264705278f)

You are now connected to Cloudsmith.


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