Browse API reference
List subnets
GET
/v1/networks/{network_id}/subnetsA page of the network's subnets.
Request
curl --fail-with-body --silent --show-error \
--request GET \
--url "https://api.tachora.ai/v1/networks/${TACHORA_NETWORK_ID}/subnets" \
--header "Authorization: Bearer ${TACHORA_API_KEY}"Set TACHORA_API_KEY and any resource IDs in your shell before running the command.
Path parameters
network_idstringRequired- Example
"net_01jd3v7k8m0000000000000000"
- Example
Query parameters
limitinteger- Default
20 - Minimum
1 - Maximum
100
- Default
cursorstringThe
next_cursorfrom the previous page.
Responses
200A page of the network's subnets.
401Missing, invalid, expired or revoked credentials, or an API key whose creator no longer has access (
unauthenticated).403Authenticated but not allowed (
permission_denied), including users outside the sign-in allowlist.404The resource does not exist or the caller cannot see it (
not_found).
200 JSON response fields
dataobject[]Requireddata[].cidrstringRequired- Example
"10.0.1.0/24"
- Example
data[].created_atstring · date-timeRequireddata[].gateway_ipstringRequired- Example
"10.0.1.1"
- Example
data[].idstringRequired- Example
"snet_01jd3v7k8m0000000000000000"
- Example
data[].namestringRequiredLowercase letters, digits and hyphens; starts with a letter; unique within its parent.
- Pattern
^[a-z][a-z0-9-]{0,62}$ - Example
"chat-prod"
- Pattern
data[].network_idstringRequireddata[].project_idstringRequireddata[].updated_atstring · date-timeRequirednext_cursorstring
401, 403, 404 JSON response fields
errorobjectRequirederror.codestringRequiredStable, machine-readable error code.
- Values
invalid_argument, unauthenticated, permission_denied, not_found, conflict, billing_setup_required, idempotency_key_reused, internal, unavailable, rate_limited, insufficient_capacity, quota_exceeded, subnet_full, resource_in_use, not_implemented
- Values
error.detailsobject[]Per-field problems for
invalid_argument.error.details[].fieldstringRequirederror.details[].messagestringRequirederror.messagestringRequiredHuman-readable explanation. Do not parse.
error.request_idstringEchoes the
X-Request-Idresponse header.