cPanel Authentication API

The Authentication module for WHM API 1.

GitHub OpenAPI

Operations 31

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /api_token_create Create a WHM API token · Create WHM API token #
Ask an LLM
“How do I generate an API token for WHM so I can call WHM API 1 functions without a password?”
“Can I limit an API token to certain privileges and set an expiration date?”
Tell an agent
Create an API token named {token_name}.
Create token {token_name} with privileges {acl} that expires at {expires_at}.
GET /api_token_get_details Look up an API token's details · Look up API token details #
Ask an LLM
“What privileges and expiration does a given API token have?”
“Can I inspect an API token's settings by its token value?”
Tell an agent
Show the details of API token {token}.
Look up the privileges assigned to token {token}.
GET /api_token_list List an account's API tokens · Return WHM API tokens #
Ask an LLM
“Which API tokens exist on my WHM account?”
“What tokens have I created for WHM API 1 calls?”
Tell an agent
List all API tokens on this account.
Show every WHM API token I've created.
GET /api_token_revoke Revoke an API token · Disable WHM API token #
Ask an LLM
“How do I disable an API token so it can no longer be used?”
“Can I revoke several API tokens by name at once?”
Tell an agent destructive · confirm first
Revoke API token {token_name}.
Disable the API token named {token_name}.
GET /api_token_update Update an API token's settings · Update WHM API token's settings #
Ask an LLM
“Can I rename an existing API token or change its privileges?”
“Is it possible to extend an API token's expiration date?”
Tell an agent
Rename API token {token_name} to {new_name}.
Set the privileges of token {token_name} to {acl}.
GET /disable_authentication_provider Disable an identity provider for a service · Disable identity provider #
Ask an LLM
“How do I turn off an external identity provider for cPanel or WHM?”
“Can I disable an identity provider on a specific service like webmail?”
Tell an agent destructive · confirm first
Disable identity provider {provider_id} on {service_name}.
Turn off the external auth provider {provider_id} for service {service_name}.
GET /disable_failing_authentication_providers Disable identity providers that failed to load · Disable identity provider modules that fail to load #
Ask an LLM
“How do I automatically disable identity providers that failed to load?”
“Can WHM disable broken external auth modules?”
Tell an agent destructive · confirm first
Disable all identity providers that failed to load.
Turn off every external authentication module that failed to start.
GET /enable_authentication_provider Enable an identity provider for a service · Enable identity provider #
Ask an LLM
“How do I turn on an external identity provider for WHM?”
“Can I enable an identity provider on a specific service like cpaneld?”
Tell an agent
Enable identity provider {provider_id} on {service_name}.
Turn on the external auth provider {provider_id} for service {service_name}.
GET /get_available_authentication_providers List available identity providers · Return available identity providers #
Ask an LLM
“Which external identity providers can I use for WHM authentication?”
“What identity providers are available across all services?”
Tell an agent
List every available external authentication provider.
Show the identity providers I can configure for WHM.
GET /get_login_url Get the login URL for a cPanel Store provider · Return cPanel Store or cPanel Market login URL #
Ask an LLM
“How do I get a login link for a cPanel Store or cPanel Market provider?”
“Can I redirect the user back to a specific URL after they log in to a store provider?”
Tell an agent
Get the login URL for {provider} that returns to {url_after_login}.
Generate a login link for cPanel Market provider {provider} returning to {url_after_login}.
GET /get_provider_client_configurations Get an identity provider's client configuration · Return identity provider client configuration #
Ask an LLM
“What client configuration values does an external identity provider use?”
“Can I read the client settings for an identity provider on a service?”
Tell an agent
Show the client configuration of identity provider {provider_id} on {service_name}.
Get the client settings for external auth provider {provider_id} on service {service_name}.
GET /get_provider_configuration_fields List an identity provider's configuration fields · Return identity provider configuration fields #
Ask an LLM
“What fields does an external identity provider need to be configured?”
“Which configuration fields does a given identity provider implement?”
Tell an agent
List the configuration fields for identity provider {provider_id} on {service_name}.
Show the setup fields required to configure external auth provider {provider_id} for {service_name}.
GET /get_provider_display_configurations Get an identity provider's login button appearance · Return identity provider login interface appearance #
Ask an LLM
“How does an external identity provider's login button look on WHM?”
“Can I read the display settings of an identity provider's login button?”
Tell an agent
Show the login button appearance for identity provider {provider_id}.
Get the display configuration of external auth provider {provider_id}'s login button.
GET /get_users_authn_linked_accounts List accounts linked to identity providers · Return accounts linked to identity providers #
Ask an LLM
“Which cPanel accounts are linked to external identity providers?”
“What accounts have an external auth provider linked to them?”
Tell an agent
List all accounts linked to external identity providers.
Show every cPanel account with an identity provider link.
GET /set_provider_client_configurations Set an identity provider's client configuration · Update identity provider client configuration #
Ask an LLM
“How do I set the client configuration values for an external identity provider?”
“Can I update an identity provider's client settings for a service?”
Tell an agent
Set the client configuration of identity provider {provider_id} on {service_name} to {configurations}.
Update external auth provider {provider_id}'s client settings on {service_name} with {configurations}.
GET /set_provider_display_configurations Set an identity provider's login button appearance · Update identity provider login interface appearance #
Ask an LLM
“How do I customize the login button appearance of an external identity provider?”
“Can I change how an identity provider's login button looks on WHM?”
Tell an agent
Set the login button appearance of identity provider {provider_id} on {service_name} to {configurations}.
Update external auth provider {provider_id}'s login button display on {service_name} with {configurations}.
GET /twofactorauth_disable_policy Disable server-wide 2FA · Disable 2FA #
Ask an LLM
“How do I turn off Two-Factor Authentication for the whole server?”
“Can I disable the 2FA security policy globally?”
Tell an agent destructive · confirm first
Disable the Two-Factor Authentication policy on this server.
Turn off 2FA for every account on the server.
GET /twofactorauth_enable_policy Enable two-factor authentication · Enable 2FA #
Ask an LLM
“How do I turn on 2FA for my server's SSH and root access?”
“Can I enable the 2FA security policy on WHM?”
Tell an agent
Enable two-factor authentication on the server.
Turn on the 2FA security policy for the WHM server.
GET /twofactorauth_generate_tfa_config Generate a 2FA secret and one-time code · Create a one-time authentication secret and code #
Ask an LLM
“How do I generate a secret and one-time password for 2FA setup?”
“Can I get an OTP auth URL for a user to set up Two-Factor Authentication?”
Tell an agent
Generate a 2FA secret and one-time code for this user.
Create a random secret and OTP auth URL for Two-Factor Authentication.
GET /twofactorauth_get_issuer Get the 2FA issuer name · Return configured issuer for current user #
Ask an LLM
“Which issuer name does the 2FA app show for my account?”
“What issuer does the current user's two-factor authentication use?”
Tell an agent
Show the configured 2FA issuer.
Get the issuer name used by my account's two-factor authentication.
GET /twofactorauth_get_tfa_config_for_user Get 2FA settings for a cPanel account · Return cPanel account 2FA data #
Ask an LLM
“Is two-factor authentication enabled on a particular cPanel account?”
“What 2FA data does a cPanel account have, including its email and team users?”
Tell an agent
Show the 2FA configuration for cPanel account {user}.
Get the 2FA settings of account {user}, including its email and team user accounts.
GET /twofactorauth_get_user_configs List cPanel accounts with 2FA enabled · Return cPanel accounts with 2FA enabled #
Ask an LLM
“Which cPanel accounts have two-factor authentication turned on?”
“Can I see every user-controlled account and whether 2FA is enabled on it?”
Tell an agent
List all user-controlled accounts with 2FA enabled.
Show the 2FA status for every cPanel account.
GET /twofactorauth_policy_status Check the 2FA policy status · Return 2FA policy status #
Ask an LLM
“Is two-factor authentication required on the server?”
“What is the current 2FA policy status for the server?”
Tell an agent
Show the 2FA policy status on the server.
Check whether two-factor authentication is enforced server-wide.
GET /twofactorauth_remove_user_config Remove 2FA settings for an account · Remove 2FA settings #
Ask an LLM
“How do I remove two-factor authentication settings from an account?”
“Does removing 2FA settings require the user to set it up again?”
Tell an agent destructive · confirm first
Remove the 2FA settings for account {user}.
Reset the two-factor authentication for {user} by removing its settings.
GET /twofactorauth_set_issuer Set the 2FA issuer name · Update 2FA issuer value #
Ask an LLM
“Can I change the issuer name shown in the 2FA app?”
“What issuer name does the system use for generating 2FA secrets and URLs?”
Tell an agent
Set the 2FA issuer to {issuer}.
Change the issuer name used for generating 2FA secrets and URLs to {issuer}.
GET /twofactorauth_set_tfa_config Set a 2FA secret and code for root or reseller · Update 2FA authentication secret and code #
Ask an LLM
“How do I set the 2FA secret and time-based code for the root or reseller account?”
“Can I assign a generated 2FA secret and TOTP to an account?”
Tell an agent
Set the 2FA secret to {secret} and TOTP {tfa_token} for the root or reseller account.
Assign the generated 2FA secret {secret} and code {tfa_token} to the root or reseller account.
POST /twofactorauth_set_tfa_config_for_user Update a cPanel account's 2FA settings · Update cPanel account's 2FA data #
Ask an LLM
“How do I update the two-factor authentication configuration for a cPanel user?”
“Can I change a cPanel account's 2FA data?”
Tell an agent
Update the 2FA configuration for the cPanel user.
Set the two-factor authentication settings for this cPanel account.
GET /validate_login_token Validate a login token and return an access token · Validate login token and return access token #
Ask an LLM
“How do I validate a login token from the cPanel Store and get an access token?”
“Can I exchange a login token for an access token after a user logs in?”
Tell an agent
Validate login token {login_token} from provider {provider} and redirect to {url_after_login}.
Exchange login token {login_token} for an access token with {provider} after login to {url_after_login}.
GET /wp_dashboard_create_api_token Create a WebPros Dashboard API token · Create API token for Dashboard #
Ask an LLM
“How do I create an API token for the WebPros Dashboard?”
“Can I restrict a WebPros Dashboard token to certain IPs and set an expiry?”
Tell an agent
Create a WebPros Dashboard API token named {token_name} with ACL {acl}.
Create a Dashboard token {token_name} with privileges {acl} that expires at {expires_at} and is limited to {whitelist_ip}.

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/cpanel:cpanel-authentication-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

cpanel-authentication-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: cs@cpanel.net
    name: WebPros International, LLC
    url: https://cpanel.net/support/
  description: WHM API.
  license:
    name: cPanel License
    url: https://cpanel.net/legal-notices/
  termsOfService: https://cpanel.net/legal-notices/
  title: WHM Authentication API
  version: 11.137.9999.106
  x-api-evangelist-provenance: 'Harvested verbatim from cPanel''s developer portal on 2026-09-05 via the MCP tool get-full-api-description at https://api.docs.cpanel.net/mcp. ONE mechanical change was made before storage: example values containing PEM private-key or certificate blocks, and AWS-access-key-shaped example strings, were replaced with REDACTED_* placeholders so the file can be stored in a public git repository without tripping secret scanning. No path, operation, parameter, schema or description was altered, added or removed.'
servers:
- description: A server running WHM.
  url: https://{host}:{port}/json-api
  variables:
    host:
      default: whm-server.tld
      description: The hostname of a server running WHM.
    port:
      default: '2087'
      description: The WHM port.
security:
- BasicAuth: []
tags:


# --- truncated at 32 KB (132 KB total) ---
# Full source: https://artifacts.apis.io/cpanel/openapi/cpanel-authentication-api-openapi.yml