Sockets
Development
Sockets (libzt)
On this page
Encrypted P2P connections for your app or service.
This guide explains how to use the ZeroTier SDK Socket API. It is meant to be read linearly and progresses from beginner topics to advanced topics. We will start by creating a simple pingable node while skipping over most of the gritty details. Then we'll move on to a full client-server socket application where we will takFew readersZeroTier API Tokens
Development
Using API Tokens
On this page
Using ZeroTier API Tokens
Access to the ZeroTier APIs requires an authentication token. This guide describes the methods and tools needed to create and manage these tokens.
ZeroTier Central Token
To use the Central API, you need a token associated with your account. To createFew readersZeroTier Central API
Development
Central API
Central is our hosted control plane for ZeroTierOne networks.
In addition to the web-based GUI, you can use the Central API to view and manage your networks. You will need an API token for access.
You can write your own client code to connect with Central using our examples as a starting point, or use an existing integration like our Terraform providerFew readersCentral API Examples
Development
Central API
Central API Examples
On this page
In the examples below use the following placeholder variables to match commonly-needed parameters:
$ZTTOKEN: an API token associated with an active account on Central
$NWID: an active network ID
info
See the Central API Tokens guide for an explanation of how to create and manage API tokens.
Exporting Data from the Central API Few readers🗃️ Central API🗃️ Service API📄️ Using API Tokens📄️ Sockets (libzt)
Development
The ZeroTier agent and Central both provide APIs that allow you to query information about your networks and peers, as well as managing the configuration and membership of your networks.
🗃️ Central API
2 items
(/api/central/)
🗃️ Service API
1 items
(/api/service/)
📄️ Using API Tokens
Creating, managing, and using Central API tokens
(/api/tokens)
📄️ Sockets (libzt)
Link ZeroTier into your app or serviceFew readersZeroTierOne Service API
Development
Service API
The ZeroTierOne service provides an API which is used by the ZeroTierOne CLI and other clients to manage settings on your local instance of ZeroTier. This administration API is restricted to localhost by default, and requires authentication using an API token.
Once you have your local token, you can access local node, network, and peer information, as well as configuring a stanFew readers