Get email forwarding settings for a domain

Retrieve the current email forwarding configuration for a specific domain. It returns information about active rules and destinations, and an ID that may be needed for subsequent calls related to email configuration.

Query Parameters

domain string required

Headers

Accept Example
Content-Type Example

Responses

200
success boolean
timestamp string
requestId string
data object
GET https://cloud.hostup.se/api/email-forwarding
For AI assistants
cURL
curl -X GET "https://cloud.hostup.se/api/email-forwarding?domain=string" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json"
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "emailRoutingEnabled": true,
    "rules": [
      "string"
    ],
    "destinations": [
      "string"
    ],
    "catchAll": "string",
    "settings": {
      "id": "string",
      "tag": "string",
      "name": "string",
      "enabled": true,
      "created": "string",
      "modified": "string",
      "skip_wizard": true,
      "support_subaddress": true,
      "synced": true,
      "admin_locked": true,
      "status": "string",
      "errors": [
        {
          "code": "string",
          "existing": {
            "id": "string",
            "name": "string",
            "content": "string",
            "type": "string",
            "priority": 0,
            "ttl": 0
          }
        }
      ]
    },
    "mxRecords": [
      {
        "id": 0,
        "domain_id": 0,
        "name": "string",
        "type": "string",
        "content": "string",
        "ttl": 0,
        "prio": 0,
        "change_date": 0,
        "priority": 0
      }
    ]
  }
}