Skip to main content
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
This guide will walk you through setting up your first Uplink automation session.

Step 1: Install the JavaScript SDK

Install the Uplink SDK in your project:

Optional: AI Automation

For AI-powered automation with natural language instructions:
See the AI Automation guide to learn more.

Step 2: Get your credentials

Log in to Uplink Console to get your API credentials.
1

Get your API key

Navigate to SettingsAPI Keys in Uplink Console. Copy your project API key.
2

Get your project ID

In SettingsProjects, find and copy your project ID.
Keep your API key secure. Never commit it to source control or expose it in client-side code.

Step 3: Create a session

Create a session programmatically to get connection URLs for your devices:
The session object contains:
  • sessionId: Unique identifier for this session
  • sessionUrl: WebSocket URL for custom SDK integration
  • qrUrl: URL that encodes connection info for the Connect app
  • keys: Optional cryptographic keys (if requested)

Step 4: Connect a device

You have two options for connecting devices to your session:
Use Uplink’s whitelabel Connect app by presenting a QR code to your users:
1

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:
2

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)
3

Device connects

The device automatically connects to your session as a worker
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:
Replace <project-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

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: