Set domain redirect
set_domain_redirectChange where visitors to an active ROOT domain (and its www.) are redirected. Ask the user for the destination first. redirect_to must be an https URL (max 255 chars; a bare host like example.com means https://example.com) with no IP address, credentials, port, query, fragment or empty, . or .. path segments, and not on this domain; a trailing slash is dropped. Every visitor lands on exactly this URL. Subdomains and domains that are not active yet are refused. Repeating the same call is safe: on service_unavailable (reason zone_busy or outcome_unknown) retry the SAME call after retry_after_seconds. domain_redirect_unavailable means Mailrun no longer manages this website.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"domain": "<domain>",
"redirect_to": "<redirect_to>"
},
"name": "set_domain_redirect"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| domain | Yes | Root domain as returned by list_domains. | |
| redirect_to | Yes | The https URL visitors are sent to, e.g. https://www.example.org/welcome (a bare host means https). |