---
title: "Create Sender-Dependent Transports"
method: POST
path: "/api/v1/add/relayhost"
tags: ["Routing"]
---

# Create Sender-Dependent Transports

`POST /api/v1/add/relayhost`

Using this endpoint you can create Sender-Dependent Transports.

## Request body

- object
  - `hostname` string — the hostname of the smtp server with port
  - `password` string — the password for the smtp user
  - `username` string — the username used to authenticate

## 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)
