Mesh networks
12 endpoints under /api/v1/mesh.
List the active organization's Networks
Responses
200 Live Network list (read-through from the shard).
Response body
networksNetwork[]requiredShow fields
namestringrequiredcidrstringrequiredrelayobjectrequiredShow fields
enabledbooleanrequired
phasestringrequiredloginServerstringoidcJoinRulesOIDCJoinRule[]requiredShow fields
namestringrequiredissuerstring · urirequiredaudiencestringrequiredsubjectPatternsstring[]requiredtagsstring[]requiredkeyTTLSecondsinteger
401 Unauthenticated.
Response body
errorstringrequired
403 Forbidden (not in the Mesh beta, or org mismatch).
Response body
errorstringrequired
404 Unknown network.
Response body
errorstringrequired
502 The shard or the Network's coordination plane is unreachable.
Response body
errorstringrequired
Create a Network
Request body
namestringrequiredcidrstringrelayobjectShow fields
enabledbooleanrequired
Responses
201 Network accepted for provisioning.
Response body
namestringrequiredcidrstringrequiredrelayobjectrequiredShow fields
enabledbooleanrequired
phasestringrequiredloginServerstringoidcJoinRulesOIDCJoinRule[]requiredShow fields
namestringrequiredissuerstring · urirequiredaudiencestringrequiredsubjectPatternsstring[]requiredtagsstring[]requiredkeyTTLSecondsinteger
401 Unauthenticated.
Response body
errorstringrequired
403 Forbidden (not in the Mesh beta, or org mismatch).
Response body
errorstringrequired
404 Unknown network.
Response body
errorstringrequired
502 The shard or the Network's coordination plane is unreachable.
Response body
errorstringrequired
Network status (read-through)
Parameters
-
networkpath string required
Responses
200 The Network, straight from the shard.
Response body
namestringrequiredcidrstringrequiredrelayobjectrequiredShow fields
enabledbooleanrequired
phasestringrequiredloginServerstringoidcJoinRulesOIDCJoinRule[]requiredShow fields
namestringrequiredissuerstring · urirequiredaudiencestringrequiredsubjectPatternsstring[]requiredtagsstring[]requiredkeyTTLSecondsinteger
401 Unauthenticated.
Response body
errorstringrequired
403 Forbidden (not in the Mesh beta, or org mismatch).
Response body
errorstringrequired
404 Unknown network.
Response body
errorstringrequired
502 The shard or the Network's coordination plane is unreachable.
Response body
errorstringrequired
Update a Network (relay toggle, OIDC join rules)
Parameters
-
networkpath string required
Request body
relayobjectShow fields
enabledbooleanrequired
oidcJoinRulesOIDCJoinRule[]Show fields
namestringrequiredissuerstring · urirequiredaudiencestringrequiredsubjectPatternsstring[]requiredtagsstring[]requiredkeyTTLSecondsinteger
Responses
200 The updated Network.
Response body
namestringrequiredcidrstringrequiredrelayobjectrequiredShow fields
enabledbooleanrequired
phasestringrequiredloginServerstringoidcJoinRulesOIDCJoinRule[]requiredShow fields
namestringrequiredissuerstring · urirequiredaudiencestringrequiredsubjectPatternsstring[]requiredtagsstring[]requiredkeyTTLSecondsinteger
401 Unauthenticated.
Response body
errorstringrequired
403 Forbidden (not in the Mesh beta, or org mismatch).
Response body
errorstringrequired
404 Unknown network.
Response body
errorstringrequired
502 The shard or the Network's coordination plane is unreachable.
Response body
errorstringrequired
Delete a Network
Tears down the coordination plane, relay, and every machine registration. Asynchronous on the shard; the record is soft-deleted for billing lineage.
Parameters
-
networkpath string required
Responses
202 Deletion accepted.
401 Unauthenticated.
Response body
errorstringrequired
403 Forbidden (not in the Mesh beta, or org mismatch).
Response body
errorstringrequired
404 Unknown network.
Response body
errorstringrequired
502 The shard or the Network's coordination plane is unreachable.
Response body
errorstringrequired
The Network's Policy (verbatim HuJSON)
Parameters
-
networkpath string required
Responses
200 The Policy document; empty policy + default=allow-all is the create-time posture.
Response body
policystringrequiredupdatedAtstringdefaultstring
401 Unauthenticated.
Response body
errorstringrequired
403 Forbidden (not in the Mesh beta, or org mismatch).
Response body
errorstringrequired
404 Unknown network.
Response body
errorstringrequired
502 The shard or the Network's coordination plane is unreachable.
Response body
errorstringrequired
Replace the Network's Policy
The verbatim HuJSON document (ADR 0038 §4). The coordination plane validates syntax/schema; a rejection returns 400 with its reason.
Parameters
-
networkpath string required
Request body
policystringrequired
Responses
200 The stored Policy.
Response body
policystringrequiredupdatedAtstringdefaultstring
400 The coordination plane rejected the document.
Response body
errorstringrequired
401 Unauthenticated.
Response body
errorstringrequired
403 Forbidden (not in the Mesh beta, or org mismatch).
Response body
errorstringrequired
404 Unknown network.
Response body
errorstringrequired
502 The shard or the Network's coordination plane is unreachable.
Response body
errorstringrequired
List the Network's Machines
Parameters
-
networkpath string required
Responses
200 Live machine list (read-through from the coordination plane).
Response body
machinesMachine[]requiredShow fields
idstringrequirednamestringrequiredaddressesstring[]requiredtagsstring[]requiredonlinebooleanrequiredlastSeenstring
401 Unauthenticated.
Response body
errorstringrequired
403 Forbidden (not in the Mesh beta, or org mismatch).
Response body
errorstringrequired
404 Unknown network.
Response body
errorstringrequired
502 The shard or the Network's coordination plane is unreachable.
Response body
errorstringrequired
List Join keys
Parameters
-
networkpath string required
Responses
200 The Network's Join keys (key material included — a Join key is a distributable machine-admission credential).
Response body
joinKeysJoinKey[]requiredShow fields
idstringrequiredkeystringrequiredtagsstring[]requiredreusablebooleanrequiredephemeralbooleanrequiredusedbooleanrequiredexpirationstringcreatedAtstring
401 Unauthenticated.
Response body
errorstringrequired
403 Forbidden (not in the Mesh beta, or org mismatch).
Response body
errorstringrequired
404 Unknown network.
Response body
errorstringrequired
502 The shard or the Network's coordination plane is unreachable.
Response body
errorstringrequired
Mint a Join key
Parameters
-
networkpath string required
Request body
tagsstring[]requiredreusablebooleanephemeralbooleanexpiresInSecondsinteger
Responses
201 The Join key + the one-command join (`tailscale up …`).
Response body
joinKeyobjectrequiredShow fields
idstringrequiredkeystringrequiredtagsstring[]requiredreusablebooleanrequiredephemeralbooleanrequiredusedbooleanrequiredexpirationstringcreatedAtstring
joinCommandstringrequired
401 Unauthenticated.
Response body
errorstringrequired
403 Forbidden (not in the Mesh beta, or org mismatch).
Response body
errorstringrequired
404 Unknown network.
Response body
errorstringrequired
502 The shard or the Network's coordination plane is unreachable.
Response body
errorstringrequired
Remove a Machine
Parameters
-
networkpath string required -
idpath string required
Responses
204 Machine removed; its agent is cut off at the next map poll.
401 Unauthenticated.
Response body
errorstringrequired
403 Forbidden (not in the Mesh beta, or org mismatch).
Response body
errorstringrequired
404 Unknown network.
Response body
errorstringrequired
502 The shard or the Network's coordination plane is unreachable.
Response body
errorstringrequired
Revoke a Join key
Expires the key so it admits no further machines. Already-joined machines are unaffected — revocation gates admission, not membership.
Parameters
-
networkpath string required
Request body
keystringrequired
Responses
204 Key expired.
401 Unauthenticated.
Response body
errorstringrequired
403 Forbidden (not in the Mesh beta, or org mismatch).
Response body
errorstringrequired
404 Unknown network.
Response body
errorstringrequired
502 The shard or the Network's coordination plane is unreachable.
Response body
errorstringrequired