Skip to content

API routes

Luca edited this page Jan 11, 2022 · 1 revision

/auth » Generate a JWT for a SteamID64

Parameter Description Required
key Your configured API key ✔️
steamid The SteamID64 you want to generate a JWT for ✔️

Example response:

{
  "ok": true,
  "jwt": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdGVh ..."
}

Example unsigned JWT object:

const userInfo = {
	steamid64: "76561197960287930",
	steamid: "STEAM_0:0:11101",
}

/status » Route to check whether the API is available.

Parameter Description Required
key Your configured API key ✔️

Example response:

{
  "ok": true
}

/validate » Validate a previously generated JWT

Parameter Description Required
key Your configured API key ✔️
jwt The JWT you would like to validate ✔️

Example response:

{
  "ok": true,
  "valid": true,
  "decoded": {
    "steamid64": "76561197960287930",
    "steamid": "STEAM_0:0:11101",
    "iat": 1641883665,
    "exp": 1641886365
  }
}

Clone this wiki locally