Create email forwarding for addresses on your hosting

Configure email forwarding from one address to another within your domain. This is useful for consolidating email from multiple addresses into a single inbox or directing email to an external address. The API returns an ID for subsequent calls related to the forwarding rule creation.

Headers

Accept Example
Content-Type Example

Body

required
application/json
domain string required
email string required
destination string required

Responses

200
success boolean
timestamp string
requestId string
data object
400
error string
message string
code string
timestamp string
requestId string
409
error string
message string
code string
timestamp string
requestId string
500
error string
message string
code string
timestamp string
requestId string
POST https://cloud.hostup.se/api/email-forwarding
For AI assistants
cURL
curl -X POST "https://cloud.hostup.se/api/email-forwarding" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "domain": "string",
    "email": "string",
    "destination": "string"
  }'
Response
{
  "success": true,
  "timestamp": "string",
  "requestId": "string",
  "data": {
    "rule": {
      "id": "string",
      "email": "string",
      "destination": "string",
      "enabled": true,
      "tag": "string",
      "name": "string",
      "priority": 0
    },
    "verificationSent": true,
    "destinationVerified": true,
    "message": "string"
  }
}
Request Body
{
  "domain": "string",
  "email": "string",
  "destination": "string"
}