Svashasan Logo
Simulated data

Svashasan Vehicle API v1

Base URL
https://api.svashasan.com/v1
Protocol / format
HTTPS, JSON (UTF-8), REST
Versioning
In the URL (/v1)
Timestamps
ISO 8601, UTC (2026-12-05T10:30:00Z)
Authentication
Bearer API key
Rate limits
60 / minute / key, 120 / minute / developer (all limits)

Authentication

Create an API key on your Account page (a Svashasan Account with a verified email is needed) and send it as a bearer token on every vehicle request:

Authorization: Bearer svk_live_ab12cd34_…
  • Keys are shown once when created; only a hash is stored. Revoke or rotate them any time.
  • Keys are read-only except for your own resources: switching your simulator, CAN uploads, and Compatibility Matrix evaluations and saved configurations, and ADAS Benchmark models, datasets and runs. They cannot manage keys.
  • /v1/system/*, ADAS scenarios, the CAN sample, the Compatibility Matrix catalogue and evaluation, and this documentation are public. /v1/developer/* needs the portal sign-in.
  • Never put a key in client-side code or commit it to a repository.

Response envelope

Every response, including errors, has the same shape. metadata.source is always SIMULATOR in the playground; request_id identifies the call in our logs.

Errors and status codes

StatusCodeMeaning
200—Successful request
201—Created (new API key)
400INVALID_REQUEST, KEY_LIMIT_REACHEDThe request is well-formed but cannot be fulfilled
401AUTHENTICATION_REQUIRED, INVALID_API_KEY, SESSION_EXPIREDMissing, invalid, revoked or expired credentials
403ACCESS_DENIED, EMAIL_NOT_VERIFIED, CSRF_FAILEDKnown caller without permission for this action
404NOT_FOUNDNo such endpoint or resource
413REQUEST_TOO_LARGEBody over the limit (16 KB; 128 KB for the Compatibility Matrix; 50 MB for CAN and benchmark uploads)
422VALIDATION_FAILEDA parameter or body field is invalid (error.details lists them)
429RATE_LIMIT_EXCEEDEDOver a rate limit (see the limits); wait Retry-After seconds. TOO_MANY_AUTH_FAILURES after repeated invalid credentials
500INTERNAL_ERROROur fault; quote the request_id
503SERVICE_UNAVAILABLETemporarily unavailable

Rate limits

Every developer service on api.svashasan.com is rate limited: the Vehicle API, the simulator, key management, ADAS scenarios, CAN Explorer, the SDV Compatibility Matrix, the ADAS Benchmark and the Automotive Glossary. The limits are the same for everyone. A developer's API keys and console session share the per-developer limits, so more keys do not mean more requests. The live policy is always at GET /v1/system/limits.

WhoLimit
Each API key60 requests per minute
Each developer (all keys and the console together)120 requests per minute, 10,000 per day (UTC)
Heavy requests per developer (full recordings, exports, analyses, evaluations, comparisons, reports)20 per minute
Other writes per developer (simulator mode, saved configurations, deletions)30 per minute
File uploads per developer20 per hour
Creating, rotating or revoking API keys10 per hour
Without credentials, per IP address (IPv6 per /64)60 per minute, 3,000 per day, 10 heavy requests per minute
All traffic from one IP address300 per minute
Requests with invalid credentials, per IP address20 per 10 minutes
This documentation's OpenAPI document, per IP address60 per minute

Windows are sliding: the last 60 seconds are counted, not the current clock minute. Every response carries X-RateLimit-Limit, X-RateLimit-Remaining, X-RateLimit-Reset (seconds) and X-RateLimit-Scope for the limit closest to running out. A 429 adds Retry-After; wait that long before retrying, because requests over a limit still count.

Canonical data model

Long term, different OEM platforms connect through one stable Svashasan interface, so the playground uses a shared vehicle-state model rather than a different structure per endpoint. GET /v1/vehicle/telemetry returns every current value as a signal object:

DomainSignals
VehicleState, Speed, Odometer, SteeringAngle
Vehicle.PoseLatitude, Longitude, Heading
Vehicle.BatteryStateStateOfCharge, Voltage, Temperature, StateOfHealth, EstimatedRange
Vehicle.ChargingStateStatus, Power, Voltage, Current
Vehicle.MotorTemperature
Vehicle.EnvironmentAmbientTemperature
Vehicle.DiagnosticsHealth, ActiveFaultCount

Every signal carries a name, value, unit, timestamp, data source, quality (VALID, STALE, INVALID) and confidence, so the model can later carry hardware-connected data and autonomy signals (obstacles, trajectory, route) without changing shape.

Code examples

Each endpoint below shows the equivalent cURL, Python (requests) and JavaScript (fetch) call, generated from the contract. The playground generates them for the exact request you build.

Loading the API contract…

OpenAPI document

The machine-readable contract this page is rendered from: /v1/openapi.json (OpenAPI 3.1). Use it to generate clients or import the API into Postman.

Simulated vs validated integrations

The playground exposes simulated vehicle data: a software model of a reference EV, with demonstration defaults that are not measured vehicle behaviour. Diagnostic codes are synthetic playground codes, not OBD-II or manufacturer DTCs. There is no connection to any vehicle, ECU or CAN network, and no endpoint can act on a vehicle.

A validated integration is one where the same contract is populated by a vehicle adapter (ROS 2, SOME/IP, CAN/CAN-FD, Automotive Ethernet or an OEM-specific adapter) that has been developed and validated with the OEM. Such data will be labelled with a different source and documented separately. The playground is not a functional-safety-certified vehicle interface, and the public REST API is never part of a real-time vehicle-control path.