---
title: "Expose Forward"
method: POST
path: "/apps/{app_id}/channels/{channel_id}/forward"
---

# Expose Forward

`POST /apps/{app_id}/channels/{channel_id}/forward`

## Request

- Base URL: `https://api.xhostd.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.xhostd.com/apps/{app_id}/channels/{channel_id}/forward`
- Auth: none declared

Allocate (or update) the channel's public raw-TCP endpoint.

Re-POSTing an already-exposed channel returns the same host/port with
``allow_cidrs`` replaced by the submitted list, and ``200`` instead of
``201`` — the endpoint address is stable for the life of the exposure
so tenants can hand it out.

## Path parameters

- `app_id` string, uuid, required
- `channel_id` string, uuid, required

## Headers

- `authorization` string, nullable

## Request body

- ExposeForwardRequest
  - `allow_cidrs` string[]

## Response `201`

Successful Response

- ForwardResponse
  - `channel_id` string, uuid, required
  - `channel` string, required
  - `host` string, required
  - `port` integer, required
  - `allow_cidrs` string[], required
  - `active` boolean, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/xhostd/apis/xhostd-public.md) · [All operations](https://skmtc.dev/xhostd/apis/xhostd-public/llms.txt) · [OpenAPI document](https://skmtc.dev/xhostd/apis/xhostd-public/revisions/bf439c4d1789?raw)
