# OnCharger charger API > Local HTTP API and OCPP support of OnCharger AC and DC electric-vehicle chargers. The machine-readable specs are OpenAPI 3.1 YAML (English text, Ukrainian and Polish in `x-i18n` fields) plus a YAML OCPP support matrix. Key facts: - Base URL: `http://` or `http://oncharger.local` (port 80, plain HTTP). In access-point mode: `http://192.168.4.1`. - Every command is a `GET` with query parameters; replies are JSON (some have `Content-Type: text/text`, the body is still JSON). `POST` form-urlencoded works too, with parameters in the body. - Authentication: when a web login is set, add `login=&pass=` to every request. Failure: `403 {"status":false}`. `/sign-in?l=&p=` checks credentials and always answers 200. - Many commands share one endpoint: `GET /api?param=&value=[&plug=N]`. Each one is listed under `x-commands` of `/api` in the spec. - AC units: current mA, voltage 0.1 V, energy Wh or W·s, temperature 0.1 °C. DC: `power_set` is W in `/status` and kW in `/config`. - Schedule hours (`/save-timer`) are UTC. - `plug` is 0-based; `/status` reports `plugId` / `plug` 1-based. - OCPP: AC supports 1.6J, 2.0.1 and 2.1; DC supports 1.6J. Both over `ws://` or `wss://`. ## Specs - [AC charger, OpenAPI 3.1](https://my.oncharger.com/api-doc/spec/ac.yaml): status, charging current (`/api?param=pilot`), lock, energy limit, schedule, settings, RFID cards, OCPP setup, Emoncms, ISO 15118 / Plug & Charge certificates - [DC charger, OpenAPI 3.1](https://my.oncharger.com/api-doc/spec/dc.yaml): status of GB/T and CCS outlets, power limit, state-of-charge limit, lock per outlet, V2G mode, schedule, OCPP setup - [OCPP support](https://my.oncharger.com/api-doc/spec/ocpp.yaml): versions, transport, messages per direction, configuration keys, device model, meter values, smart charging, Plug & Charge ## Docs - [Full guide for AI assistants](https://my.oncharger.com/api-doc/llms-full.txt): units, state codes, curl recipes, Home Assistant example - [Interactive documentation (UA / PL / EN)](https://my.oncharger.com/api-doc/): with a console that sends requests to a charger on your network