Skip to main content
POST
/
api
/
v1
/
auth
/
login
账号密码登录
curl --request POST \
  --url https://api.end.shallow.ink/api/v1/auth/login \
  --header 'Content-Type: application/json' \
  --data '
{
  "account": "<string>",
  "password": "<string>"
}
'
{
  "code": 0,
  "data": {
    "user": {},
    "access_token": "<string>",
    "refresh_token": "<string>",
    "expires_in": 900
  }
}

Body

application/json
account
string
required

用户名或邮箱

password
string
required

密码

Response

登录成功

code
integer
Example:

0

data
object