ScalixScalix Docs

VPC API

Private networking (VPCs and peers)

REST API endpoints for VPC. 8 operations.

List VPCs

plaintext
GET /v1/vpc

Returns all VPCs belonging to the caller's project.

Auth: Bearer API key

Responses

StatusDescription
200All VPCs for the caller's project
401Missing or invalid credentials
403Token lacks the vpc:read scope
500Internal error

operationId: listVpcs

Create a VPC

plaintext
POST /v1/vpc

Provisions 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

StatusDescription
201VPC created
401Missing or invalid credentials
403Token lacks the vpc:write scope
500Internal error
501VPC provisioning not yet implemented

operationId: createVpc

Delete a VPC

plaintext
DELETE /v1/vpc/{id}

Removes a VPC and its peers by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesVPC id (UUID)

Responses

StatusDescription
200VPC deleted
401Missing or invalid credentials
403Token lacks the vpc:write scope
404VPC not found
500Internal error

operationId: deleteVpc

Get a VPC

plaintext
GET /v1/vpc/{id}

Returns a single VPC by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesVPC id (UUID)

Responses

StatusDescription
200The VPC
401Missing or invalid credentials
403Token lacks the vpc:read scope
404VPC not found
500Internal error

operationId: getVpc

Get a VPC's config

plaintext
GET /v1/vpc/{id}/config

Returns the rendered VPN client configuration file for the VPC.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesVPC id (UUID)

Responses

StatusDescription
200configuration for the VPC
401Missing or invalid credentials
403Token lacks the vpc:read scope
404VPC not found
500Internal error

operationId: getVpcConfig

List a VPC's peers

plaintext
GET /v1/vpc/{id}/peers

Returns all peers registered in the VPC.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesVPC id (UUID)

Responses

StatusDescription
200All peers in the VPC
401Missing or invalid credentials
403Token lacks the vpc:read scope
404VPC not found
500Internal error

operationId: listVpcPeers

Add a peer to a VPC

plaintext
POST /v1/vpc/{id}/peers

Registers a peer in the VPC. Currently returns 501 — peer enforcement and durable storage are a planned capability.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesVPC id (UUID)

Request body

application/json (required) — schema AddPeerBody.

Responses

StatusDescription
201Peer added
401Missing or invalid credentials
403Token lacks the vpc:write scope
500Internal error
501VPC provisioning not yet implemented

operationId: addVpcPeer

Remove a peer from a VPC

plaintext
DELETE /v1/vpc/{id}/peers/{peer_id}

Deletes a peer from the VPC by id.

Auth: Bearer API key

Parameters

NameInTypeRequiredDescription
idpathstringYesVPC id (UUID)
peer_idpathstringYesPeer id (UUID)

Responses

StatusDescription
200Peer removed
401Missing or invalid credentials
403Token lacks the vpc:write scope
404VPC or peer not found
500Internal error

operationId: removeVpcPeer