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

# Codemagic - How do I link my account?

## Overview

To authenticate with Codemagic, you need:

1. **API Token** — the personal API token of your Codemagic account.

This guide will show you how to get it.

### Prerequisites

* A Codemagic account. [Sign up](https://codemagic.io/signup) if you don't have one.

### Step 1: Copy your API token

1. Log in to [Codemagic](https://codemagic.io/login).
2. Click **Account settings** at the bottom of the left sidebar.
3. Under **API token**, click **Show**.

![Codemagic Account settings page with the Show button highlighted under API token](https://mintcdn.com/nango/OsskBshdjtct8XPs/api-integrations/codemagic/account_settings_api_token.png?fit=max\&auto=format\&n=OsskBshdjtct8XPs\&q=85\&s=299482aca516a3b6d554ee1edcc0ac28)

4. Copy the revealed token with the copy button next to it.

![Codemagic API token section with the token revealed and the copy button highlighted](https://mintcdn.com/nango/OsskBshdjtct8XPs/api-integrations/codemagic/api_token_revealed.png?fit=max\&auto=format\&n=OsskBshdjtct8XPs\&q=85\&s=9a5abeed2aa4680f168f83235b65cf2e)

> [!NOTE]
>
> The token is personal: what it can do depends on your role in each Codemagic team. To rotate it, click **Revoke**, then **Show** to generate a new one.

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

1. Open the form where you need to authenticate with Codemagic.
2. Paste your token in the **API Token** field.
3. Submit the form, and you should be successfully authenticated.

![Codemagic Connect UI form with the API Token field](https://mintcdn.com/nango/OsskBshdjtct8XPs/api-integrations/codemagic/form.png?fit=max\&auto=format\&n=OsskBshdjtct8XPs\&q=85\&s=5cdb63111c3132e09512d645a2343f3a)

You are now connected to Codemagic.


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