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

# cPanel

> Follow this guide to connect cPanel with Spartan

## Configuring cPanel.

<Steps>
  <Step title="Log in to WHM">
    Log in to WHM using your administrator credentials.
  </Step>

  <Step title="Get API credentials">
    Open the **Manage API Tokens** tab and create or copy your API credentials.

    <img src="https://mintcdn.com/dezerx/y8vFoAhtdIIxWI9B/public/services/cpanel/step-1.png?fit=max&auto=format&n=y8vFoAhtdIIxWI9B&q=85&s=e85a8a51499312e563e7580370571f0d" alt="WHM API token configuration" width="1266" height="987" data-path="public/services/cpanel/step-1.png" />
  </Step>
</Steps>

## Configure API in DezerX Spartan

<Steps>
  <Step title="Open the service modules">
    Log in to your market with an administrator account, then go to **Admin → Modules → Services**.
  </Step>

  <Step title="Configure the cPanel server">
    Select **cPanel**, create a server, and fill in the required details.

    <img src="https://mintcdn.com/dezerx/y8vFoAhtdIIxWI9B/public/services/cpanel/step-2.png?fit=max&auto=format&n=y8vFoAhtdIIxWI9B&q=85&s=5660b8eda400d45c4f3a0a8ec8343804" alt="cPanel server configuration" width="1866" height="912" data-path="public/services/cpanel/step-2.png" />
  </Step>
</Steps>

## Configure product in DezerX Spartan

<Steps>
  <Step title="Create a cPanel product">
    Go to **Products** and create a product using the cPanel module.
  </Step>

  <Step title="Select the server and package">
    Select a server (cPanel host) and a package from the dropdown menus.

    <img src="https://mintcdn.com/dezerx/y8vFoAhtdIIxWI9B/public/services/cpanel/step-3.png?fit=max&auto=format&n=y8vFoAhtdIIxWI9B&q=85&s=21bcdb4ec165f62850e2650cf73a0687" alt="cPanel product configuration" width="1866" height="912" data-path="public/services/cpanel/step-3.png" />
  </Step>
</Steps>
