Skip to main content
POST
Create a Network Route

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
network_id
string<uuid>
required

The id of the Network to add the route to.

Example:

"91446ee3-5b1c-4f0e-8d2a-6c7e9b0a1f24"

cidr
string
required

The IPv4 subnet to route, such as a subnet behind the tunnel. It must be a canonical CIDR. Default, loopback, link-local, multicast, and shared address space (100.64.0.0/10) ranges are rejected. So are ranges that overlap the Tailscale Subnet Router ranges, 172.27.254.0/24 and 198.18.0.0/20, or a subnet already on the Network.

Example:

"10.20.0.0/16"

next_hop
object
required

Where the Network sends traffic for cidr.

Response

Created.

data
NetworkRoute · object