cPanel Mod Security API

The ModSecurity module for UAPI.

Operations 44

GET /ModSecurity/disable_all_domains Disable ModSecurity for all domains #
GET /ModSecurity/disable_domains Disable ModSecurity for selected domains #
GET /ModSecurity/enable_all_domains Enable ModSecurity for all domains #
GET /ModSecurity/enable_domains Enable ModSecurity for selected domains #
GET /ModSecurity/has_modsecurity_installed Return ModSecurity installation status #
GET /ModSecurity/list_domains Return ModSecurity domains' status #
GET /modsec_add_rule Add staged ModSecurity rule #
GET /modsec_add_vendor Add ModSecurity vendor rules #
GET /modsec_assemble_config_text Add ModSecurity configuration file text #
GET /modsec_batch_settings Run ModSecurity batch settings #
GET /modsec_check_rule Validate ModSecurity rule #
GET /modsec_clone_rule Save ModSecurity rule copy #
GET /modsec_deploy_all_rule_changes Enable all staged ModSecurity rule changes #
GET /modsec_deploy_rule_changes Enable staged ModSecurity rule changes #
GET /modsec_deploy_settings_changes Enable staged ModSecurity configuration files #
GET /modsec_disable_rule Disable ModSecurity rule #
GET /modsec_disable_vendor Disable ModSecurity vendor rules #
GET /modsec_disable_vendor_configs Disable ModSecurity vendor configuration files #
GET /modsec_disable_vendor_updates Disable ModSecurity vendor updates #
GET /modsec_discard_all_rule_changes Remove all staged ModSecurity rule changes #
GET /modsec_discard_rule_changes Remove staged ModSecurity rule changes #
GET /modsec_edit_rule Update staged ModSecurity rule #
GET /modsec_enable_vendor Enable ModSecurity vendor rules #
GET /modsec_enable_vendor_configs Enable ModSecurity vendor configuration files #
GET /modsec_enable_vendor_updates Enable ModSecurity vendor updates #
GET /modsec_get_config_text Return ModSecurity configuration file #
GET /modsec_get_configs Return all ModSecurity configuration files #
GET /modsec_get_configs_with_changes_pending Return staged ModSecurity configuration files #
GET /modsec_get_log Return ModSecurity logs #
GET /modsec_get_rules Return ModSecurity rules #
GET /modsec_get_settings Return ModSecurity configuration #
GET /modsec_get_vendors Return ModSecurity vendors #
GET /modsec_is_installed Return ModSecurity module status #
GET /modsec_make_config_active Add ModSecurity configuration file include #
GET /modsec_make_config_inactive Remove ModSecurity configuration file include #
GET /modsec_preview_vendor Return ModSecurity vendor rule metadata #
GET /modsec_remove_rule Remove ModSecurity rule #
GET /modsec_remove_setting Remove ModSecurity configuration #
GET /modsec_remove_vendor Remove ModSecurity vendor #
GET /modsec_report_rule Export ModSecurity rule error report #
GET /modsec_set_config_text Update ModSecurity configuration file #
GET /modsec_set_setting Update ModSecurity configuration #
GET /modsec_undisable_rule Enable ModSecurity rule #
GET /modsec_update_vendor Update ModSecurity vendor ruleset #

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-modsecurity-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

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. See our Privacy Policy and Terms.

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

OpenAPI Specification

cpanel-modsecurity-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Cpanel Mod Security API
  version: 11.137.9999.106
  contact:
    email: cs@cpanel.net
    name: WebPros International, LLC
    url: https://cpanel.net/support/
  license:
    name: cPanel License
    url: https://cpanel.net/legal-notices/
  termsOfService: https://cpanel.net/legal-notices/
  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.'
  description: 'Operations tagged ModSecurity across 2 of this provider''s published API definitions: cpanel-uapi-openapi.yml, cpanel-whm-api-openapi.yml. Each path carries the servers of the definition it was published in.'
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.
- 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 (263 KB total) ---
# Full source: https://raw.githubusercontent.com/api-evangelist/cpanel/refs/heads/main/openapi/cpanel-modsecurity-api-openapi.yml