---
title: "Retrieve network configurations"
method: GET
path: "/network"
tags: ["Administration"]
---

# Retrieve network configurations

`GET /network`

## Request

- Base URL: `https://HOSTNAME:8887/api`
- URL: `https://HOSTNAME:8887/api/network`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/docs/network/get.ts> (a function with typed inputs; its response is checked against the schema)

Get network configurations.

## Response `200`

OK

- object
  - `web_domain` string: The web domain for PortSIP PBX
  - `private_ipv4` string: The private IPv4 of system.
  - `public_ipv4` string: The public IPv4 of system.
  - `enable_ipv6` boolean: Indicates if IPv6 would be enabled.
  - `private_ipv6` string: The private IPv6 of system.
  - `public_ipv6` string: The public IPv6 of system.
  - `primary_dns_server` string: The primary DNS server.
  - `secondary_dns_server` string: The secondary DNS server.

## Other responses

- `4XX`: Error

---

[API](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api.md) - [All operations](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/llms.txt) - [OpenAPI document](https://skmtc.dev/portsip/apis/portsip-pbx-rest-api/revisions/577415d4a3d5?raw)
