Skip to main content
POST
/
v1
/
sessions
/
connect
Exchange a session token for a runtime connect token
curl --request POST \
  --url https://api.alakazam.gg/v1/sessions/connect \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "token": "<string>"
}
'
{
  "reactorJwt": "<string>",
  "expiresIn": 123,
  "expiresAt": 123,
  "world": {}
}

Authorizations

Authorization
string
header
required

The scoped runtime session JWT from POST /v1/sessions/token. The embed's browser presents it (Authorization: Bearer, or a token body field) to the runtime exchange routes. Not an API key.

Body

application/json
token
string

The session JWT (or send it as Authorization: Bearer).

Response

A runtime connect token + the world.

reactorJwt
string
expiresIn
integer
expiresAt
integer | null
world
object

The SMWorld to play.