Skip to content
Adrian Dacka edited this page Sep 5, 2025 · 2 revisions

Bolt Driver API SDK

Welcome to the official Bolt Driver API SDK documentation. This Node.js SDK allows you to communicate with Bolt's driver platform just like the mobile app.

πŸš€ Quick Start

npm install bolt-driver-api
import { BoltDriverAPI, FileTokenStorage } from 'bolt-driver-api';

const api = new BoltDriverAPI(deviceInfo, authConfig);

πŸ“š Documentation

Core Guides

Key Features

  • πŸ” SMS & Magic Link Authentication - Multiple authentication methods
  • πŸ“± Device Management - iOS and Android device support
  • πŸ—ΊοΈ GPS Integration - Real-time location tracking
  • πŸ’° Earnings & Analytics - Driver earnings and performance data
  • πŸš— Ride Management - Complete ride lifecycle management
  • πŸ“Š Real-time Updates - Live driver state and ride updates

πŸ› οΈ Installation

npm install bolt-driver-api

πŸ“– Basic Usage

import { BoltDriverAPI, FileTokenStorage, DeviceInfo, AuthConfig } from 'bolt-driver-api';

// Device information
const deviceInfo: DeviceInfo = {
  deviceId: 'your-device-id',
  deviceType: 'iphone',
  deviceName: 'iPhone 15 Pro',
  deviceOsVersion: 'iOS 17.0',
  appVersion: '1.0.0'
};

// Authentication configuration
const authConfig: AuthConfig = {
  authMethod: 'phone',
  brand: 'bolt',
  country: 'pl',
  language: 'en-GB',
  theme: 'dark'
};

// Initialize API
const api = new BoltDriverAPI(deviceInfo, authConfig);

// Start authentication
const authResponse = await api.startAuthentication(authConfig, deviceInfo, credentials);

πŸ”— Links

🀝 Contributing

We welcome contributions! Please see our Contributing Guide for details.

πŸ“„ License

MIT License - see LICENSE for details.


Need help? Check out our Authentication Guide or API Reference for detailed documentation.

Clone this wiki locally