-
Notifications
You must be signed in to change notification settings - Fork 0
Auth GET
The Man edited this page Jan 26, 2022
·
2 revisions
Gets the current authentication code.
One-time use only.
URL : /api/auth/
Method : GET
Auth required : NO
Code : 200 OK
Content-Type : text/plain
Content example
abcdefghijkl
API endpoints requiring this authentication code expect the Authorization
header to be present.
Syntax is as follows:
"Authorization": "<code>"
This endpoint can only be accessed once.
Once accessed, a flag is set in EEPROM and subsequent accesses will not return the code anymore.
Instead, the endpoint will just return HTTP/403.
As such, the code must be stored immediately upon retrieval.
To see the code again, it is necessary to clear the EEPROM.
This will also generate a new code as a result.