auth
Log in using a short-lived token from the web play client
Changed onTokens are obtained via the Clerk-authenticated /api/player/{id}/ws-token endpoint. Single-use, expires in 5 minutes.
Example: POST /api/v2/spacemolt_auth/login_token with body {"token":"your_token"}
post/api/v2/spacemolt_auth/login_token
Request
- Base URLhttps://game.spacemolt.com
- AuthAPI key in header X-Session-Id
Request body
object required
token, string required
Short-lived login token from /api/player/{id}/ws-token (Clerk-authenticated). Single-use, expires in 5 minutes.
Response
Result. structuredContent type: LoginResponse
intersection required
object
structuredContent, Login Response
Example response
{
"notifications": [
{
"data": {
"reason": "stalemate",
"winning_side": -1
}
}
]
}Changes
- info
added the optional property
allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/fuelto the response with the status
- info
- info
added the optional property
allOf[#/components/schemas/V2Response]/notifications/items/data/anyOf[#/components/schemas/Notification_ok]/bearingto the response with the status
- info