v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
Mime
Domain Redirection

Return redirect URL for domain

This function retrieves a redirection URL for a domain.

get/Mime/get_redirect

Query parameters

domainstring domain required
Example:example.com

The domain's name.

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": "get_redirect",
  "module": "Mime",
  "result": {
    "data": {
      "redirection_enabled": 1,
      "url": "http://www.domain.com"
    },
    "status": 1
  }
}