Update Session
Configure session resuming behavior and timeout settings.Path Parameters
The session ID obtained from the WebSocket ready event
Request Body
Whether resuming is enabled for this session. When enabled, the session can be resumed after a disconnect using the
Session-Id header when reconnecting via WebSocket.The timeout in seconds before the session is destroyed after a disconnect. Default is 60 seconds. Set to 0 to destroy immediately.
Session ResumingWhen resuming is enabled:
- Your WebSocket connection is assigned a session ID (received in the ready OP)
- If you disconnect, the session remains active for the configured timeout period
- Reconnect with the
Session-Idheader to resume the session - All players and their state will be preserved
Response
Whether resuming is currently enabled for this session
The current timeout in seconds
RoutePlanner API
The RoutePlanner API manages IP rotation for bypassing rate limits. This is useful when running Lavalink with multiple IP addresses.Get RoutePlanner Status
Retrieve the current RoutePlanner configuration and status.Response
When RoutePlanner is disabled: Returns204 No Content
When RoutePlanner is enabled:
Returns 200 OK with:
The RoutePlanner implementation type:
RotatingIpRoutePlanner- Switches IP on ban (recommended for IPv4 blocks or IPv6 blocks smaller than /64)NanoIpRoutePlanner- Switches IP on clock update (use with at least 1 /64 IPv6 block)RotatingNanoIpRoutePlanner- Switches IP on clock update, rotates to different /64 block on ban (use with at least 2x /64 IPv6 blocks)BalancingIpRoutePlanner- Selects random IP per request (recommended for larger IP blocks)
RoutePlanner status details
Unmark Failed Address
Remove a specific address from the failed addresses list.Request Body
The IP address to unmark as failed. This address must be within the same IP block configured for the RoutePlanner.
Response
Returns204 No Content on success.
Unmark All Failed Addresses
Clear all addresses from the failed addresses list.Response
Returns204 No Content on success.
Session Best Practices
When to Enable Resuming
When to Enable Resuming
Enable resuming if:
- Your bot experiences occasional brief disconnections
- You need to restart your bot without interrupting music playback
- You want to maintain player state across reconnections
- You’re running in a serverless environment
- You want fresh sessions on each connection
- You don’t need state persistence
Choosing a Timeout
Choosing a Timeout
- 60 seconds (default): Good for most applications
- 300+ seconds: For slow restart processes or expected longer downtimes
- 0 seconds: Destroy session immediately on disconnect (effectively disables resuming)
RoutePlanner Types
RoutePlanner Types
Choose based on your IP configuration:
- RotatingIpRoutePlanner: Best for IPv4 blocks or small IPv6 blocks (< /64)
- NanoIpRoutePlanner: Best for single /64 IPv6 blocks
- RotatingNanoIpRoutePlanner: Best when you have multiple /64 IPv6 blocks
- BalancingIpRoutePlanner: Best for very large IP blocks (distributes load randomly)