livekit-plugins-spatius compose endpoint URLs from SPATIUS_REGION automatically. Call this API from your backend when you need to mint short-lived Session Tokens for Direct Mode clients.
See Regions for the full endpoint reference and override options.
Obtain a session token
Call the endpointPOST /v1/console/session-tokens on your console host.
Request parameters
- Body
- appId: string, your Spatius App ID
- expireAt: int, expiration timestamp in seconds. Range: now < expire_at < now + 24 hours
- Header
- X-Api-Key: your API key
Request example
Response example
The response shape returns the token under one ofsessionToken, sessionKey, or token, optionally wrapped in a data object. Reference implementations extract whichever field is present; see the Session Token server examples in the demo repository.

