Skip to main content
POST
/
auth
/
register
{
  "success": false,
  "error": {
    "status": 400,
    "code": "EMAIL_ALREADY_REGISTERED",
    "message": "Email already exists"
  },
  "data": null
}
Register a new user account with email and password.
email
string
required
User’s email address
password
string
required
User’s password (minimum 8 characters)
turnstileToken
string
required
Turnstile captcha token for bot protection
success
boolean
Indicates if the request was successful
data.token
string
JWT token for authenticated requests
error
object
Error details if the request failed

Example Request

curl -X POST https://api.transaction.gg/auth/register \
  -H "Content-Type: application/json" \
  -d '{
    "email": "[email protected]",
    "password": "password123",
    "turnstileToken": "captcha_token"
  }'

Example Response

{
  "success": true,
  "error": null,
  "data": {
    "token": "jwt_token"
  }
}

Error Responses

{
  "success": false,
  "error": {
    "status": 400,
    "code": "EMAIL_ALREADY_REGISTERED",
    "message": "Email already exists"
  },
  "data": null
}
{
  "success": false,
  "error": {
    "status": 400,
    "code": "VALIDATION_INVALID",
    "message": "Invalid turnstile token"
  },
  "data": null
}