Skip to main content

Hetzner

How to Generate a Hetzner API Token and connect with CloudMoo

Updated over 10 months ago

This guide will walk you through the steps to generate an API token in your Hetzner Cloud account. This token is required to connect your Hetzner account with CloudMoo.

Prerequisites

  • An active Hetzner Cloud account

  • Access to Hetzner Cloud Console

Steps to Generate API Token

  1. Log into Hetzner Cloud

  2. Access API Tokens Page

    • Click on your project name in the top-left corner

    • Select "Security" from the left sidebar

    • Click on "API Tokens" tab

    • You'll be taken to the API tokens management page

  3. Generate New API Token

    • Click on "Generate API Token"

    • Enter a descriptive name for your token (e.g., "CloudMoo Monitor")

    • Select the token permissions:

      • For CloudMoo, select "Read-only" access

    • Click "Generate API Token"

  4. Copy and Save Your Token

    • Your new API token will be displayed

    • ⚠️ IMPORTANT: Copy the token immediately and store it securely. You won't be able to see it again after closing the window.

    • The token will look something like this: p2xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Permission Levels

Hetzner offers different permission levels for API tokens:

  • Read-only (Recommended for CloudMoo)

    • Can view resources

    • Cannot make changes

  • Read & Write

    • Can create and modify resources

  • Read, Write & Delete

    • Full access to all operations

Project-Specific Tokens

Important notes about Hetzner API tokens:

  • Tokens are project-specific

  • If you have multiple projects, you'll need separate tokens for each

  • Make sure you're in the correct project before generating a token

Rate Limits

Hetzner implements rate limiting on API requests:

  • Limited to 3600 requests per hour by default

  • Rate limit information is included in API responses

  • CloudMoo is designed to work within these limits

For additional help or support, please contact our support team.

Did this answer your question?