Authenticate
Generates a API token provided the user supplies a valid username and password combination.
Body
usernamestring · min: 3 · max: 20Required
username of the user
passwordstring · password · min: 7Required
password of the user
Responses
200
successful operation
application/json
400
user associated with token does not exist; unspecified error
application/json
401
API token is missing, invalid, or has expired; authentication failed because username and/or password were invalid or not supplied
application/json
post
/authenticatePOST /api/authenticate HTTP/1.1
Host: manymiles.app
Content-Type: application/json
Accept: */*
Content-Length: 41
{
"username": "text",
"password": "password"
}{
"code": "text",
"message": "text",
"token": "text"
}Last updated