Create a private network
/api/v1/networks/create
Create a free private network in an available region without purchasing a server. The IP range and capacity are assigned from regional stock when the first server joins.
Before you call
Keep the same requestKey after an uncertain response to avoid creating a duplicate network.
Request example
curl "https://tovahub.com/api/v1/networks/create" -X POST \
-H "Authorization: Bearer $TOVAHUB_TOKEN" \
-H "Content-Type: application/json" \
--data '{
"name": "my-server",
"region": "EU",
"requestKey": "docs_example_001"
}'Examples only. No requests are sent from this page.
Illustrative response
{
"_id": "507f1f77bcf86cd799439011",
"name": "my-network",
"region": "EU",
"cidr": null,
"dataCenter": null,
"capacity": null,
"deviceCount": 0,
"version": 0,
"source": "local",
"verification": "unknown"
}Parameters
nameJSON body · Requiredstring
Display name.
regionJSON body · Requiredstring
Provider region code.
requestKeyJSON body · Requiredstring
8–100 characters: A–Z, a–z, 0–9, underscore or hyphen. Keep the same key and identical input when retrying the same operation.
Response
HTTP status 200
Return the free private network saved for this request.
_idstringPlatform identifier, not a supplier identifier.
namestringStored local snapshot value, not verified live supplier state.
regionstringStored local snapshot value, not verified live supplier state.
dataCenterstring | nullStored local snapshot value, not verified live supplier state.
cidrstring | nullPrivate network CIDR, or null before the first allocation.
deviceCountintegerCurrent local count of network members, including unresolved associations. Reconciled hourly; it may be temporarily stale.
capacityinteger | nullActual capacity, or null before the first allocation.
versionintegerStored local snapshot value, not verified live supplier state.
checkedAtstring | nullSnapshot check time in ISO 8601, or null when unknown. A timestamp is not a live verification.
source"local"Always local; no live supplier request is made.
verification"unknown" | "snapshot"Local snapshot only; this does not verify current supplier state.