cPanel Two Factor Auth API

The TwoFactorAuth module for UAPI.

GitHub OpenAPI

Operations 5

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 /TwoFactorAuth/generate_user_configuration Generate a 2FA setup code · Create 2FA authentication code #
Ask an LLM
“How do I get the code to set up two-factor authentication?”
“Can I generate a new 2FA secret for my account?”
Tell an agent
Generate a 2FA authentication code.
Create a setup code for two-factor authentication.
GET /TwoFactorAuth/get_team_user_configuration Get a team user's 2FA settings · Return team user 2FA config #
Ask an LLM
“What two-factor authentication settings does a team user have?”
“Can I check a team member's 2FA config?”
Tell an agent
Show the 2FA configuration for team user {team_user}.
Get two-factor settings for {team_user}.
GET /TwoFactorAuth/get_user_configuration Get my account's 2FA settings · Return cPanel account 2FA config #
Ask an LLM
“Is two-factor authentication enabled on my account?”
“What are my own 2FA configuration settings?”
Tell an agent
Show my account's two-factor authentication settings.
Get my 2FA configuration.
GET /TwoFactorAuth/remove_user_configuration Remove my 2FA configuration · Remove 2FA config #
Ask an LLM
“How do I turn off two-factor authentication on my account?”
“Can I delete the 2FA setup from my account?”
Tell an agent destructive · confirm first
Remove my two-factor authentication configuration.
Disable 2FA on my account.
GET /TwoFactorAuth/set_user_configuration Save a 2FA setup with a token · Save 2FA config #
Ask an LLM
“How do I finish setting up two-factor authentication with a TOTP token?”
“What do I need to save my 2FA secret and token?”
Tell an agent
Save 2FA secret {secret} with token {tfa_token}.
Complete two-factor setup using token {tfa_token} and secret {secret}.

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-two-factor-auth-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-two-factor-auth-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: cs@cpanel.net
    name: WebPros International, LLC
    url: https://cpanel.net/support/
  description: UAPI accesses the cPanel interface's features. Use this API to access and modify cPanel account data and settings.
  license:
    name: cPanel License
    url: https://cpanel.net/legal-notices/
  termsOfService: https://cpanel.net/legal-notices/
  title: cPanel U Two Factor Auth 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 cPanel.
  url: https://{host}:{port}/execute
  variables:
    host:
      default: cpanel-server.tld
      description: The hostname of a server running cPanel.
    port:
      default: '2083'
      description: The cPanel port.
security:
- BasicAuth: []
tags:


# --- truncated at 32 KB (42 KB total) ---
# Full source: https://artifacts.apis.io/cpanel/openapi/cpanel-two-factor-auth-api-openapi.yml