Skip to main content
POST
/
api
/
v2
/
auth
/
register
Register
curl --request POST \
  --url https://api.example.com/api/v2/auth/register \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>",
  "password": "<string>",
  "username": "<string>"
}
'
email
string
required
Email address for the new account.
password
string
required
Password — minimum 8 characters.
username
string
Optional display name. Auto-generated from email if omitted.

Request

curl -X POST https://neuralbox.top/api/v2/auth/register \
  -H "Content-Type: application/json" \
  -d '{"email": "user@example.com", "password": "secure_pass123", "username": "myname"}'

Response

{
  "message": "Registration successful. Check your email to verify your account.",
  "user_id": 12345
}
A verification email is sent automatically. The account is functional immediately, but some features require a verified email. See Verify Email.

Errors

CodeMeaning
409Email already registered
422Password too short or invalid email