---
title: "POST /add-network-gateway"
method: POST
path: "/add-network-gateway"
tags: ["Network Gateway API"]
---

# POST /add-network-gateway

`POST /add-network-gateway`

## Request

- Base URL: `/api` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/add-network-gateway`
- Auth: none declared

add a network gateway

## Request body

- ObjectNetworkGateway
  - `agentIp` string
  - `agentKey` string
  - `agentVersion` string
  - `allowedNetworks` string[]
  - `createdTime` string
  - `description` string
  - `displayName` string
  - `fingerprint` string
  - `host` string
  - `isEnabled` boolean
  - `isOnline` boolean
  - `lastOnlineTime` string
  - `name` string
  - `owner` string
  - `password` string
  - `port` integer
  - `privateKey` string
  - `type` string
  - `updatedTime` string
  - `username` string

## Response `200`

The Response object

- ControllersResponse
  - `data` unknown
  - `data2` unknown
  - `msg` string
  - `status` string

## Changes

- **2026-10-22** `4bbc8278a5f4`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/casvisor/apis/casvisor-api/changes/add-network-gateway/post.md)

---

[API](https://skmtc.dev/casvisor/apis/casvisor-api.md) - [All operations](https://skmtc.dev/casvisor/apis/casvisor-api/llms.txt) - [OpenAPI document](https://skmtc.dev/casvisor/apis/casvisor-api/revisions/9c4dc1ebadbe?raw)
