Console
Auth

Login

Authenticate a user with email and password. Returns a session token and app authorization status.

POST /api/vaneltonid/login.php
Requires Authorization: AppID:AppKey header

Request body

FieldTypeRequiredDescription
emailstringrequiredUser's email address
passwordstringrequiredUser's password
masterkeystringoptionalDevice key for multi-session support (e.g. "mobile-ios"). Each unique value keeps an independent token.

Success response 200

{
  "vaneltonid": {
    "logged": 1,
    "id": 42,
    "userkey": "abc123...",
    "email": "user@email.com",
    "username": "vanelton",
    "name": "Vanelton",
    "profileimg": "https://...",
    "idverify": 1,
    "vaneltonpass": false,
    "roles": "[developer]",
    "token": "SESSION_TOKEN_HERE",
    "itemKeys": ["key1", "key2"]
  },
  "app": {
    "authorized": 1,
    "packageid": "com.myapp.game",
    "appname": "My App",
    "appversion": "1.0.0"
  }
}

Errors

CodeMessageCause
401Authorization header with appid:appkey is required.Missing or malformed header
401Invalid app credentials.AppID or AppKey not recognized
401Invalid email or password.Wrong credentials