v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Mime
Mime Type Management

Return web server's MIME types

This function lists all of Apache's MIME types.

Note:

This function does not list PHP versions with MIME types when the user or domain enables PHP-FPM. The system displays only custom MIME types.

Important:

When you disable the Web Server role, the system disables this function.

get/Mime/list_mime

Query parameters

type'system' | 'user' required
Example:user

The MIME types to list.

  • system — List the Apache system MIME types.
  • user — List the Apache user MIME types.

Response

HTTP Request was successful.

apiversioninteger

The version of the API.

funcstring

The name of the method called.

modulestring

The name of the module called.

Example response

{
  "apiversion": 3,
  "func": "list_mime",
  "module": "Mime",
  "result": {
    "data": [
      {
        "extension": ".foo",
        "origin": "user",
        "type": "application/foo"
      }
    ],
    "metadata": {
      "transformed": 1
    },
    "status": 1
  }
}