Skip to main content
POST
/
api
/
v1
/
auth
/
login
Login
curl --request POST \
  --url https://api.example.com/api/v1/auth/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "<string>",
  "password": "<string>"
}
'
{
  "access_token": "<string>",
  "refresh_token": "<string>",
  "user": {
    "id": 123,
    "name": "<string>",
    "is_admin": true,
    "is_playing": true,
    "robot_ip": "<string>"
  },
  "token_type": "bearer"
}

Body

application/json
username
string
required
password
string
required

Response

Successful Response

access_token
string
required
refresh_token
string
required
user
UserBrief · object
required
token_type
string
default:bearer