diff --git a/server-api/endpoints.md b/server-api/endpoints.md index 5c928f9..58179b7 100644 --- a/server-api/endpoints.md +++ b/server-api/endpoints.md @@ -11,8 +11,15 @@ All parameters are to be passed in via json, other parameters are ignored Basically every endpoint except for `/join` and `/meta` require the folowing auth data at a bare minimum. -* id: u64 -> User id | Public data -* secret: String -> sever generated token to be used for endpoint authentication +* id: u64 -> User id [ Public to the instance ] + +* jwt: String + +To get a JWT you must `POST /login` with the following: + +* id: u64 -> User id [ Public to the instance ] + +* secret: String -> Server generated password ## Chat api