-
Notifications
You must be signed in to change notification settings - Fork 9
PostLogin
Robin B edited this page Mar 13, 2020
·
1 revision
Login route for the purpose of being able to access the admin panel page.
Admin routes can be accessed by providing an Authorization header, so this is usually not needed for anything but the actual website's browser representation.
Key | Value |
---|---|
Content-Type | application/x-www-form-urlencoded |
Key | Description | Format | Example |
---|---|---|---|
token | The auth token configured in the website settings | String | mytoken |
Key | Description | Format | Example |
---|---|---|---|
--- | ----------- | ------ | ------- |
/login
with wrong token:
Output:
{
"code": 401,
"name": "Access denied",
"message": "Invalid token provided."
}
/login
with correct token:
{
"code": 200,
"message": "Successfully logged in!"
}