// API REFERENCE
VPN API
Generated from the OpenAPI 3.1 spec. Authenticate with a bearer sk_segal_… key.
GET/api/v1/vpnList VPN networks
Responses
- 200 — Networks.
- 401 —
Example
bash
curl -X GET https://api.segalcompute.com/api/v1/vpn \
-H "Authorization: Bearer sk_segal_..."Try itSandbox · mock data
POST/api/v1/vpnCreate a VPN network
Exit nodes are export-sensitive. A restricted exit region for an uncleared organization returns 451 (ExportRestricted).
Body
| Param | Type | Required | Description |
|---|---|---|---|
| name | string | yes | |
| exitRegion | string | no | |
| multiHop | boolean | no |
Responses
- 201 — The created network.
- 401 —
- 451 —
Example
bash
curl -X POST https://api.segalcompute.com/api/v1/vpn \
-H "Authorization: Bearer sk_segal_..." \
-H "Content-Type: application/json" \
-d '{"name":"string","exitRegion":"us-west-1","multiHop":true}'Try itSandbox · mock data