---
title: "POST /api/vpn-connectors/enroll"
method: POST
path: "/api/vpn-connectors/enroll"
tags: ["VpnConnectors"]
---

# POST /api/vpn-connectors/enroll

`POST /api/vpn-connectors/enroll`

## Request

- Base URL: `https://api-admin.hackgate.io` (the document declares no server; this is the origin it was published from)
- URL: `https://api-admin.hackgate.io/api/vpn-connectors/enroll`
- Auth: HTTP bearer

## Request body

- VpnConnectorEnrollRequest
  - `token` string, required

## Response `200`

OK

- VpnConnectorEnrollResponse
  - `connectorId` string, nullable
  - `profile` string, nullable
  - `heartbeatCredential` string, nullable
  - `role` string, nullable
  - `configRevision` integer
  - `networks` VpnConnectorNetworkDto[], nullable
    - `cidr` string, nullable
  - `dnsZones` VpnConnectorDnsZoneDto[], nullable
    - `zone` string, nullable
    - `resolvers` string[], nullable
  - `targets` VpnConnectorTargetDto[], nullable
    - `type` string, nullable
    - `value` string, nullable
    - `includeSubdomains` boolean
    - `protocol` string, nullable
    - `ports` string, nullable
  - `heartbeatSeconds` integer

## Changes

- **2026-09-19** `378d74580c23`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/hackgate/apis/hackgate-admin-api/changes/api/vpn-connectors/enroll/post.md)

---

[API](https://skmtc.dev/hackgate/apis/hackgate-admin-api.md) - [All operations](https://skmtc.dev/hackgate/apis/hackgate-admin-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hackgate/apis/hackgate-admin-api/revisions/4001be3c2ed0?raw)
