Svashasan OS API Features
Explore the comprehensive suite of APIs offered by Svashasan OS, designed to empower developers to build rich, interactive, and intelligent applications for electric vehicles. Our APIs provide secure and efficient access to core vehicle functionalities and data.
Vehicle Data Access
Access real-time and historical data from the vehicle's sensors and systems. This includes critical metrics like speed, battery charge, range, tire pressure, and diagnostic codes. Build applications that monitor vehicle health, track performance, or provide personalized driving insights.
Key Data Points:
- Current Speed (kmph)
- Battery State of Charge (SoC) and Health
- Estimated Range (km)
- Tire Pressure Monitoring System (TPMS) data
- Engine/Motor Diagnostics (error codes, temperature)
- Odometer readings
// Example: Fetching live vehicle status
GET /v1/vehicle/status
Authorization: Bearer YOUR_API_KEY
// Response example
{
"speed": 60,
"batteryLevel": 75,
"range": 250,
"tirePressure": {"frontLeft": 35, "frontRight": 35, "rearLeft": 36, "rearRight": 36},
"lastUpdated": "2025-07-12T10:00:00Z"
}
Remote Control
Empower users with remote control capabilities over their vehicles. Our secure APIs allow for actions such as remote locking/unlocking, pre-conditioning the cabin climate, initiating or scheduling charging sessions, and flashing lights or honking for location.
Available Actions:
- Lock/Unlock Doors
- Start/Stop Charging
- Set Cabin Temperature
- Flash Lights / Honk Horn
- Open/Close Windows (selected models)
// Example: Locking the vehicle remotely
POST /v1/vehicle/lock
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
// Request Body (empty or with vehicle ID if managing multiple)
{}
// Response example
{
"status": "success",
"message": "Vehicle locked successfully."
}
User & Profile Management
Integrate user authentication and manage driver profiles and preferences. This API allows for secure access to user settings, preferred charging networks, driving modes, and personalized vehicle configurations. Build seamless, personalized experiences for each driver.
Features:
- Retrieve User Profile Information
- Update User Preferences (e.g., driving mode, climate presets)
- Manage Linked Vehicles
- Secure User Authentication (via Svashasan OS)
// Example: Fetching user preferences
GET /v1/user/preferences
Authorization: Bearer YOUR_API_KEY
// Response example
{
"drivingMode": "eco",
"preferredChargingNetwork": "ChargePoint",
"climatePreset": "comfortable",
"notificationSettings": {"lowBattery": true, "chargingComplete": true}
}
OTA Integration
Prepare your applications for seamless Over-the-Air (OTA) updates. This API provides mechanisms to check for OS and application updates, manage download progress, and schedule installations. Ensure your integrated solutions remain compatible and up-to-date with the latest Svashasan OS features.
Capabilities:
- Check for Available Updates
- Monitor Update Download Progress
- Schedule Update Installation
- Receive Update Status Notifications
// Example: Checking for available updates
GET /v1/ota/updates
Authorization: Bearer YOUR_API_KEY
// Response example
{
"availableUpdates": [
{"version": "2.1.0", "type": "OS", "sizeMB": 800, "releaseNotes": "Improved battery management."},
{"version": "1.5.2", "type": "App", "appName": "Svashasan Maps", "sizeMB": 50}
]
}
Custom Notifications
Create and manage custom alerts and notifications based on specific vehicle events or user-defined conditions. This allows your applications to proactively inform users about critical events, maintenance needs, or personalized reminders directly through the Svashasan OS interface.
Notification Triggers:
- Low Battery Threshold
- Charging Complete
- Vehicle Security Alerts (e.g., unauthorized access)
- Geofence Entry/Exit
- Scheduled Maintenance Reminders
// Example: Setting up a low battery notification
POST /v1/notifications/create
Authorization: Bearer YOUR_API_KEY
Content-Type: application/json
// Request Body
{
"type": "battery_alert",
"threshold": 20, // percentage
"message": "Battery level is critically low. Please find a charging station.",
"deliveryMethod": ["in_car_display", "mobile_app"]
}
// Response example
{
"status": "success",
"notificationId": "noti_123abc"
}