Upgraded to 0.13.2, don't rest api

How now to get access to the api?

https://docs.syncthing.net/dev/rest.html

it is not clear how to get X-API-Key.

root@debian:/tmp# wget -c "http://127.0.0.1:8384/rest/system/config"
--2016-05-24 14:30:23--  http://127.0.0.1:8384/rest/system/config
Connecting to 127.0.0.1:8384... connected.
HTTP request sent, awaiting response... 403 Forbidden
2016-05-24 14:30:23 ERROR 403: Forbidden.

root@debian:/tmp# curl -X GET -H "X-API-Key: ......" http://127.0.0.1:8384/rest/system/config
....
root@debian:/tmp#

You need to access the web ui and check the settings dialog to get the Api key.

I want to automate the configuration.

ansible

How, then, reads the web interface settings?

You can specify the API key you want from the command line, or parse the config.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.