Create a network

Create a private network. You can attach servers to it right away.

POST https://{availability_zone}.betterstackcloud.com/v1/networks
Authorization string required

Bearer $TOKEN

Content-Type string

application/json

name string required

The network's name.

ip_prefix string required

The IPv4 or IPv6 address the network's range starts at, such as 10.0.0.0.

ip_prefix_length integer required

The prefix length of the network's range, such as 24 for an IPv4 range of 256 addresses. Accepts 0 to 128, and must fit the address family of ip_prefix.

team_id string required

The ID of the team that owns the network. betterstack team list shows it.

201 Created
{
  "id": "example",
  "name": "Example network",
  "ip_prefix": "10.0.0.0",
  "ip_prefix_length": 16,
  "created_at": "2026-07-01T12:00:00.000Z",
  "updated_at": "2026-07-01T12:00:00.000Z",
  "team_id": "t123"
}

Returns the newly created network.

id string

The network's ID, a UUID.

name string

The network's name.

ip_prefix string

The IPv4 or IPv6 address the network's range starts at, such as 10.0.0.0.

ip_prefix_length integer

The prefix length of the network's range, such as 24 for an IPv4 range of 256 addresses. Accepts 0 to 128, and must fit the address family of ip_prefix.

created_at datetime

When the network was created. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

updated_at datetime

When the network was last updated. In ISO 8601 format, such as 2026-07-01T12:00:00Z.

team_id string

The ID of the team that owns the network. betterstack team list shows it.