POST

/api/auth/register

Register new account

Creates a new user account with email, password, and optional verification code.

curl -s -X POST "$BASE/api/auth/register" \
  -H "Content-Type: application/json" \
  -d '{"email": "user@example.com", "password": "secret", "code": "123456"}'

请求体

FieldTypeReqDefaultDescription
emailstringY
passwordstringY
codestringNEmail verification code (if required)

Try it out

Sign in to use your API key
Request Body
Response
Click Execute to test