cPanel Mailboxes API

The Mailboxes 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 /Mailboxes/expunge_mailbox_messages Mark messages in a mailbox as deleted · Delete selected messages in mailbox #
Ask an LLM
“How do I delete messages matching a Dovecot query in a mailbox?”
“Can I remove only certain messages from a mailbox and keep the rest?”
Tell an agent destructive · confirm first
Mark messages matching {query} in mailbox {mailbox} on {account} as deleted.
Delete all messages in {mailbox} for {account} that match {query}.
GET /Mailboxes/expunge_messages_for_mailbox_guid Mark messages as deleted in a mailbox · Delete selected messages in mailbox by GUID #
Ask an LLM
“How do I permanently remove selected messages from a Roundcube mailbox?”
“Can I delete messages matching a search in a mailbox by its GUID?”
Tell an agent
Mark messages matching {query} as deleted in mailbox {mailbox_guid} of {account}.
Remove messages in mailbox {mailbox_guid} for {account}.
GET /Mailboxes/get_mailbox_status_list Get mailbox sizes and GUIDs · Return cPanel account's mailbox status #
Ask an LLM
“What is the size of each mailbox folder for my account?”
“Can I get the GUID for each mailbox folder?”
Tell an agent
Show mailbox status for {account}.
List mailbox sizes and GUIDs for {account}.
GET /Mailboxes/has_utf8_mailbox_names Check if mailbox names use UTF-8 · Return if cPanel account's mailboxes use UTF-8 #
Ask an LLM
“Are my mailbox names currently encoded in UTF-8?”
“How can I tell whether my mailbox names use UTF-8?”
Tell an agent
Check whether mailbox names use UTF-8 for {user}.
Tell me if mailbox names are UTF-8 encoded.
GET /Mailboxes/set_utf8_mailbox_names Turn UTF-8 mailbox names on or off in Webmail · Enable or disable Webmail mailbox UTF-8 encoding #
Ask an LLM
“How do I get non-ASCII mailbox names to display correctly in Roundcube?”
“Can I turn on UTF-8 encoded mailbox names for my cPanel email accounts?”
Tell an agent
Set UTF-8 encoded mailbox names in Roundcube Webmail to {enabled}.
Enable UTF-8 mailbox names in Webmail by setting enabled to {enabled}.

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-mailboxes-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-mailboxes-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 Mailboxes 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 (48 KB total) ---
# Full source: https://artifacts.apis.io/cpanel/openapi/cpanel-mailboxes-api-openapi.yml