Magma ChargeSpot
REST · WebSocket · OCPP 2.0.1 · OCPI 2.205 — OCPP & API

Open standards. Serious API.

Magma speaks every protocol the EV charging industry runs on — and wraps it in a clean REST API with WebSocket push and 200+ endpoints.

Magma API · curl example
# Start a remote charging session
curl -X POST https://api.magmapro.in/v1/sessions \
  -H "Authorization: Bearer {API_KEY}" \
  -H "Content-Type: application/json" \
  -d '{
    "charger_id": "BLR-014",
    "connector": 1,
    "auth_method": "api",
    "tariff_override": {
      "type": "free",
      "duration_minutes": 30
    }
  }'

# Response
{
  "session_id": "sess_k7f3x...",
  "status":     "starting",
  "charger_id": "BLR-014",
  "started_at": "2026-05-27T14:03:22Z",
  "websocket":  "wss://api.magmapro.in/live/..."
}
Protocol support

Every protocol. One integration.

REST API

JSON over HTTPS. OAuth 2.0. Rate limit 1,000 req/min per key. OpenAPI 3.1 spec downloadable from the portal.

GET /v1/chargers — list fleet
GET /v1/chargers/{id}/status
POST /v1/sessions — start session
DELETE /v1/sessions/{id} — stop
GET /v1/sessions — history + CDRs
PATCH /v1/tariffs/{site_id}
GET /v1/vendors — operator view
POST /v1/payouts/preview
# List all chargers in a site
GET /v1/chargers?site_id=BLR-IND

# 200 OK
{
  "chargers": [
    {
      "id": "BLR-014",
      "model": "MX-EV-22",
      "status": "available",
      "connectors": [
        {
          "id": 1,
          "type": "Type2",
          "status": "Available",
          "power_kw": 22
        }
      ]
    }
  ],
  "total": 12
}
Integration

Supported standards & endpoints

OCPP 1.6 JSON
Full Core + Smart Charging + Local Auth + Firmware + Diagnostics profiles
OCPP 2.0.1
Device Management · Smart Charging · ISO 15118 Plug & Charge · Transaction mgmt
OCPI 2.2
CPO + eMSP roles · Sessions, Tokens, Locations, Tariffs, Commands, CDRs modules
REST API
200+ endpoints · OpenAPI 3.1 · OAuth 2.0 (client-credentials + PKCE) · JSON
WebSocket push
Live session events · fault alerts · connector status · SoC telemetry — sub-second
Webhooks
HTTPS POST to your endpoint · HMAC-SHA256 signed · retry with exponential backoff
SDK / libraries
Node.js (official) · Python (official) · Java (community) · Go (community)
Postman
Public workspace: magmapro.postman.co — 120+ example requests, auto-auth
Sandbox
Free developer sandbox · 5 simulated chargers · fake payment flow · 90-day retention

Built for real integrations

01

Fleet telematics

Poll SoC, active session status and charger availability from any fleet management system via REST or WebSocket.

02

Building automation

OSCP 1.0 for BEMS / grid operator signals. Adjust charger power in real time based on site demand.

03

ERP & billing

CDR webhooks push session data to SAP, Tally or your billing engine the moment a session ends.

04

White-label apps

Build your own driver app on Magma's Locations, Sessions and Auth APIs. Same data, your brand.

05

Hardware agnostic

Point any OCPP-compliant charger (not just Magma hardware) at your CSMS endpoint. Bring your existing fleet.

06

Roaming in a week

OCPI onboarding checklist + test runner. Most operators are live on Hubject or EV Recharge in 5 business days.

200+
REST API endpoints
< 1s
WebSocket push latency
99.9%
API uptime SLA
5 min
Sandbox setup time

Start building on Magma.

Get a sandbox API key in under 5 minutes. Full OpenAPI 3.1 spec, Postman collection, and a test charger pointed at your dev CSMS.

Get sandbox access Read the docs