---
title: "Create port forward"
method: POST
path: "/v1/network/{network_id}/port-forward"
tags: ["Networks"]
---

# Create port forward

`POST /v1/network/{network_id}/port-forward`

## Path parameters

- `network_id` string, required — ID of an network

## Request body

- object
  - `dest` string, required — Destination IP address and port pair
  - `proto` string, required — Protocol, tcp or udp

## Response `201`

Created

- NetworkPortForward — NetworkPortForward object that represents a port forwarding.
  - `dest` string, required — Destination IP address and port pair
  - `endpoint` string — Public host:port pair of the public gateway of the port forward
  - `port` integer, required — Listen port number on the public gateway
  - `port_forward_id` string, required — ID of a port forward definition
  - `proto` string, required — Protocol, tcp or udp

## Other responses

- `400` — Bad request
- `401` — Unauthorized
- `404` — Not found
- `500` — Internal server error

---

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