cPanel Log Manager API

The LogManager module for UAPI.

GitHub OpenAPI

Operations 6

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 /LogManager/delete_archive Delete a log archive file · Delete a log archive file #
Ask an LLM
“How do I remove an old log archive file from my logs directory?”
“Can I delete a single archived log file by name?”
Tell an agent destructive · confirm first
Delete log archive {file}.
Remove the archived log file {file} from my logs directory.
GET /LogManager/get_settings Get log archival settings · Retrieve cPanel account's log archival settings #
Ask an LLM
“What log archiving settings does my account use?”
“How long are archived logs kept before they are pruned?”
Tell an agent
Show my log archival settings.
Get the current log archive retention and pruning settings.
GET /LogManager/list_archives List archived log files · Return cPanel account's archive files list #
Ask an LLM
“Which log archive files do I have in my logs directory?”
“Can I see all the archived log files for my account?”
Tell an agent
List my archived log files.
Show every log archive file in my logs directory.
GET /LogManager/list_error_logs List a domain's PHP error logs · Return domain's PHP error logs #
Ask an LLM
“Which PHP error log files exist for one of my domains?”
“Can I see the size and last-modified date of a domain's error logs?”
Tell an agent
List the PHP error logs for {domain}.
Show error log files and metadata for {domain}.
GET /LogManager/set_settings Set log archival settings · Save cPanel account's log archive settings #
Ask an LLM
“How do I turn on log archiving and set how many days to keep logs?”
“Can I make archived logs get pruned each month?”
Tell an agent
Set log archiving to {archive_logs} and keep logs for {retention_days} days.
Prune archived logs each month by setting prune to {prune_archive}.
GET /LogManager/view_error_log Read a domain's PHP error log · Return PHP error log for a domain #
Ask an LLM
“How do I read the last few lines of a PHP error log?”
“Can I limit how many lines come back from a domain's error log?”
Tell an agent
Show the last {limit} lines of {domain}'s {file_id} error log.
Read the {file_id} PHP error log for {domain}.

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-logmanager-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-logmanager-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 Log Manager 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 (59 KB total) ---
# Full source: https://artifacts.apis.io/cpanel/openapi/cpanel-logmanager-api-openapi.yml