mirror of
https://github.com/donaldzou/WGDashboard
synced 2025-02-26 05:58:47 +00:00
738 B
738 B
📖 API Document for WGDashboard
Version: v4.0
Created by: Donald Zou
🔑 How to use API Key?
Create API Key
- To request an API Key, simply login to your WGDashboard, go to Settings, scroll to the very bottom. Click the switch on the right to enable API Key.
- Click the blur Create button, set an expiry date you want or never expire, then click Done.
Use API Key in fetch()
fetch('http://server:10086', {
headers: {
'content-type': 'application/json',
'wg-dashboard-apikey': 'insert your api key here'
}
})
To use API Key, simply insert wg-dashboard-apikey
with the value of your API key into the header
in your http request.