Skip to documentation
DocumentationAPI referenceCreate a private network
POSTBearer token

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
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
JSON
{
  "_id": "507f1f77bcf86cd799439011",
  "name": "my-network",
  "region": "EU",
  "cidr": null,
  "dataCenter": null,
  "capacity": null,
  "deviceCount": 0,
  "version": 0,
  "source": "local",
  "verification": "unknown"
}

Parameters

nameJSON body · Required

string

Display name.

regionJSON body · Required

string

Provider region code.

requestKeyJSON body · Required

string

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.

_idstring

Platform identifier, not a supplier identifier.

namestring

Stored local snapshot value, not verified live supplier state.

regionstring

Stored local snapshot value, not verified live supplier state.

dataCenterstring | null

Stored local snapshot value, not verified live supplier state.

cidrstring | null

Private network CIDR, or null before the first allocation.

deviceCountinteger

Current local count of network members, including unresolved associations. Reconciled hourly; it may be temporarily stale.

capacityinteger | null

Actual capacity, or null before the first allocation.

versioninteger

Stored local snapshot value, not verified live supplier state.

checkedAtstring | null

Snapshot 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.