---
title: "POST /api/internal/vpn/access-options"
method: POST
path: "/api/internal/vpn/access-options"
tags: ["VpnAccessSync"]
---

# POST /api/internal/vpn/access-options

`POST /api/internal/vpn/access-options`

## 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/internal/vpn/access-options`
- Auth: HTTP bearer

## Request body

- VpnAccessOptionsRequest
  - `clerkUserId` string, required
  - `email` string, email, required
  - `username` string, nullable

## Response `200`

OK

- VpnAccessOptionsResponse
  - `clerkUserId` string, nullable
  - `email` string, nullable
  - `environments` VpnAccessOptionDto[], nullable
    - `id` string, nullable
    - `name` string, nullable
    - `certificateAuthorityRequired` boolean
    - `certificateAuthorities` VpnCertificateAuthorityDto[], nullable
      - `id` string, nullable
      - `name` string, nullable
      - `sha256Fingerprint` string, nullable
      - `notBefore` string, date-time
      - `notAfter` string, date-time
      - `version` integer
      - `isCurrent` boolean
      - `replacedAt` string, date-time, nullable
      - `createdAt` string, date-time
  - `auditRetentionDays` integer

## Changes

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

[Operation history](https://skmtc.dev/hackgate/apis/hackgate-admin-api/changes/api/internal/vpn/access-options/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)
