# API: Add new List

# ipamAddSubnet

Add new parent list or sub list

# Required parameters

Parameter Description
name List name
firstip Network

# Optional parameters

Parameter Description
sub Parent list ID. Add to create sublist
type IP Type. Can be set to ipv4 or ipv6. Default - ipv4. In case sublist the value will be as a parent type
mask Mask. Can be set as as value from /0 to /32 for IPv4 and to /128 for IPv6. Default /32 or /128
gateway Gateway
fill_pool Fill IP pool. Can be set to: is_pool - all IP entries in the pool (only if mask is more than /22); empty_list - just first, last and reserved IPs; manually - IPs will be pulled manually. Default - opt_fill_pool
fillwanips Generate and assign WAN IP for each IP in this pool. Only for fill_pool = is_pool
wanip WAN Network. Only if fillwanips is added
description Description
vlan_id VLAN
dhcp_id DHCP
rdns_id Reverse DNS
ptr_template PTR template
rir RIR. can be set to ARIN or RIPE. Default - ARIN
autoprovision Mark this pool as available for automated IP provisioning
private Mark this pool as private
client_id Owner
account_id Related service

# Request

GET /admin/api.php?api_id=API_ID&api_key=API_KEY&call=ipamAddSubnet&name=NAME&firstip=FIRSTIP

# PHP Samples

# PHP Samples: Create new list with minimum filled fields

# PHP Samples: Create new list with filled all fields

# PHP Samples: Create sub list with minimum filled fields

# Response

{
    "success": true,
    "list_id": 128,
    "info": "create_list_success",
    "call": "ipamAddSubnet",
    "server_time": 1753687681
}
Last Updated: 7/30/2025, 9:11:25 AM