Prerequisites:
- Node.js version 16 or higher
- An Uplink account (sign up on Uplink Console)
- A mobile device with the Connect app installed, or your own app with the SDK integrated
Step 1: Install the JavaScript SDK
Install the Uplink SDK in your project:Optional: AI Automation
For AI-powered automation with natural language instructions:Step 2: Get your credentials
Log in to Uplink Console to get your API credentials.Step 3: Create a session
Create a session programmatically to get connection URLs for your devices:session object contains:
sessionId: Unique identifier for this sessionsessionUrl: WebSocket URL for custom SDK integrationqrUrl: URL that encodes connection info for the Connect appkeys: Optional cryptographic keys (if requested)
Step 4: Connect a device
You have two options for connecting devices to your session:- Connect App (Whitelabel)
- Custom SDK Integration
Use Uplink’s whitelabel Connect app by presenting a QR code to your users:
Display QR code
Display the
session.qrUrl as a QR code in your application. You can use any QR code library like qrcode or react-qr-code:User scans QR code
Your user scans the QR code with their device camera. This opens the Uplink Connect app (iOS App Clip or Android instant app)
No installation required! The Connect app opens automatically via iOS App Clip or Android deeplink when users scan the QR code.
Step 5: Run your first automation
Create a new JavaScript file and add the following code:<organization-api-key> and <project-id> with your credentials from the Console (or use environment variables as shown), then run:
What’s next?
Core concepts
Learn about devices, browsers, and pages
Sessions & auth
Understand session management and authentication
API reference
Explore the full JavaScript SDK API
Device management
Learn how to manage multiple devices
Example use cases
Once you’re comfortable with the basics, try these common automation scenarios:Wait for user login, then automate
Wait for user login, then automate
Extract data from a page
Extract data from a page
AI-powered form filling
AI-powered form filling
Monitor network requests
Monitor network requests