/api/v2/shared-hosting/{accountId}/email-forwarders Create an email forwarder or discard/noreply address inside a shared-hosting account.
Use this route only when the source domain is attached to this hosting account; verify that with GET /api/v2/shared-hosting/{accountId}/domains before writing.
Send the source address as localPart plus domain; if the caller gives info@example.com, split it into localPart: "info" and domain: "example.com".
This route manages the hosting account's mail-forwarder bindings and does not enable or replace domain-level email routing.
If the customer does not have shared hosting, or this domain is not attached to the hosting account, use POST /api/v2/domains/{id}/email-forwarding for source-address rules or PUT /api/v2/domains/{id}/email-forwarding for catch-all forwarding.
There is no /api/v2/shared-hosting/{accountId}/catch-all route.
For normal forwarding send action: "forward" or omit action, plus one to twenty destination email addresses in destinations.
A singular destination string is accepted only as a compatibility alias for one recipient; prefer destinations.
For a noreply/drop mailbox send action: "discard" and omit destinations; do not send cPanel-specific values such as :blackhole: or /dev/null.
write:hostingconsole:services
Authenticate with an API key in the Authorization: Bearer <token> header.
accountId string required
Example: acct_01hxa3b4c5d6e7f8g9h0j1k2m3 Public shared-hosting account ID. Get it from GET /api/v2/shared-hosting data[].id. Do not invent this value; use the exact ID returned by the referenced API response.
Authorization Bearer <token> Accept application/json Content-Type application/json localPart string required
· Example: info Address part before @. For info@example.com, send info.
domain string required
· Example: example.com Hosted domain attached to this shared-hosting account. Get it from GET /api/v2/shared-hosting/{accountId}/domains.
destinations array<string>
· Example: ["anna@example.net"] Destination mailbox addresses for action: "forward". Omit for action: "discard".
destination string deprecated
· Example: anna@example.net Compatibility alias for a single destination address. Prefer destinations: ["anna@example.net"]; do not send both fields.
action string · enum
· Example: forward Use forward to send mail to destinations. Use discard for noreply/drop behavior; the API translates this to the control-panel discard mode.
forward discard id string required
· Example: efwd_01hxa3b4c5d6e7f8g9h0j1k2m3 email string required domain string required localPart string required action string · enum required forward discard destinations array<string> required type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object Retry-After seconds plus X-RateLimit-* headers. 10 fields type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object type string
· Example: https://developer.hostup.se/errors/invalid_request title string
· Example: Validation failed status integer
· Example: 400 detail string
· Example: The request body failed validation. code string
· Example: invalid_request Stable machine-readable code. Branch on this field, not on detail.
instance string
· Example: /api/v2/orders requestId string
· Example: req_01hxa3b4c5d6e7f8g9h0j1k2m3 timestamp string
· Example: 2026-04-27T12:34:56.000Z errors array<object> Field-level validation errors when code is invalid_request.
errors[].pointer string required
· Example: /items/0/eppCode errors[].detail string required
· Example: `eppCode` is required for this transfer. errors[].code string required
· Example: missing_required extensions object https://cloud.hostup.se/api/v2/shared-hosting/{accountId}/email-forwarders curl -X POST "https://cloud.hostup.se/api/v2/shared-hosting/acct_01hxa3b4c5d6e7f8g9h0j1k2m3/email-forwarders" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"localPart": "info",
"domain": "example.com",
"action": "forward",
"destinations": [
"anna@example.net"
]
}' {
"id": "efwd_01hxa3b4c5d6e7f8g9h0j1k2m3",
"email": "info@example.com",
"domain": "example.com",
"localPart": "info",
"action": "forward",
"destinations": [
"anna@example.net"
]
} {
"localPart": "info",
"domain": "example.com",
"action": "forward",
"destinations": [
"anna@example.net"
]
}