New Feature: API Key Access for /api/wireguard_status/! #15
eduardogsilva
announced in
Announcements
Replies: 1 comment
-
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey everyone,
I've got some good news! You can now access
/api/wireguard_status/
using an API key. This makes it easier to connect our project with other systems for things like billing or monitoring.Generating an API Key:
cat /proc/sys/kernel/random/uuid > /var/lib/docker/volumes/wireguard_webadmin_wireguard/_data/api_key
cat /proc/sys/kernel/random/uuid > /etc/wireguard/api_key
Remember, your
api_key
should be a valid UUID.Accessing the API with the Key:
Once you have your API key, you can access the API by appending it to the URL like so:
Disabling the API Key:
If you ever need to disable your API key, you can generate a new one or simply delete the
api_key
file.I decided to make this feature public while working on an integration myself. Feel free to use it and share any cool stuff you do with it. Can't wait to see what you come up with!
Cheers!
Beta Was this translation helpful? Give feedback.
All reactions