Skip to main content

Auth

Request the login api to get access token. Access token should be attached for every request required auth.

Auth only takes access token from header Authorization. An example would be

Authorization: Basic accessToken

Access token will expire

  1. Created after 1 hour
  2. Used by another IP address

Login

/v0/auth/login

This takes POST only

Takes form-data, required fields: name, passwd

Returns json

{
"status": "[ok/bad]",
"token": "[token/null]"
}

Return code will always be 200

  • Login