Capability area

Integrations and API

Build on Flowion through its documented, versioned REST API, with live updates and a Python client.

Build on the Flowion REST API

A documented, versioned REST API for your chargers, sessions and commands, with API keys scoped to one project or the whole organization, in live or sandbox mode.

Everything the console does goes through the same API that you can call from your own code. Every route lives under /v1, and you can try any endpoint from its page in the API reference with a Try it button, signed in or with an API key.

Your own systems use an API key. You choose its mode (live for real chargers, sandbox for test data and virtual chargers only), its reach (one project, or every project in the organization) and an optional expiry. A key can never hold the Owner policy, and revoking a key takes effect on the next request. People use their sign-in, which the API checks with a proof tied to a key their browser holds.

Within /v1, changes only add: new fields, endpoints, error codes and enum values. Something that is going away is deprecated first and stays for at least six months, announced in the reference, in the API document and in Deprecation and Sunset headers on every response. Lists page with a nextCursor, and commands to chargers go through one endpoint that queues while a charger is offline and can be retried safely with an Idempotency-Key.

Good to know

  • Read responses tolerantly: a new field, error code, enum value or union variant can appear within /v1 without notice.
  • Every route under /v1 shares one request budget per IP address; every response shows where you stand, and the budget is described, with no figure, in the rate limits guide.
  • An API key can never hold the Owner policy, and holds exactly one policy binding.
  • A sandbox key reaches only sandbox data and a live key only live data.

Beta

Call the API from Python with the flowion package

The flowion package on PyPI is an async, typed Python client generated from the API's contract and versioned with it.

Install the Python client with pip install flowion. It is generated from the same OpenAPI contract as the REST API, so every endpoint has a typed method, and response enums and unions tolerate values they have not seen before.

It is async and needs no HTTP library of its own: you hand it a transport, so your own connection pool and TLS settings stay yours. An adapter for an aiohttp session you already own is included as an extra, pip install "flowion[aiohttp]". It needs Python 3.12 or newer.

The package is marked Beta while the API contract is 0.x. Its version follows the contract: the SDK family shares one MAJOR.MINOR, and the number that moves is computed from what changed in the API. Release 0.2.0 is on PyPI.

Good to know

  • While the contract is 0.x, a change that is not backwards compatible raises the MINOR number, so pin an exact version.
  • It needs Python 3.12 or newer.
  • You supply the transport (or use the aiohttp adapter); the package opens no connection of its own.