Skip to main content
POST
/
api
/
v1
/
auth
/
register
注册账号
curl --request POST \
  --url https://api.end.shallow.ink/api/v1/auth/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "username": "endfield_user",
  "email": "[email protected]",
  "password": "<string>",
  "code": "<string>"
}
'

Body

application/json
username
string
required

用户名

Example:

"endfield_user"

email
string<email>
required

邮箱

password
string
required

密码(≥8位,含大小写和数字)

code
string
required

邮箱验证码(6位)

Response

注册成功,返回用户信息和 Token