Return cPanel theme header and footer HTML

This function returns header and footer HTML. You can use this HTML to create a page with the same visual appearance as your cPanel theme.

SecurityBasicAuth
Request
query Parameters
page_title
required
string

The title of the page to wrap in the theme's headers and footers.

Example: page_title=Test
Responses
200

HTTP Request was successful.

Response Schema: application/json
apiversion
integer

The version of the API.

func
string

The name of the method called.

module
string

The name of the module called.

object
get/Chrome/get_dom
Request samples
uapi --output=jsonpretty \
  --user=username \
  Chrome \
  get_dom \
  page_title='Test'
Response samples
application/json
{
  • "apiversion": 3,
  • "func": "get_dom",
  • "module": "Chrome",
  • "result": {
    • "data": {
      • "footer": "\n<!-- The Footer HTML of the user's assigned theme -->\n</html>\n\n",
      • "header": "\n\n<!DOCTYPE html>\n\n<html lang=\"en\" dir=\"ltr\">\n<!-- The Header HTML of the user's assigned theme -->"
      },
    • "errors": null,
    • "messages": null,
    • "metadata": { },
    • "status": 1,
    • "warnings": null
    }
}