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

# Hetzner API Credentials

> Store a Hetzner Cloud API token in Ankra to provision and manage Hetzner clusters.

Hetzner API credentials store your Hetzner Cloud API token, used when provisioning and managing [Hetzner clusters](/guides/hetzner-clusters). The token is validated against the Hetzner API on creation.

<Tip>
  Don't have a Hetzner account? [Sign up for Hetzner Cloud](https://www.hetzner.com/cloud) to get started.
</Tip>

## Creating a Hetzner API Credential

<Steps>
  <Step title="Get a Hetzner API Token">
    1. Log in to the [Hetzner Console](https://console.hetzner.cloud)
    2. Select your project
    3. Go to **Security** → **API Tokens**
    4. Click **Generate API Token** with **Read & Write** permissions
    5. Copy the token (it's only shown once)
  </Step>

  <Step title="Add to Ankra (UI)">
    Go to **Credentials** → **Add** → **Hetzner**, enter a name and paste your API token.
  </Step>

  <Step title="Or via CLI">
    ```bash theme={null}
    ankra credentials hetzner create --name my-hetzner-token
    # You will be securely prompted for the API token
    ```
  </Step>
</Steps>

For self-managed Hetzner clusters you also need an [SSH key credential](/platform/credentials/ssh-key).

## Listing Hetzner Credentials

<CodeGroup>
  ```bash CLI theme={null}
  ankra credentials hetzner list
  ```

  ```bash cURL theme={null}
  curl https://platform.ankra.app/api/v1/credentials/hetzner \
    -H "Authorization: Bearer $ANKRA_API_TOKEN"
  ```
</CodeGroup>
