---
title: "Add Forward Host"
method: POST
path: "/api/v1/add/fwdhost"
tags: ["Fordwarding Hosts"]
---

# Add Forward Host

`POST /api/v1/add/fwdhost`

Add a new Forwarding host to mailcow. You can chose to enable or disable spam filtering of incoming emails by specifing `filter_spam` 0 = inactive, 1 = active.

## Request body

- object
  - `filter_spam` number — 1 to enable spam filter, 0 to disable spam filter
  - `hostname` string — contains the hostname you want to add

## Response `200`

OK

- object
  - `log` unknown[] — contains request object
    - unknown
  - `msg` unknown[]
    - unknown
  - `type` 'success' | 'danger' | 'error'

## Other responses

- `401` — Unauthorized

---

[API](https://skmtc.dev/mailcow/apis/mailcow-api.md) · [All operations](https://skmtc.dev/mailcow/apis/mailcow-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/mailcow/mailcow-api/revisions/ae01d1d7886a/schema)
