Hosting Email Forward

/hosting-email-forward

GET

JSON response

Sample

curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/hosting-email-forward" | python -m json.tool

POST

Create a new email forward/alias.

JSON request

hosting_account string The hosting account ID for which to create the object.
local string The local part for the final email address. The account reference get’s appended.
destination string A comma seperated list of email addresses to forward the email to. This may also be local email users to enable delivery and forwarding at the same time.

JSON response

Sample

curl \
--request POST \
--user "{{api_username}}:{{api_key}}" \
--data '
    {
        "account": "ac-12345",
        "local": "myalias",
        "destination": "info@example.com,user@mydomain.com",
    }
' \
"{{api_base_url}}/hosting-email-forward" | python -m json.tool

/hosting-email-forward/{id}

GET

JSON response

Sample

curl \
--request GET \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/hosting-email-forward/{id}" | python -m json.tool

PUT

Update an existing email forward/alias.

JSON request

destination string A comma seperated list of email addresses to forward the email to. This may also be local email users to enable delivery and forwarding at the same time.

JSON response

Sample

curl \
--request PUT \
--user "{{api_username}}:{{api_key}}" \
--data '
    {
        "destination": "info@example.com,user@mydomain.com",
    }
' \
"{{api_base_url}}/hosting-email-forward/{id}" | python -m json.tool

DELETE

Sample

curl \
--request DELETE \
--user "{{api_username}}:{{api_key}}" \
"{{api_base_url}}/hosting-email-forward/{id}" | python -m json.tool