Перейти к содержанию

Authentication

The API uses Bearer token authentication.

Getting a Token

Generate an API token from the application settings:

  1. Open AkumuVPN settings
  2. Go to API Access
  3. Click "Generate Token"
  4. Copy the token

Using the Token

Include the token in your requests:

curl -H "Authorization: Bearer YOUR_TOKEN" \
  http://localhost:51820/api/v1/status

Token Security

  • Tokens are shown only once — store them securely
  • Tokens can be revoked from settings
  • Default expiry: 1 year