> ## Documentation Index
> Fetch the complete documentation index at: https://altostrat.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Fetch a VPN client configuration

> Returns the VPN client configuration for a share token. The portal calls this endpoint with the share token in the bearer `Authorization` header.



## OpenAPI

````yaml /api/en/managed-vpn.yaml get /vpn/client
openapi: 3.0.3
info:
  title: Altostrat Managed VPN API
  version: 1.0.0
  description: >-
    Manage SDX managed VPN instances, peers, site subnets, regions, and
    user-facing client configuration through the public `/vpn` gateway path.
servers:
  - url: https://v1.api.altostrat.io
    description: Altostrat Production API
security: []
tags:
  - name: Instances
    description: Manage VPN instances, which are the core server deployments.
  - name: Peers
    description: Manage peers, which are the clients and sites connecting to an instance.
  - name: Utilities
    description: Helper endpoints for retrieving supplementary data like server regions.
  - name: Client Configuration
    description: Retrieve user-facing VPN client configuration bundles.
paths:
  /vpn/client:
    get:
      tags:
        - Client Configuration
      summary: Fetch a VPN client configuration
      description: >-
        Returns the VPN client configuration for a share token. The portal calls
        this endpoint with the share token in the bearer `Authorization` header.
      operationId: getVpnClientConfiguration
      responses:
        '200':
          description: The client configuration payload.
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
            text/plain:
              schema:
                type: string
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
      security:
        - BearerAuth: []
components:
  responses:
    Unauthorized:
      description: Authentication is missing or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: The requested VPN resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    ErrorResponse:
      type: object
      properties:
        type:
          type: string
          description: A broad category for the error (e.g., 'invalid_request_error').
          example: invalid_request_error
        code:
          type: string
          description: A short, unique string identifying the specific error.
          example: parameter_missing
        message:
          type: string
          description: A human-readable description of what went wrong.
          example: The 'name' parameter is required for this request.
        doc_url:
          type: string
          description: >-
            A direct link to the documentation page for this specific error
            code.
          example: https://docs.altostrat.io/errors/parameter_missing
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Enter your bearer token in the format: Bearer {token}'

````