-
-
Notifications
You must be signed in to change notification settings - Fork 1
Home
Adrian Dacka edited this page Sep 5, 2025
·
2 revisions
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.
npm install bolt-driver-apiimport { BoltDriverAPI, FileTokenStorage } from 'bolt-driver-api';
const api = new BoltDriverAPI(deviceInfo, authConfig);- Authentication Guide - Complete authentication setup and flows
- API Reference - Complete method and type documentation
- Error Codes - Error handling and troubleshooting
- π 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
npm install bolt-driver-apiimport { 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);- NPM Package: bolt-driver-api
- GitHub Repository: bolt-driver-api-sdk
- Issue Tracker: GitHub Issues
- Changelog: CHANGELOG.md
We welcome contributions! Please see our Contributing Guide for details.
MIT License - see LICENSE for details.
Need help? Check out our Authentication Guide or API Reference for detailed documentation.