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. This route manages the hosting account's mail-forwarder bindings and…
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. 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 instead. For normal forwarding send action: "forward" or omit action, plus one to twenty destination email addresses. 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
Use Authorization: Bearer <token> for API keys. Dashboard sessions may also use hostup_session.
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.
Accept Example Content-Type Example 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
· Example: ["anna@example.net"] Destination mailbox addresses for `action: "forward"`. Omit for `action: "discard"`.
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 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"
]
}