syncthing-rest-api.7 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. .\" Man page generated from reStructuredText.
  2. .
  3. .TH "SYNCTHING-REST-API" "7" "September 23, 2015" "v0.11" "Syncthing"
  4. .SH NAME
  5. syncthing-rest-api \- REST API
  6. .
  7. .nr rst2man-indent-level 0
  8. .
  9. .de1 rstReportMargin
  10. \\$1 \\n[an-margin]
  11. level \\n[rst2man-indent-level]
  12. level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
  13. -
  14. \\n[rst2man-indent0]
  15. \\n[rst2man-indent1]
  16. \\n[rst2man-indent2]
  17. ..
  18. .de1 INDENT
  19. .\" .rstReportMargin pre:
  20. . RS \\$1
  21. . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
  22. . nr rst2man-indent-level +1
  23. .\" .rstReportMargin post:
  24. ..
  25. .de UNINDENT
  26. . RE
  27. .\" indent \\n[an-margin]
  28. .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
  29. .nr rst2man-indent-level -1
  30. .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
  31. .in \\n[rst2man-indent\\n[rst2man-indent-level]]u
  32. ..
  33. .SH DESCRIPTION
  34. .sp
  35. Syncthing exposes a REST interface over HTTP on the GUI port. This is used by
  36. the GUI code (JavaScript) and can be used by other processes wishing to control
  37. Syncthing. In most cases both the input and output data is in JSON format. The
  38. interface is subject to change.
  39. .SH API KEY
  40. .sp
  41. To use the POST methods, or \fIany\fP method when authentication is enabled, an API
  42. key must be set and used. The API key can be generated in the GUI, or set in the
  43. \fBconfiguration/gui/apikey\fP element in the configuration file. To use an API
  44. key, set the request header \fBX\-API\-Key\fP to the API key value. For example,
  45. \fBcurl \-X POST \-H "X\-API\-Key: abc123" http://localhost:8384/rest/...\fP can be
  46. used to invoke authenticated POST methods via \fBcurl\fP\&.
  47. .SH SYSTEM ENDPOINTS
  48. .SS GET /rest/system/config
  49. .sp
  50. Returns the current configuration.
  51. .INDENT 0.0
  52. .INDENT 3.5
  53. .sp
  54. .nf
  55. .ft C
  56. {
  57. # etc
  58. }
  59. .ft P
  60. .fi
  61. .UNINDENT
  62. .UNINDENT
  63. .SS GET /rest/system/config/insync
  64. .sp
  65. Returns whether the config is in sync, i.e. whether the running
  66. configuration is the same as that on disk.
  67. .INDENT 0.0
  68. .INDENT 3.5
  69. .sp
  70. .nf
  71. .ft C
  72. {
  73. "configInSync": true
  74. }
  75. .ft P
  76. .fi
  77. .UNINDENT
  78. .UNINDENT
  79. .SS POST /rest/system/config
  80. .sp
  81. Post the full contents of the configuration, in the same format as returned by
  82. the corresponding GET request. The configuration will be saved to disk and the
  83. \fBconfigInSync\fP flag set to false. Restart Syncthing to activate.
  84. .SS GET /rest/system/connections
  85. .sp
  86. Returns the list of current connections and some metadata associated
  87. with the connection/peer.
  88. .INDENT 0.0
  89. .INDENT 3.5
  90. .sp
  91. .nf
  92. .ft C
  93. {
  94. "connections": {
  95. "SMAHWLH\-AP74FAB\-QWLDYGV\-Q65ASPL\-GAAR2TB\-KEF5FLB\-DRLZCPN\-DJBFZAG": {
  96. "address": "172.21.20.78:22000",
  97. "at": "2015\-03\-16T21:51:38.672758819+01:00",
  98. "clientVersion": "v0.10.27",
  99. "inBytesTotal": 415980,
  100. "outBytesTotal": 396300
  101. }
  102. },
  103. "total": {
  104. "address": "",
  105. "at": "2015\-03\-16T21:51:38.672868814+01:00",
  106. "clientVersion": "",
  107. "inBytesTotal": 415980,
  108. "outBytesTotal": 396300
  109. }
  110. }
  111. .ft P
  112. .fi
  113. .UNINDENT
  114. .UNINDENT
  115. .SS GET /rest/system/discovery
  116. .sp
  117. Returns the contents of the local discovery cache.
  118. .INDENT 0.0
  119. .INDENT 3.5
  120. .sp
  121. .nf
  122. .ft C
  123. {
  124. "LGFPDIT7SKNNJVJZA4FC7QNCRKCE753K72BW5QD2FOZ7FRFEP57Q": [
  125. "192.162.129.11:22000"
  126. ]
  127. }
  128. .ft P
  129. .fi
  130. .UNINDENT
  131. .UNINDENT
  132. .SS POST /rest/system/discovery
  133. .sp
  134. Post with the query parameters \fBdevice\fP and \fBaddr\fP to add entries to
  135. the discovery cache.
  136. .INDENT 0.0
  137. .INDENT 3.5
  138. .sp
  139. .nf
  140. .ft C
  141. curl \-X POST http://127.0.0.1:8384/rest/system/discovery?device=LGFPDIT7SKNNJVJZA4FC7QNCRKCE753K72BW5QD2FOZ7FRFEP57Q\e&addr=192.162.129.11:22000
  142. # Or with the X\-API\-Key header:
  143. curl \-X POST \-\-header "X\-API\-Key: TcE28kVPdtJ8COws1JdM0b2nodj77WeQ" http://127.0.0.1:8384/rest/system/discovery?device=LGFPDIT7SKNNJVJZA4FC7QNCRKCE753K72BW5QD2FOZ7FRFEP57Q\e&addr=192.162.129.11:22000
  144. .ft P
  145. .fi
  146. .UNINDENT
  147. .UNINDENT
  148. .SS POST /rest/system/error/clear
  149. .sp
  150. Post with empty to body to remove all recent errors.
  151. .SS GET /rest/system/error
  152. .sp
  153. Returns the list of recent errors.
  154. .INDENT 0.0
  155. .INDENT 3.5
  156. .sp
  157. .nf
  158. .ft C
  159. {
  160. "errors": [
  161. {
  162. "time": "2014\-09\-18T12:59:26.549953186+02:00",
  163. "error": "This is an error string"
  164. }
  165. ]
  166. }
  167. .ft P
  168. .fi
  169. .UNINDENT
  170. .UNINDENT
  171. .SS POST /rest/system/error
  172. .sp
  173. Post with an error message in the body (plain text) to register a new
  174. error. The new error will be displayed on any active GUI clients.
  175. .SS GET /rest/system/ping
  176. .sp
  177. Returns a \fB{"ping": "pong"}\fP object.
  178. .INDENT 0.0
  179. .INDENT 3.5
  180. .sp
  181. .nf
  182. .ft C
  183. {
  184. "ping": "pong"
  185. }
  186. .ft P
  187. .fi
  188. .UNINDENT
  189. .UNINDENT
  190. .SS POST /rest/system/ping
  191. .sp
  192. Returns a \fB{"ping": "pong"}\fP object.
  193. .sp
  194. \fBNOTE:\fP
  195. .INDENT 0.0
  196. .INDENT 3.5
  197. Due to being a POST request, this method requires using an API key or CSRF token, as opposed to the GET request to the same URL.
  198. .UNINDENT
  199. .UNINDENT
  200. .SS POST /rest/system/reset
  201. .sp
  202. Post with empty body to erase the current index database and restart
  203. Syncthing. With no query parameters, the entire database is erased from disk.
  204. By specifying the \fBfolder\fP parameter with a valid folder ID, only
  205. information for that folder will be erased:
  206. .INDENT 0.0
  207. .INDENT 3.5
  208. .sp
  209. .nf
  210. .ft C
  211. $ curl \-X POST \-H "X\-API\-Key: abc123" http://localhost:8384/rest/system/reset?folder=default
  212. .ft P
  213. .fi
  214. .UNINDENT
  215. .UNINDENT
  216. .SS POST /rest/system/restart
  217. .sp
  218. Post with empty body to immediately restart Syncthing.
  219. .SS POST /rest/system/shutdown
  220. .sp
  221. Post with empty body to cause Syncthing to exit and not restart.
  222. .SS GET /rest/system/status
  223. .sp
  224. Returns information about current system status and resource usage.
  225. .INDENT 0.0
  226. .INDENT 3.5
  227. .sp
  228. .nf
  229. .ft C
  230. {
  231. "alloc": 30618136,
  232. "cpuPercent": 0.006944836512046966,
  233. "extAnnounceOK": {
  234. "udp4://announce.syncthing.net:22026": true,
  235. "udp6://announce\-v6.syncthing.net:22026": true
  236. },
  237. "goroutines": 49,
  238. "myID": "P56IOI7\-MZJNU2Y\-IQGDREY\-DM2MGTI\-MGL3BXN\-PQ6W5BM\-TBBZ4TJ\-XZWICQ2",
  239. "pathSeparator": "/",
  240. "sys": 42092792,
  241. "tilde": "/Users/jb"
  242. }
  243. .ft P
  244. .fi
  245. .UNINDENT
  246. .UNINDENT
  247. .SS GET /rest/system/upgrade
  248. .sp
  249. Checks for a possible upgrade and returns an object describing the
  250. newest version and upgrade possibility.
  251. .INDENT 0.0
  252. .INDENT 3.5
  253. .sp
  254. .nf
  255. .ft C
  256. {
  257. "latest": "v0.10.27",
  258. "newer": false,
  259. "running": "v0.10.27+5\-g36c93b7"
  260. }
  261. .ft P
  262. .fi
  263. .UNINDENT
  264. .UNINDENT
  265. .SS POST /rest/system/upgrade
  266. .sp
  267. Perform an upgrade to the newest released version and restart. Does
  268. nothing if there is no newer version than currently running.
  269. .SS GET /rest/system/version
  270. .sp
  271. Returns the current Syncthing version information.
  272. .INDENT 0.0
  273. .INDENT 3.5
  274. .sp
  275. .nf
  276. .ft C
  277. {
  278. "arch": "amd64",
  279. "longVersion": "syncthing v0.10.27+3\-gea8c3de (go1.4 darwin\-amd64 default) jb@syno 2015\-03\-16 11:01:29 UTC",
  280. "os": "darwin",
  281. "version": "v0.10.27+3\-gea8c3de"
  282. }
  283. .ft P
  284. .fi
  285. .UNINDENT
  286. .UNINDENT
  287. .SH DATABASE ENDPOINTS
  288. .SS GET /rest/db/browse
  289. .sp
  290. Returns the directory tree of the global model. Directories are always
  291. JSON objects (map/dictionary), and files are always arrays of
  292. modification time and size. The first integer is the files modification
  293. time, and the second integer is the file size.
  294. .sp
  295. The call takes one mandatory \fBfolder\fP parameter and two optional
  296. parameters. Optional parameter \fBlevels\fP defines how deep within the
  297. tree we want to dwell down (0 based, defaults to unlimited depth)
  298. Optional parameter \fBprefix\fP defines a prefix within the tree where to
  299. start building the structure.
  300. .INDENT 0.0
  301. .INDENT 3.5
  302. .sp
  303. .nf
  304. .ft C
  305. $ curl \-s http://localhost:8384/rest/db/browse?folder=default | json_pp
  306. {
  307. "directory": {
  308. "file": ["2015\-04\-20T22:20:45+09:00", 130940928],
  309. "subdirectory": {
  310. "another file": ["2015\-04\-20T22:20:45+09:00", 130940928]
  311. }
  312. },
  313. "rootfile": ["2015\-04\-20T22:20:45+09:00", 130940928]
  314. }
  315. $ curl \-s http://localhost:8384/rest/db/browse?folder=default&levels=0 | json_pp
  316. {
  317. "directory": {},
  318. "rootfile": ["2015\-04\-20T22:20:45+09:00", 130940928]
  319. }
  320. $ curl \-s http://localhost:8384/rest/db/browse?folder=default&levels=1 | json_pp
  321. {
  322. "directory": {
  323. "file": ["2015\-04\-20T22:20:45+09:00", 130940928],
  324. "subdirectory": {}
  325. },
  326. "rootfile": ["2015\-04\-20T22:20:45+09:00", 130940928]
  327. }
  328. $ curl \-s http://localhost:8384/rest/db/browse?folder=default&prefix=directory/subdirectory | json_pp
  329. {
  330. "another file": ["2015\-04\-20T22:20:45+09:00", 130940928]
  331. }
  332. $ curl \-s http://localhost:8384/rest/db/browse?folder=default&prefix=directory&levels=0 | json_pp
  333. {
  334. "file": ["2015\-04\-20T22:20:45+09:00", 130940928],
  335. "subdirectory": {}
  336. }
  337. .ft P
  338. .fi
  339. .UNINDENT
  340. .UNINDENT
  341. .sp
  342. \fBNOTE:\fP
  343. .INDENT 0.0
  344. .INDENT 3.5
  345. This is an expensive call, increasing CPU and RAM usage on the device. Use sparingly.
  346. .UNINDENT
  347. .UNINDENT
  348. .SS GET /rest/db/completion
  349. .sp
  350. Returns the completion percentage (0 to 100) for a given device and
  351. folder.Takes \fBdevice\fP and \fBfolder\fP parameters.
  352. .INDENT 0.0
  353. .INDENT 3.5
  354. .sp
  355. .nf
  356. .ft C
  357. {
  358. "completion": 0
  359. }
  360. .ft P
  361. .fi
  362. .UNINDENT
  363. .UNINDENT
  364. .sp
  365. \fBNOTE:\fP
  366. .INDENT 0.0
  367. .INDENT 3.5
  368. This is an expensive call, increasing CPU and RAM usage on the device. Use sparingly.
  369. .UNINDENT
  370. .UNINDENT
  371. .SS GET /rest/db/file
  372. .sp
  373. Returns most data available about a given file, including version and
  374. availability. Takes \fBfolder\fP and \fBfile\fP parameters.
  375. .INDENT 0.0
  376. .INDENT 3.5
  377. .sp
  378. .nf
  379. .ft C
  380. {
  381. "availability": [
  382. "I6KAH76\-66SLLLB\-5PFXSOA\-UFJCDZC\-YAOMLEK\-CP2GB32\-BV5RQST\-3PSROAU"
  383. ],
  384. "global": {
  385. "flags": "0644",
  386. "localVersion": 3,
  387. "modified": "2015\-04\-20T22:20:45+09:00",
  388. "name": "util.go",
  389. "numBlocks": 1,
  390. "size": 9642,
  391. "version": [
  392. "5407294127585413568:1"
  393. ]
  394. },
  395. "local": {
  396. "flags": "0644",
  397. "localVersion": 4,
  398. "modified": "2015\-04\-20T22:20:45+09:00",
  399. "name": "util.go",
  400. "numBlocks": 1,
  401. "size": 9642,
  402. "version": [
  403. "5407294127585413568:1"
  404. ]
  405. }
  406. }
  407. .ft P
  408. .fi
  409. .UNINDENT
  410. .UNINDENT
  411. .SS GET /rest/db/ignores
  412. .sp
  413. Takes one parameter, \fBfolder\fP, and returns the content of the
  414. \fB\&.stignore\fP as the \fBignore\fP field. A second field, \fBpatterns\fP,
  415. provides a compiled version of all included ignore patterns in the form
  416. of regular expressions. Excluded items in the \fBpatterns\fP field have a
  417. nonstandard \fB(?exclude)\fP marker in front of the regular expression.
  418. .INDENT 0.0
  419. .INDENT 3.5
  420. .sp
  421. .nf
  422. .ft C
  423. {
  424. "ignore": [
  425. "/Backups"
  426. ],
  427. "patterns": [
  428. "(?i)^Backups$",
  429. "(?i)^Backups/.*$"
  430. ]
  431. }
  432. .ft P
  433. .fi
  434. .UNINDENT
  435. .UNINDENT
  436. .SS POST /rest/db/ignores
  437. .sp
  438. Expects a format similar to the output of \fBGET\fP call, but only
  439. containing the \fBignore\fP field (\fBpatterns\fP field should be omitted).
  440. It takes one parameter, \fBfolder\fP, and either updates the content of
  441. the \fB\&.stignore\fP echoing it back as a response, or returns an error.
  442. .SS GET /rest/db/need
  443. .sp
  444. Takes one parameter, \fBfolder\fP, and returns lists of files which are
  445. needed by this device in order for it to become in sync.
  446. .INDENT 0.0
  447. .INDENT 3.5
  448. .sp
  449. .nf
  450. .ft C
  451. {
  452. # Files currently being downloaded
  453. "progress": [
  454. {
  455. "flags": "0755",
  456. "localVersion": 6,
  457. "modified": "2015\-04\-20T23:06:12+09:00",
  458. "name": "ls",
  459. "size": 34640,
  460. "version": [
  461. "5157751870738175669:1"
  462. ]
  463. }
  464. ],
  465. # Files queued to be downloaded next (as per array order)
  466. "queued": [
  467. ...
  468. ],
  469. # Files to be downloaded after all queued files will be downloaded.
  470. # This happens when we start downloading files, and new files get added while we are downloading.
  471. "rest": [
  472. ...
  473. ]
  474. }
  475. .ft P
  476. .fi
  477. .UNINDENT
  478. .UNINDENT
  479. .SS POST /rest/db/prio
  480. .sp
  481. Moves the file to the top of the download queue.
  482. .INDENT 0.0
  483. .INDENT 3.5
  484. .sp
  485. .nf
  486. .ft C
  487. curl \-X POST http://127.0.0.1:8384/rest/db/prio?folder=default&file=foo/bar
  488. .ft P
  489. .fi
  490. .UNINDENT
  491. .UNINDENT
  492. .sp
  493. Response contains the same output as \fBGET /rest/db/need\fP
  494. .SS POST /rest/db/scan
  495. .sp
  496. Request immediate rescan of a folder, or a specific path within a folder.
  497. Takes the mandatory parameter \fIfolder\fP (folder ID), an optional parameter
  498. \fBsub\fP (path relative to the folder root) and an optional parameter \fBnext\fP\&. If
  499. \fBsub\fP is omitted or empty, the entire folder is scanned for changes, otherwise
  500. only the given path (and children, in case it\(aqs a directory) is scanned. The
  501. \fBnext\fP argument delays Syncthing\(aqs automated rescan interval for a given
  502. amount of seconds.
  503. .sp
  504. Requesting scan of a path that no longer exists, but previously did, is
  505. valid and will result in Syncthing noticing the deletion of the path in
  506. question.
  507. .sp
  508. Returns status 200 and no content upon success, or status 500 and a
  509. plain text error if an error occurred during scanning.
  510. .INDENT 0.0
  511. .INDENT 3.5
  512. .sp
  513. .nf
  514. .ft C
  515. curl \-X POST http://127.0.0.1:8384/rest/db/scan?folder=default&sub=foo/bar
  516. .ft P
  517. .fi
  518. .UNINDENT
  519. .UNINDENT
  520. .SS GET /rest/db/status
  521. .sp
  522. Returns information about the current status of a folder.
  523. .sp
  524. Parameters: \fBfolder\fP, the ID of a folder.
  525. .INDENT 0.0
  526. .INDENT 3.5
  527. .sp
  528. .nf
  529. .ft C
  530. {
  531. # latest version according to cluster:
  532. "globalBytes": 13173473780,
  533. "globalDeleted": 1847,
  534. "globalFiles": 42106,
  535. # what we have locally:
  536. "localBytes": 13173473780,
  537. "localDeleted": 1847,
  538. "localFiles": 42106,
  539. # which part of what we have locally is the latest cluster version:
  540. "inSyncBytes": 13173473780,
  541. "inSyncFiles": 42106,
  542. # which part of what we have locally should be fetched from the cluster:
  543. "needBytes": 0,
  544. "needFiles": 0,
  545. # various other metadata
  546. "ignorePatterns": true,
  547. "invalid": "",
  548. "state": "idle",
  549. "stateChanged": "2015\-03\-16T21:47:28.750853241+01:00",
  550. "version": 71989
  551. }
  552. .ft P
  553. .fi
  554. .UNINDENT
  555. .UNINDENT
  556. .sp
  557. \fBNOTE:\fP
  558. .INDENT 0.0
  559. .INDENT 3.5
  560. This is an expensive call, increasing CPU and RAM usage on the device. Use sparingly.
  561. .UNINDENT
  562. .UNINDENT
  563. .SH STATISTICS ENDPOINTS
  564. .SS GET /rest/stats/device
  565. .sp
  566. Returns general statistics about devices. Currently, only contains the
  567. time the device was last seen.
  568. .INDENT 0.0
  569. .INDENT 3.5
  570. .sp
  571. .nf
  572. .ft C
  573. $ curl \-s http://localhost:8384/rest/stats/device | json
  574. {
  575. "P56IOI7\-MZJNU2Y\-IQGDREY\-DM2MGTI\-MGL3BXN\-PQ6W5BM\-TBBZ4TJ\-XZWICQ2": {
  576. "lastSeen" : "2015\-04\-18T11:21:31.3256277+01:00"
  577. }
  578. }
  579. .ft P
  580. .fi
  581. .UNINDENT
  582. .UNINDENT
  583. .SS GET /rest/stats/folder
  584. .sp
  585. Returns general statistics about folders. Currently, only contains the
  586. last synced file.
  587. .INDENT 0.0
  588. .INDENT 3.5
  589. .sp
  590. .nf
  591. .ft C
  592. $ curl \-s http://localhost:8384/rest/stats/folder | json
  593. {
  594. "folderid" : {
  595. "lastFile" : {
  596. "filename" : "file/name",
  597. "at" : "2015\-04\-16T22:04:18.3066971+01:00"
  598. }
  599. }
  600. }
  601. .ft P
  602. .fi
  603. .UNINDENT
  604. .UNINDENT
  605. .SH MISC SERVICES ENDPOINTS
  606. .SS GET /rest/svc/deviceid
  607. .sp
  608. Verifies and formats a device ID. Accepts all currently valid formats
  609. (52 or 56 characters with or without separators, upper or lower case,
  610. with trivial substitutions). Takes one parameter, \fBid\fP, and returns
  611. either a valid device ID in modern format, or an error.
  612. .INDENT 0.0
  613. .INDENT 3.5
  614. .sp
  615. .nf
  616. .ft C
  617. $ curl \-s http://localhost:8384/rest/svc/deviceid?id=1234 | json
  618. {
  619. "error": "device ID invalid: incorrect length"
  620. }
  621. $ curl \-s http://localhost:8384/rest/svc/deviceid?id=p56ioi7m\-\-zjnu2iq\-gdr\-eydm\-2mgtmgl3bxnpq6w5btbbz4tjxzwicq | json
  622. {
  623. "id": "P56IOI7\-MZJNU2Y\-IQGDREY\-DM2MGTI\-MGL3BXN\-PQ6W5BM\-TBBZ4TJ\-XZWICQ2"
  624. }
  625. .ft P
  626. .fi
  627. .UNINDENT
  628. .UNINDENT
  629. .SS GET /rest/svc/lang
  630. .sp
  631. Returns a list of canonicalized localization codes, as picked up from
  632. the \fBAccept\-Language\fP header sent by the browser.
  633. .INDENT 0.0
  634. .INDENT 3.5
  635. .sp
  636. .nf
  637. .ft C
  638. ["sv_sv","sv","en_us","en"]
  639. .ft P
  640. .fi
  641. .UNINDENT
  642. .UNINDENT
  643. .SS GET /rest/svc/report
  644. .sp
  645. Returns the data sent in the anonymous usage report.
  646. .INDENT 0.0
  647. .INDENT 3.5
  648. .sp
  649. .nf
  650. .ft C
  651. {
  652. "folderMaxFiles": 42106,
  653. "folderMaxMiB": 12563,
  654. "longVersion": "syncthing v0.10.27+5\-g36c93b7 (go1.4 darwin\-amd64 default) jb@syno 2015\-03\-16 20:43:34 UTC",
  655. "memorySize": 16384,
  656. "memoryUsageMiB": 41,
  657. "numDevices": 10,
  658. "numFolders": 4,
  659. "platform": "darwin\-amd64",
  660. "sha256Perf": 122.38,
  661. "totFiles": 45180,
  662. "totMiB": 18151,
  663. "uniqueID": "6vulmdGw",
  664. "version": "v0.10.27+5\-g36c93b7"
  665. }
  666. .ft P
  667. .fi
  668. .UNINDENT
  669. .UNINDENT
  670. .SH AUTHOR
  671. The Syncthing Authors
  672. .SH COPYRIGHT
  673. 2015, The Syncthing Authors
  674. .\" Generated by docutils manpage writer.
  675. .