Get SDR status

Retrieve status on domain’s split domain routing (SDR)

  • HTTP Method: GET
  • URL: https://example.domain.tld/api/v1/domains/sdr/<domain>/
  • Require authentication: Yes
  • Permission level required: MasterAdmin / DomainAdmin

Path parameters

Parameter Type Description Required
domain str Domain name Required

Response parameters

Parameter Type Description
sdr dict The SDR status object
destination_hostname str Destination hostname to relay mails to
destination_port int Destination server port
domain str Domain name
status str Status

Example request (Python)

import requests
import json
from pprint import pprint

url = "https://example.domain.tld/api/v1/domains/sdr/vonmail.com/"
r = requests.get(url, auth=("admin","long-auth_token-here"))
try:
    pprint(r.json())
except:
    print(r.text)

Example response (JSON)

{'sdr': {'destination_hostname': 'mail3.mymailcheap.com',
         'destination_port': '25',
         'domain': 'vonmail.com',
         'status': 'enabled'}}