LOC-17 Sort out swap file, and document {{inviteUser}}
LOC-17 Sort out swap file, and document {{inviteUser}}

 Binary files a/docs/.server-api.md.kate-swp and /dev/null differ
--- a/docs/server-api.md
+++ b/docs/server-api.md
@@ -88,6 +88,7 @@
 The value `syskey` is a decryption passphrase. The server's internal user `SYSTEM` will E2E encrypt any messages it pushes into rooms, this is the key you should use to decrypt those messages.
 
 
+
 ### closeRoom
 
 This can only be successfully called by the room's owner. `closeRoom` will close the current room, remove all associated messages, sessions and user accounts.
@@ -110,6 +111,30 @@
 
 
 
+### inviteUser
+
+Used to invite a user into the current room. Can be called by admin's and users alike (`SYSTEM` will push a message into the room to notify others of the invite)
+
+    {
+        "action":"inviteUser",
+        "payload": {    
+                    "roomName": "[name of room]",
+                    "user": user,
+                    "invite": [user to invite],
+                    "pass": [new users pass]
+                    "sesskey": sessionkey
+        }
+    }
+
+When inviting a user, we need to specify their username as `invite` and their authentication password as `pass`
+
+*Response*
+
+If successful, the value of `status` will be `ok`. `SYSTEM` will also push a message into the room that `user` invited `invite`
+
+
+    
+    
 
 ### leaveRoom