VPC API
Private networking (VPCs and peers)
REST API endpoints for VPC. 8 operations.
List VPCs
GET /v1/vpcReturns all VPCs belonging to the caller's project.
Auth: Bearer API key
Responses
| Status | Description |
|---|---|
200 | All VPCs for the caller's project |
401 | Missing or invalid credentials |
403 | Token lacks the vpc:read scope |
500 | Internal error |
operationId: listVpcs
Create a VPC
POST /v1/vpcProvisions a VPC for the caller's project. Currently returns 501 — enforcement and durable storage are a planned capability.
Auth: Bearer API key
Request body
application/json (required) — schema CreateVpcBody.
Responses
| Status | Description |
|---|---|
201 | VPC created |
401 | Missing or invalid credentials |
403 | Token lacks the vpc:write scope |
500 | Internal error |
501 | VPC provisioning not yet implemented |
operationId: createVpc
Delete a VPC
DELETE /v1/vpc/{id}Removes a VPC and its peers by id.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | VPC id (UUID) |
Responses
| Status | Description |
|---|---|
200 | VPC deleted |
401 | Missing or invalid credentials |
403 | Token lacks the vpc:write scope |
404 | VPC not found |
500 | Internal error |
operationId: deleteVpc
Get a VPC
GET /v1/vpc/{id}Returns a single VPC by id.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | VPC id (UUID) |
Responses
| Status | Description |
|---|---|
200 | The VPC |
401 | Missing or invalid credentials |
403 | Token lacks the vpc:read scope |
404 | VPC not found |
500 | Internal error |
operationId: getVpc
Get a VPC's config
GET /v1/vpc/{id}/configReturns the rendered VPN client configuration file for the VPC.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | VPC id (UUID) |
Responses
| Status | Description |
|---|---|
200 | configuration for the VPC |
401 | Missing or invalid credentials |
403 | Token lacks the vpc:read scope |
404 | VPC not found |
500 | Internal error |
operationId: getVpcConfig
List a VPC's peers
GET /v1/vpc/{id}/peersReturns all peers registered in the VPC.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | VPC id (UUID) |
Responses
| Status | Description |
|---|---|
200 | All peers in the VPC |
401 | Missing or invalid credentials |
403 | Token lacks the vpc:read scope |
404 | VPC not found |
500 | Internal error |
operationId: listVpcPeers
Add a peer to a VPC
POST /v1/vpc/{id}/peersRegisters a peer in the VPC. Currently returns 501 — peer enforcement and durable storage are a planned capability.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | VPC id (UUID) |
Request body
application/json (required) — schema AddPeerBody.
Responses
| Status | Description |
|---|---|
201 | Peer added |
401 | Missing or invalid credentials |
403 | Token lacks the vpc:write scope |
500 | Internal error |
501 | VPC provisioning not yet implemented |
operationId: addVpcPeer
Remove a peer from a VPC
DELETE /v1/vpc/{id}/peers/{peer_id}Deletes a peer from the VPC by id.
Auth: Bearer API key
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | VPC id (UUID) |
peer_id | path | string | Yes | Peer id (UUID) |
Responses
| Status | Description |
|---|---|
200 | Peer removed |
401 | Missing or invalid credentials |
403 | Token lacks the vpc:write scope |
404 | VPC or peer not found |
500 | Internal error |
operationId: removeVpcPeer