Overview
The Link UI supports advanced configuration through query parameters that allow you to customize the user experience, pre-select options, and control the authentication flow. This guide covers all available query parameters and their use cases.Query Parameters Reference
Environment Control
sandbox
Controls whether the Link UI runs in sandbox or live mode.
Values:
trueor1- Enables sandbox mode- Omitted or
false- Uses live mode (default)
Device Type Pre-Selection
deviceType
Pre-selects the device type, skipping the device type selection step.
Values:
battery- Battery storage systemshvac- Heating, ventilation, and air conditioningev_charger- Electric vehicle charging stationssolar_inverter- Solar panel inverter systemsvehicle- Electric vehicles
User Identification
externalUserRef
Maps devices to a user identifier in your system. This parameter determines whether users are identified or anonymous.
Behavior:
- If you provide a valid email: The user is treated as identified and can be tracked across sessions
- Example:
?externalUserRef=user@example.com→ Usesuser@example.comas the identifier
- Example:
- If omitted or invalid: The system auto-generates a unique
user_prefixed ID (e.g.,user_abc123xyz), and the user is treated as anonymous
- Valid email address (1-100 characters)
- If not provided or invalid, system generates:
user_{random_id}
- Identified users: When you know the user’s email and want to link devices across sessions
- Anonymous users: For guest flows or when user identification isn’t required
Device Selection Control
skipDeviceSelection
Automatically selects all discovered devices, skipping the device selection step.
Values:
trueor1- Auto-selects all devices- Omitted or
false- Shows device selection step (default)
maxDevices
Limits the maximum number of devices a user can select during the device selection step.
Values:
- Integer between
1and100 - Omitted - No limit (default)
- Single device selection: Set
maxDevices=1to force users to select only one device - Limited selection: Restrict selection to a specific number (e.g.,
maxDevices=5)
Parameter Combinations
Common Use Cases
Single Device Selection for Batteries
Auto-connect All Devices for Identified User
Sandbox Testing with Pre-selected Device Type
Best Practices
When to use externalUserRef
When to use externalUserRef
Use email addresses when:
- You have authenticated users in your system
- You want to track device connections across sessions
- You need to link devices to specific user accounts
- Building guest/anonymous flows
- User identification isn’t required
- Testing or prototyping
Device selection strategies
Device selection strategies
- Single device: Use
maxDevices=1for applications that only support one device per user - Multiple devices: Omit
maxDevicesor set a reasonable limit based on your use case - Auto-select: Use
skipDeviceSelection=trueonly when connecting all devices is the desired behavior
Pre-filtering device types
Pre-filtering device types
Always use
deviceType when your application only supports specific device types. This improves UX by showing only relevant OEMs.Environment management
Environment management
Always use
sandbox=true during development and testing. Remove it or set to false for production.Troubleshooting Parameters
Parameters not working
Parameters not working
- Verify parameter names are spelled correctly
- Check that boolean values use
trueor1(notTrueoryes) - Confirm
deviceTypeuses exact values:battery,hvac,ev_charger,solar_inverter,vehicle
Device selection still showing
Device selection still showing
- Verify
skipDeviceSelection=true(notskipDeviceSelection=1for some systems) - Check that devices were actually discovered (no devices = no selection step)
User not identified
User not identified
- Verify
externalUserRefis a valid email format - Check that the parameter is properly URL-encoded if passed programmatically
- Ensure the email isn’t being truncated or modified
Next Steps
Getting Started with Link UI
Learn the basics of Link UI
API Authentication
Learn how to authenticate your API requests
Environments Guide
Learn about Sandbox and Live environments
API Reference
Explore API endpoints