↪️ Use this endpoint to update (or remove) the redirect URL for an existing domain.
⚠️ This creates a pending request, same as /swap-domainand/swap-sender-name— it does not take effect immediately. Our team reviews and applies it.
POST /api/v1/swap-redirect/:old_domainold_domain (required)organization_id (required)new_redirect (required){ "new_redirect": "https://mybrand.com/landing" }new_redirect key must be present in the body — omitting it entirely returns an error.https:// is added automatically if you omit the protocol (e.g. "mybrand.com" becomes "https://mybrand.com")."") or null to remove the domain's existing redirect.POST /api/v1/swap-redirect/outreach-one.com?organization_id=recXXXXXXXXXXXXXX{
"new_redirect": "mybrand.com/landing"
}POST /api/v1/swap-redirect/outreach-one.com?organization_id=recXXXXXXXXXXXXXX{
"new_redirect": ""
}{
"message": "Redirect Swap Requested"
}new_redirect{ "error": "new_redirect is required" }{ "error": "Invalid domain format" }{ "error": "Invalid redirect format" }{ "error": "Domain not found" }{ "error": "Domain outreach-one.com is using Domain Masking, not a plain redirect -- use POST /swap-domain-masking/outreach-one.com instead" }{ "error": "Cannot use same redirect" }{ "error": "Cannot create domain swap request. Domain \"outreach-one.com\" already has a pending Redirect URL change request (Status: New Order)" }curl --location 'https://server.scaledmail.com/api/v1/swap-redirect/?organization_id=undefined' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: text/plain' \
--data '{
"new_redirect":"scaledmail.com"
}'{}