Skip to main content

Before you begin

You need your OAuth client ID, client secret, and the ID of a battery accessible to your client. The API base URL is https://api.kapa.energy.

Get an access token

Set KAPA_CLIENT_ID and KAPA_CLIENT_SECRET in your environment, then send a client credentials request:
The response includes access_token, token_type, and expires_in. Set KAPA_ACCESS_TOKEN to the returned access token. Request a new token when it expires.

Read battery information

Set KAPA_BATTERY_ID to your battery ID, then send the token in the Authorization header:
The response describes the battery’s manufacturer, model, usable capacity, and nominal power ratings. Energy values use watt-hours (Wh), and power values use watts (W).

Explore the API

Open the API reference tab to explore authentication, battery information, commands, telemetry, and batches. Open the Webhooks tab to inspect telemetry and command status event payloads. Read the overview for time conventions, power signs, command behavior, idempotency, and errors.