File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,12 @@ API Key
12
12
To use the REST API an API key must be set and used. The API key can be
13
13
generated in the GUI, or set in the ``configuration/gui/apikey `` element in
14
14
the configuration file. To use an API key, set the request header
15
- ``X-API-Key `` to the API key value. For example, ``curl -X POST -H
16
- "X-API-Key: abc123" http://localhost:8384/rest/... `` can be used to invoke
17
- with ``curl `` (add ``-k `` flag when using HTTPS with a Syncthing generated or self signed certificate).
15
+ ``X-API-Key `` to the API key value, or set it as a ``Bearer `` token in the
16
+ ``Authorization `` header. For example, ``curl -X POST -H "X-API-Key: abc123"
17
+ http://localhost:8384/rest/... `` or ``curl -X POST -H "Authorization: Bearer
18
+ abc123" http://localhost:8384/rest/... `` can be used to invoke with ``curl ``
19
+ (add ``-k `` flag when using HTTPS with a Syncthing generated or self signed
20
+ certificate).
18
21
19
22
One exception to this requirement is ``/rest/noauth ``, you do not need an API
20
23
key to use those endpoints. This way third-party devices and services can do
You can’t perform that action at this time.
0 commit comments