स्वशासन

Svashasan developer platform

Developer to Developer

Unlock the full potential of Svashasan OS by integrating with our robust APIs. Build custom applications, enhance vehicle functionality, and create new experiences for EV users. Our platform is designed for seamless development and innovation.

Example API Call:


import requests

api_key = "svasha_live_d8ae1f9a2c1e4b649a2f5a0e12345678"
headers = {
    "Authorization": f"Bearer {api_key}",
    "Content-Type": "application/json"
}

response = requests.get("https://api.svashasan.shop/telemetry", headers=headers)

if response.status_code == 200:
    data = response.json()
    print(f"Current Speed: {data['speed']} kmph")
    print(f"Battery Level: {data['battery']}%")
else:
    print(f"Error: {response.status_code} - {response.text}")
                    

Dynamic Models

Our platform supports various models for different use cases, allowing you to choose the best fit for your application.

Telemetry API

Real-time vehicle data.

Navigation API

Advanced routing & POI.

Control API

Remote vehicle commands.

API Features & Capabilities

Vehicle Data Access

Securely retrieve real-time vehicle diagnostics, battery status, and location data.

Navigation & Routing

Integrate smart routing, charging station finder, and traffic information.

Remote Control

Develop apps for remote locking/unlocking, climate control, and charging management.

User & Profile Management

Access and manage user profiles and preferences securely.

OTA Integration

Prepare your applications for seamless over-the-air updates.

Custom Notifications

Create custom alerts and notifications based on vehicle events.

Get Your API Key

Generate your unique API key to start building. Keep your key secure and do not share it publicly.

Quick Start Guide

Follow these simple steps to make your first API call.

1. Make an authenticated request

Replace YOUR_API_KEY with the key you generated.


// Example using JavaScript Fetch API
async function getVehicleStatus(apiKey) {
    try {
        const response = await fetch('https://api.svashasan.shop/v1/vehicle/status', {
            method: 'GET',
            headers: {
                'Authorization': `Bearer ${apiKey}`,
                'Content-Type': 'application/json'
            }
        });

        if (!response.ok) {
            throw new Error(`HTTP error! status: ${response.status}`);
        }

        const data = await response.json();
        console.log('Vehicle Status:', data);
        return data;
    } catch (error) {
        console.error('Error fetching vehicle status:', error);
        // Display error message to the user (e.g., in a UI element)
        document.getElementById('apiResponse').textContent = 'Error: ' + error.message;
        return null;
    }
}

// Call the function with your API key
// const myApiKey = document.getElementById('apiKeyText').textContent; // Get generated key
// if (myApiKey) {
//     getVehicleStatus(myApiKey);
// } else {
//     document.getElementById('apiResponse').textContent = 'Please generate an API key first.';
// }
                    

API Response (Mock)


{
    "status": "online",
    "batteryLevel": 85,
    "charging": false,
    "location": {
        "latitude": 19.0760,
        "longitude": 72.8777
    },
    "lastUpdated": "2025-07-08T10:30:00Z"
}
                        

Need More?

Dive deeper into our API capabilities with comprehensive documentation.

View Full Documentation