POST
Validate Session
Checks if a session token is still valid. Call this on each app launch after init, or periodically to ensure the user hasn't been banned or expired.
POST/api/v1/validate
Request Body
api_keyrequiredstring
Your application API key
session_tokenrequiredstring
Session token from /init
Response
json
{
"success": true,
"message": "Session is valid",
"username": "john_doe",
"product_id": "uuid",
"product_name": "Pro Plan"
}Python
python
def validate(api_key, session_token):
r = requests.post("https://authorized.lol/api/v1/validate", json={
"api_key": api_key,
"session_token": session_token
})
return r.json()["success"]Note:Sessions expire after 60 minutes of inactivity. Use Heartbeat to extend them.