Authenticate

Note that API tokens are only valid for 24 hours after time of generation.

Get API token

post

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
post
/authenticate
POST /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