]> git.lizzy.rs Git - cheatdb.git/blobdiff - app/flatpages/help/api.md
Fix API auth crash and add more error messages
[cheatdb.git] / app / flatpages / help / api.md
index 8387caafef2b564ea407cbe2c6f399875dcf3e46..2b7bacd09ed102bad82b3c9f54408fd52e7a8ca7 100644 (file)
@@ -9,6 +9,8 @@ Authentication is done using Bearer tokens:
 
 You can use the `/api/whoami` to check authentication.
 
+Tokens can be attained by visiting "API Tokens" on your profile page.
+
 ## Endpoints
 
 ### Misc
@@ -16,7 +18,7 @@ You can use the `/api/whoami` to check authentication.
 * GET `/api/whoami/` - Json dictionary with the following keys:
        * `is_authenticated` - True on successful API authentication
        * `username` - Username of the user authenticated as, null otherwise.
-       * 403 will be thrown on unsupported authentication type, invalid access token, or other errors.
+       * 4xx status codes will be thrown on unsupported authentication type, invalid access token, or other errors.
 
 ### Packages