Back
AuthorizedAuthorizedDocs
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_keyrequired
string
Your application API key
session_tokenrequired
string
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.