API reference
The contract for the OCPPLAB Gateway REST API
This reference documents every endpoint on the OCPPLAB Gateway API: request/response schemas, shared errors, and per-endpoint code samples in shell, Python, and Node.js.
Authorization: Bearer <jwt> is the only header most requests need. User tokens are pre-scoped to a single tenant. Internal admin integrators have a separate flow — see Authentication.
If a request fails with 403, check the token role before assuming the endpoint or payload is wrong.
In order, these are the useful routes to smoke-test a new integration:
GET /catalog/brandsGET /catalog/brands/{brand_slug}/modelsPOST /locationsPOST /chargersPOST /chargers/{charger_id}/start-transactionGET /chargers/{charger_id}/logsThis matches the real-world flow: discover a charger, create a site, provision it, send a command, inspect logs.
GET routes to validate access before moving to create or command routescharger_ids to target the full locationGET /chargers/{charger_id}/logs after command execution to verify emitted OCPP actionsHands-on path: Quickstart. End-to-end flows: Common workflows.