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

# How to Manage API Keys for the Firewall Panel

> Automate your security workflow with API keys. Learn how to securely generate, restrict, and manage access tokens for the FREAKHOSTING Firewall REST API.

## Automating Your Security Workflow

The FREAKHOSTING Firewall Panel features a strong RESTful API that enables developers to automate network security management. By generating secure **API Keys** (Access Tokens), you can programmatically list your assigned IP addresses, update granular filtering rules, and retrieve real-time attack telemetry. This is an essential feature for organizations that wish to integrate their server deployment pipelines with our specialized DDoS mitigation infrastructure.

<CardGroup cols={2}>
  <Card title="Difficulty" icon="gauge-low">
    Intermediate
  </Card>

  <Card title="Time" icon="clock">
    5 Minutes
  </Card>
</CardGroup>

***

## Token Generation Workflow

Follow these steps to establish a new secure connection point for your automation tools.

<Steps>
  <Step title="Access API Management">
    Log in to the [Firewall Portal](https://firewall.freakhosting.com) and navigate to the **[API Keys](https://firewall.freakhosting.com/dashboard/api-keys)** tab in the primary menu.
  </Step>

  <Step title="Initialize New Key">
    Click the **Create Key** or **Generate New Key** button to open the configuration interface.
  </Step>

  <Step title="Define Key Metadata">
    * **Key Name:** Provide a descriptive identifier (e.g., `Discord-Bot-Mitigation` or `Main-Panel-Sync`).
    * **IP Restriction:** (Highly Recommended) Input the specific IP address of the server or application that will be making the API calls.
  </Step>

  <Step title="Finalize and Secure">
    Click **Generate**. The system will display your unique API key. **Copy this key immediately** and store it in a secure location.
  </Step>
</Steps>

<Warning>
  ### One-Time Visibility

  For your security, the full API key is only displayed once during the generation process. Our database only stores a cryptographic hash of the key. If you close the window without saving the token, you will need to revoke it and generate a new one.
</Warning>

***

## API Security Standards

To maintain the integrity of your network perimeter, we recommend adhering to these technical standards.

<Tabs>
  <Tab title="Access Restriction">
    Always use the **IP Restriction** feature. By limiting key usage to your management server's specific IP address, you ensure that even if the key is leaked, it cannot be utilized by an unauthorized party.
  </Tab>

  <Tab title="Key Rotation">
    For high-security environments, we recommend rotating your API keys every **90 days**. This limits the window of opportunity for any potential compromised credentials.
  </Tab>
</Tabs>

***

## Revocation & Compliance

<AccordionGroup>
  <Accordion title="Disabling Compromised Tokens">
    If you suspect a key has been exposed or if a developer has left your organization, you must revoke the token immediately. Within the **API Keys** tab, locate the specific key and click the **Revoke** icon. All active sessions using that key will be terminated instantaneously.
  </Accordion>

  <Accordion title="Environmental Security">
    Never hardcode API keys directly into your software's source code. Instead, use **Environment Variables** (ENV) or a secure secrets management vault to deliver the token to your application at runtime.
  </Accordion>
</AccordionGroup>

***

<Note>
  ### Need Extra Help?

  If you encounter any issues, our support team is ready to assist:

  * **Live Chat:** Quick assistance via our website.
  * **Support Ticket:** [Open a Ticket](https://freakhosting.com/clientarea/submitticket.php)
  * **Discord:** [Join our Community](https://discord.gg/freakhosting)
  * **Email:** [support@freakhosting.com](mailto:support@freakhosting.com)
</Note>

<Tip>
  ### Save on Your Hosting

  Ready to get a new server? Use code **KB20** at checkout for **20% off** your first month!
</Tip>

***

<div align="center">
  **Last Updated:** January 2026 | **Automation:** Enterprise management simplified.
</div>
