API reference · v1
The Flowion API
One REST API for your whole energy platform: chargers, locations and circuits, prices, sessions and live events. It's the same API the console runs on, and every endpoint here is generated from the code that serves it, so what you read is what's live.
- endpoints
- 620
- resources
- 41
- stable error codes
- 330
# once per shell: where the API is, and your key
# every request carries your key as a bearer credential
Authenticating
Every endpoint takes one of two credentials. A program sends an API key (flw_ak_…) as Authorization: Bearer <key>. A person sends the access token from signing in at auth.flowion.io as Authorization: DPoP <token>, with a fresh DPoP proof header on every request: the token is short-lived and works only beside a proof made by the key it was issued to. The resource in the path decides which organization a request is about, checked against real membership. More on authentication
How the API behaves
Every error carries a stable error code to switch on, and a message written for people, which may change.
Lists page by cursor: pass nextCursor back as cursor until it comes back null, up to 100 at a time.
Bursts of up to 30 requests, and two a second sustained, per IP address. Every response tells you how much is left.
Commands take an Idempotency-Key, so a retried request never starts a second session.
One event stream per project tells you the moment a charger, a session or a meter reading changes.
A command returns at once and reports the charger's answer when it comes, even if the charger is offline when you send it. Reading or changing a setting waits for the answer.
Resources
Fleet
- Charging Stations28 endpoints
- Charging discovery1 endpoint
- EVSEs & Connectors7 endpoints
- Labels1 endpoint
- Locations & Circuits38 endpoints
- Commands10 endpoints
- Configuration2 endpoints
- Diagnostics5 endpoints
- Display Messages14 endpoints
- Virtual chargers (sandbox)19 endpoints
- Vehicles28 endpoints
- Device catalogue4 endpoints