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
| Field | Type | Required | Description |
|---|---|---|---|
| string | required | User's email address | |
| password | string | required | User's password |
| masterkey | string | optional | Device key for multi-session support (e.g. "mobile-ios"). Each unique value keeps an independent token. |
Test this endpoint
Headers
Body
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
| Code | Message | Cause |
|---|---|---|
| 401 | Authorization header with appid:appkey is required. | Missing or malformed header |
| 401 | Invalid app credentials. | AppID or AppKey not recognized |
| 401 | Invalid email or password. | Wrong credentials |