freechat/docs/content/structures/users.md
shockrah c896870397 Reformatting of wiki:
* Adding endpoint docs and correcting some typesetting mistakes
* Change qs params to match documentation
* Splitting up articles to geneate the sidebar links properly'
* Bad baseurl issue fixed in previous patch
2021-02-18 16:29:29 -08:00

696 B

title anchor weight
Users users 50

Personal User

If you need to get your own user data, with /users/me then the data received on success has the following fields:

Name Type
id u64
secret String
joindate i64
status i32
permissions u64

JWT

This data is retrieved after a sucessful /login hit.

Name Type
jwt String

Full Public User

Name Type
id u64
name String
joindate i64
status i32
permissions u64

For users without the USER_FETCH permission the only two fields with actual data is id and name. The other fields will be set to 0.