Enable or disable catch-all rules for your domain. A catch-all rule forwards emails not addressed to a specific recipient to a designated address or discards them.
Accept Example Content-Type Example action string · enum required
· Example: disable disable forward domain string required
· Example: example.com data object required data.catchAll object required data.catchAll.actionType string · enum required
· Example: drop drop forward Nullable: may be null when not applicable.
data.catchAll.enabled boolean required
· Example: false data.catchAll.id string required
· Example: 4084769a40ca4f5ebca27596096be8c1 data.catchAll.name string required
· Example: Catch-all data.catchAll.tag string required
· Example: catch-all data.message string required
· Example: Catch-all rule disabled Human-readable message.
requestId string required
· Example: 2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba Unique request identifier (UUID).
success boolean required
· Example: true True for successful responses.
timestamp string required
· Example: 2026-02-10T00:00:00.000Z ISO 8601 timestamp (UTC).
No response body
https://cloud.hostup.se/api/email-forwarding/catch-all curl -X PUT "https://cloud.hostup.se/api/email-forwarding/catch-all" \
-H "X-API-Key: YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"domain": "example.com",
"action": "disable"
}' {
"success": true,
"timestamp": "2026-02-10T00:00:00.000Z",
"requestId": "2121ae20-bd9d-41e9-aeeb-5dd1dd1a24ba",
"data": {
"message": "Catch-all rule disabled",
"catchAll": {
"id": "4084769a40ca4f5ebca27596096be8c1",
"enabled": false,
"name": "Catch-all",
"actionType": "drop",
"destination": null,
"tag": "catch-all"
}
}
} {
"domain": "example.com",
"action": "disable"
}