---
title: "Get WireGuard server"
method: GET
path: "/network/wireguard/server"
tags: ["Network"]
---

# Get WireGuard server

`GET /network/wireguard/server`

Retrieve the initialized WireGuard server configuration and runtime status

## Response `200`

Success

- GithubComAlchemillahqSylveInternalAPIResponseGithubComAlchemillahqSylveInternalDbModelsNetworkWireGuardServer
  - `data` GithubComAlchemillahqSylveInternalDbModelsNetworkWireGuardServer
    - `addresses` string[]
    - `allowWireGuardPort` boolean
    - `createdAt` string
    - `enabled` boolean
    - `id` integer
    - `lastHandshake` string
    - `masqueradeIPv4Interface` string
    - `masqueradeIPv6Interface` string
    - `metric` integer
    - `mtu` integer
    - `peers` GithubComAlchemillahqSylveInternalDbModelsNetworkWireGuardServerPeer[]
      - `clientIPs` string[]
      - `createdAt` string
      - `enabled` boolean
      - `id` integer
      - `lastHandshake` string
      - `name` string
      - `persistentKeepalive` boolean
      - `preSharedKey` string
      - `privateKey` string
      - `publicKey` string
      - `routableIPs` string[]
      - `routeIPs` boolean
      - `rx` integer
      - `tx` integer
      - `updatedAt` string
      - `wireguardServerId` integer
    - `port` integer
    - `privateKey` string
    - `publicKey` string
    - `restartedAt` string
    - `rx` integer
    - `tx` integer
    - `updatedAt` string
    - `uptime` integer
  - `error` string
  - `message` string
  - `status` string

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `500` — Internal Server Error
- `503` — Service Unavailable

---

[API](https://skmtc.net/alchemillahq/apis/sylve-api.md) · [All operations](https://skmtc.net/alchemillahq/apis/sylve-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/alchemillahq/sylve-api/revisions/7a7bea85004e/schema)
