Skip to main content
POST
/
api
/
v1
/
vpcs
Create VPC
curl --request POST \
  --url https://api.rafftechnologies.com/api/v1/vpcs \
  --header 'Content-Type: application/json' \
  --header 'X-API-Key: <api-key>' \
  --header 'X-Project-ID: <x-project-id>' \
  --data '
{
  "name": "vpc-prod",
  "cidr": "10.0.0.0/24",
  "region": "us-east"
}
'
{
  "success": true,
  "data": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "name": "vpc-prod",
    "cidr": "10.0.0.0/24",
    "status": "active",
    "region": "us-east",
    "account_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "project_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "gateway": "10.0.0.1",
    "dns": "<string>",
    "total_ips": 256,
    "used_ips": 4,
    "gateway_type": "<string>",
    "router_public_ip": "<string>",
    "router_status": "<string>",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://docs.rafftechnologies.com/llms.txt

Use this file to discover all available pages before exploring further.

Updated May 8, 2026

Authorizations

X-API-Key
string
header
required

API key for authentication. Each key is bound to a specific account.

Headers

X-Project-ID
string<uuid>
required

Project ID. Required for all mutating operations (create, delete, power actions, resize).

Body

application/json
name
string
required

VPC name.

Required string length: 1 - 64
Example:

"vpc-prod"

cidr
string
required

CIDR block. Must not overlap with other VPCs in the account. See GET /api/v1/vpcs/cidr-suggestions for non-overlapping options.

Pattern: ^([0-9]{1,3}\.){3}[0-9]{1,3}/[0-9]{1,2}$
Example:

"10.0.0.0/24"

region
enum<string>

Region for the VPC. Defaults to us-east.

Available options:
us-east
Example:

"us-east"

Response

VPC created

success
boolean
data
object

A virtual private cloud (VPC).

Last modified on May 8, 2026