Auth
Authorize App
Links your app to a user account. Call this when app.authorized === 0 in the login response.
POST
/api/vaneltonid/auth.php
Requires
Authorization: AppID:AppKey header + user token
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| token | string | required | User session token from login |
Test this endpoint
Headers
Body
Success response 200
{ "success": true, "message": "App authorized successfully." }
Errors
| Code | Message | Cause |
|---|---|---|
| 401 | Authorization header with appid:appkey is required. | Missing or malformed header |
| 401 | Invalid or expired token. | Token not valid |
| 403 | Origin not allowed. | Request from an unauthorized origin |