cPanel Sub Domain API

The SubDomain 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 /SubDomain/addsubdomain Create a subdomain · Create subdomain #
Ask an LLM
“How do I create a subdomain on my cPanel account?”
“Can I set a custom document root when creating a subdomain?”
Tell an agent
Create subdomain {domain} on {rootdomain}.
Add subdomain {domain} to {rootdomain} with document root {dir}.
GET /SubDomain/delsubdomain Remove a subdomain · Remove a subdomain #
Ask an LLM
“How do I remove a subdomain from my cPanel account?”
“Does removing a subdomain also delete its document root files?”
Tell an agent destructive · confirm first
Remove the subdomain {domain}.
Delete subdomain {domain} with dots removed from its label.
GET /SubDomain/getreservedsubdomains List reserved subdomain names · List the reserved subdomain names #
Ask an LLM
“Which subdomain names are reserved and I can't create?”
“What labels can't be used as subdomain names?”
Tell an agent
List the reserved subdomain names.
Show which subdomain labels are reserved.
GET /SubDomain/listsubdomains List subdomains on the account · List the subdomains #
Ask an LLM
“What subdomains exist on my cPanel account?”
“Can I list only subdomains matching a pattern?”
Tell an agent
List all subdomains on my account.
List subdomains matching {regex}.
GET /SubDomain/validregex Get the subdomain validation pattern · Return the subdomain validation pattern #
Ask an LLM
“What pattern does a subdomain label have to follow?”
“How do I validate a subdomain name before creating it?”
Tell an agent
Get the subdomain validation pattern.
Show the regular expression used to validate subdomain labels.

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-sub-domain-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-sub-domain-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 Sub Domain 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 (43 KB total) ---
# Full source: https://artifacts.apis.io/cpanel/openapi/cpanel-sub-domain-api-openapi.yml