Docs

Search documentation

Console
Browse API reference

Create network

POST/v1/projects/{project_id}/networks

The network was created.

Request

cURL
curl --fail-with-body --silent --show-error \
  --request POST \
  --url "https://api.tachora.ai/v1/projects/${TACHORA_PROJECT_ID}/networks" \
  --header "Authorization: Bearer ${TACHORA_API_KEY}" \
  --header 'Content-Type: application/json' \
  --data-binary @request.json

Set TACHORA_API_KEY and any resource IDs in your shell before running the command. Put your JSON payload in request.json.

Path parameters

project_idstringRequired

Headers

Idempotency-Keystring
  • Min length 1
  • Max length 255

JSON body

cidrstringRequired
  • Min length 9
  • Max length 18
  • Example "10.0.0.0/16"
namestringRequired

Lowercase letters, digits and hyphens; starts with a letter; unique within its parent.

  • Pattern ^[a-z][a-z0-9-]{0,62}$
  • Example "chat-prod"
regionstringRequired
  • Min length 1
  • Max length 63

Responses

201

The network was created.

400

The request is malformed or a field is invalid (invalid_argument).

401

Missing, invalid, expired or revoked credentials, or an API key whose creator no longer has access (unauthenticated).

403

Authenticated but not allowed (permission_denied), including users outside the sign-in allowlist.

404

The resource does not exist or the caller cannot see it (not_found).

409

The request conflicts with current state (conflict), such as a duplicate name.

422

The Idempotency-Key was already used with a different request (idempotency_key_reused).

201 JSON response fields
cidrstringRequired

A private IPv4 range.

  • Example "10.0.0.0/16"
created_atstring · date-timeRequired
idstringRequired
  • Example "net_01jd3v7k8m0000000000000000"
namestringRequired

Lowercase letters, digits and hyphens; starts with a letter; unique within its parent.

  • Pattern ^[a-z][a-z0-9-]{0,62}$
  • Example "chat-prod"
project_idstringRequired
regionstringRequired

Region code.

  • Example "us-ohio-1"
updated_atstring · date-timeRequired
400, 401, 403, 404, 409, 422 JSON response fields
errorobjectRequired
error.codestringRequired

Stable, 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
error.detailsobject[]

Per-field problems for invalid_argument.

error.details[].fieldstringRequired
error.details[].messagestringRequired
error.messagestringRequired

Human-readable explanation. Do not parse.

error.request_idstring

Echoes the X-Request-Id response header.