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
Base URLhttps://api.flowion.io
bash
# once per shell: where the API is, and your key
export API=https://api.flowion.io/v1
export TOKEN=flw_ak_live_a1b2c3d4…

# every request carries your key as a bearer credential
curl "$API/organizations" \
  -H "Authorization: Bearer $TOKEN"

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