Return domain's forwarders

This function lists a domain's forwarders.

Important:

When you disable the Receive Mail role, the system disables this function.

Authorizations:
query Parameters
domain
required
string <domain>

The domain.

Example: domain=example.com
regex
string

A Perl Compatible Regular Expression (PCRE) that filters the results. If you do not use this parameter, the function returns results for all of the account's filters.

Example: regex=user

Responses

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

Request samples

uapi --output=jsonpretty \
  --user=username \
  Email \
  list_forwarders \
  domain='example.com'

Response samples

Content type
application/json
{
  • "apiversion": 3,
  • "func": "list_forwarders",
  • "module": "Email",
  • "result": {
    • "data": [
      • {
        • "dest": "forwarded@example.com",
        • "forward": "user@example.com",
        • "html_dest": "forwarded@example.com",
        • "html_forward": "user@example.com",
        • "uri_dest": "forwarded%40example.com",
        • "uri_forward": "user%40example.com"
        }
      ],
    • "errors": null,
    • "messages": null,
    • "metadata": {
      • "transformed": 1
      },
    • "status": 1,
    • "warnings": null
    }
}