Heroku Private Spaces VPN API

The Private Spaces VPN API from Heroku — 2 operation(s) for private spaces vpn.

GitHub OpenAPI

Operations 5

POST /spaces/{space_identity}/vpn-connections Create #
GET /spaces/{space_identity}/vpn-connections List #
DELETE /spaces/{space_identity}/vpn-connections/{vpn-connection_identity} Destroy #
GET /spaces/{space_identity}/vpn-connections/{vpn-connection_identity} Info #
PATCH /spaces/{space_identity}/vpn-connections/{vpn-connection_identity} Update #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/heroku:heroku-private-spaces-vpn-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

heroku-private-spaces-vpn-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Heroku Platform Private Spaces VPN API
  version: '3'
  description: The platform API empowers developers to automate, extend and combine Heroku with other services. Converted mechanically from the provider-published JSON Hyper-Schema at https://api.heroku.com/schema.
  contact:
    name: Heroku
    url: https://devcenter.heroku.com/articles/platform-api-reference
servers:
- url: https://api.heroku.com
security:
- bearerAuth: []
tags:
- name: Private Spaces VPN
paths:
  /spaces/{space_identity}/vpn-connections:
    post:
      operationId: vpnConnectionCreate
      summary: Create
      description: Create a new VPN connection in a private space.
      tags:
      - Private Spaces VPN
      parameters:
      - name: space_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: create
      x-source: https://api.heroku.com/schema#/definitions/vpn-connection/links
      requestBody:
        content:
          application/json:
            schema:
              properties:
                name:
                  $ref: '#/components/schemas/vpn-connection/definitions/name'
                public_ip:
                  $ref: '#/components/schemas/vpn-connection/definitions/public_ip'
                routable_cidrs:
                  $ref: '#/components/schemas/vpn-connection/definitions/routable_cidrs'
              required:
              - name
              - public_ip
              - routable_cidrs
              type:
              - object
      responses:
        '201':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/vpn-connection'
    get:
      operationId: vpnConnectionList
      summary: List
      description: List VPN connections for a space.
      tags:
      - Private Spaces VPN
      parameters:
      - name: space_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: instances
      x-source: https://api.heroku.com/schema#/definitions/vpn-connection/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                items:
                  $ref: '#/components/schemas/vpn-connection'
                type:
                - array
  /spaces/{space_identity}/vpn-connections/{vpn-connection_identity}:
    delete:
      operationId: vpnConnectionDestroy
      summary: Destroy
      description: Destroy existing VPN Connection
      tags:
      - Private Spaces VPN
      parameters:
      - name: space_identity
        in: path
        required: true
        schema:
          type: string
      - name: vpn-connection_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: empty
      x-source: https://api.heroku.com/schema#/definitions/vpn-connection/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/vpn-connection'
    get:
      operationId: vpnConnectionInfo
      summary: Info
      description: Info for an existing vpn-connection.
      tags:
      - Private Spaces VPN
      parameters:
      - name: space_identity
        in: path
        required: true
        schema:
          type: string
      - name: vpn-connection_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: self
      x-source: https://api.heroku.com/schema#/definitions/vpn-connection/links
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/vpn-connection'
    patch:
      operationId: vpnConnectionUpdate
      summary: Update
      description: Update a VPN connection in a private space.
      tags:
      - Private Spaces VPN
      parameters:
      - name: space_identity
        in: path
        required: true
        schema:
          type: string
      - name: vpn-connection_identity
        in: path
        required: true
        schema:
          type: string
      x-hyper-schema-rel: update
      x-source: https://api.heroku.com/schema#/definitions/vpn-connection/links
      requestBody:
        content:
          application/json:
            schema:
              properties:
                routable_cidrs:
                  $ref: '#/components/schemas/vpn-connection/definitions/routable_cidrs'
              required:
              - routable_cidrs
              type:
              - object
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/vpn-connection'
components:
  schemas:
    vpn-connection:
      description: '[VPN](https://devcenter.heroku.com/articles/private-space-vpn-connection) provides a way to connect your Private Spaces to your network via VPN.'
      $schema: http://json-schema.org/draft-04/hyper-schema
      stability: production
      strictProperties: true
      title: Heroku Platform API - Private Spaces VPN
      type:
      - object
      definitions:
        name:
          description: VPN Name
          example: office
          type:
          - string
        public_ip:
          description: Public IP of VPN customer gateway
          example: 35.161.69.30
          type:
          - string
        routable_cidrs:
          description: Routable CIDRs of VPN
          type:
          - array
          items:
            example: 172.16.0.0/16
            type:
            - string
        id:
          description: VPN ID
          example: '123456789012'
          readOnly: true
          type:
          - string
        identity:
          anyOf:
          - $ref: '#/components/schemas/vpn-connection/definitions/id'
          - $ref: '#/components/schemas/vpn-connection/definitions/name'
        space_cidr_block:
          description: CIDR Block of the Private Space
          example: 10.0.0.0/16
          readOnly: true
          type:
          - string
        ike_version:
          description: IKE Version
          example: 1
          readOnly: true
          type:
          - integer
        tunnel:
          description: Tunnel info
          readOnly: true
          type:
          - object
          properties:
            last_status_change:
              description: Timestamp of last status changed
              example: '2016-10-25T22:09:05Z'
              type:
              - string
            ip:
              description: Public IP address for the tunnel
              example: 52.44.146.197
              type:
              - string
            customer_ip:
              description: Public IP address for the customer side of the tunnel
              example: 52.44.146.197
              type:
              - string
            pre_shared_key:
              description: Pre-shared key
              example: secret
              type:
              - string
            status:
              description: Status of the tunnel
              enum:
              - UP
              - DOWN
              example: UP
              type:
              - string
            status_message:
              description: Details of the status
              example: status message
              type:
              - string
        status:
          description: Status of the VPN
          enum:
          - pending
          - provisioning
          - active
          - deprovisioning
          - failed
          example: active
          readOnly: true
          type:
          - string
        status_message:
          description: Details of the status
          example: supplied CIDR block already in use
          readOnly: true
          type:
          - string
      properties:
        id:
          $ref: '#/components/schemas/vpn-connection/definitions/id'
        name:
          $ref: '#/components/schemas/vpn-connection/definitions/name'
        public_ip:
          $ref: '#/components/schemas/vpn-connection/definitions/public_ip'
        routable_cidrs:
          $ref: '#/components/schemas/vpn-connection/definitions/routable_cidrs'
        space_cidr_block:
          $ref: '#/components/schemas/vpn-connection/definitions/space_cidr_block'
        tunnels:
          items:
            $ref: '#/components/schemas/vpn-connection/definitions/tunnel'
          type:
          - array
        ike_version:
          $ref: '#/components/schemas/vpn-connection/definitions/ike_version'
        status:
          $ref: '#/components/schemas/vpn-connection/definitions/status'
        status_message:
          $ref: '#/components/schemas/vpn-connection/definitions/status_message'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: 'OAuth access token or API key (see https://devcenter.heroku.com/articles/platform-api-reference#authentication). Requests must send Accept: application/vnd.heroku+json; version=3.'
x-generated-from: json-hyper-schema
x-source: https://api.heroku.com/schema
x-generated: '2026-11-25'