I need information about the API (wireguard)

The api documentation website has been down for some time, but I need to know how I can activate or deactivate a wireguard client via the api in the version 3.17.

I’d appreciate it if someone helps me with this!

Since Version 3.17 should be deprecated and the API is more or less just HTTP requests instead of a real API … isn’t the usage of SSH an option for you?

How could I do this via ssh?

Needs definitely a bit of more complex scripting, but you should utilize uci for it:

Maybe you can just get the APIs from your browser when you operate the UI.

1 Like