> For the complete documentation index, see [llms.txt](https://docs.clashperk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.clashperk.com/overview/link-account.md).

# Link and Verify Clash of Clans Accounts

Link up to 25 Clash of Clans accounts to Discord with /link create. Verify one with /verify and the API token from the game's settings.

Link your Clash of Clans accounts to your Discord user with <mark style="color:blue;">**/link create**</mark> and your player tag. ClashPerk commands then use your accounts without you entering a tag each time, and auto roles can find you. Verify an account with <mark style="color:blue;">**/verify**</mark> to prove it's yours.

## What does a player tag look like?

A Clash of Clans player tag starts with `#` and uses only these characters: `0 2 8 9 P Y L Q G R J C U V`. There's no letter O: it's always the number zero. Find your tag under your name on your profile in the game. The `#` is optional in commands, and an O you type is read as a zero.

Clan tags use the same characters.

## Link yourself

{% tabs %}
{% tab title="LINK PLAYER" %}
You can link up to 25 villages to your Discord user account.

<mark style="color:blue;">**/link create**</mark> <mark style="color:purple;">**player\_tag:**</mark> `#PLAYER_TAG`

**Link on behalf of someone**

<mark style="color:blue;">**/link create**</mark> <mark style="color:purple;">**player\_tag:**</mark> `#PLAYER_TAG` <mark style="color:purple;">**user:**</mark> `@user-mention`
{% endtab %}

{% tab title="LINK CLAN" %}
You can link one clan to your Discord user account.

<mark style="color:blue;">**/link create**</mark> <mark style="color:purple;">**clan\_tag:**</mark> `#CLAN_TAG`
{% endtab %}
{% endtabs %}

## Verify account

You need the API token from the in-game settings to verify an account.

{% tabs %}
{% tab title="VERIFY AND LINK" %} <mark style="color:blue;">**/verify**</mark> <mark style="color:purple;">**player:**</mark> `#PLAYER_TAG` <mark style="color:purple;">**token:**</mark> `API_TOKEN`
{% endtab %}
{% endtabs %}

### Is my API token safe to share?

Yes, your API token cannot be used to steal your account or gain access to any account-related data. It only verifies your identity with third-party services. The token resets periodically and becomes invalid after each use.

### How do you get your API token?

1. Open Clash of Clans and navigate to **Settings > More Settings**
2. Scroll down to the bottom and click on **`Show`** next to the **API Token**
3. Click **`Copy`** to copy your API token


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.clashperk.com/overview/link-account.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
