How authentication works in the Leafy Energy API (demo)
In the demo we use a simple API key model to illustrate integrations. A real production setup might add OAuth or other flows.
API key in the demo
- Each demo customer receives a fictional API key (for example via the portal).
- The key is sent in the
Authorizationheader.
GET /v1/customers/me
Authorization: Bearer DEMO_API_KEY_123
Sandbox accounts
- Sandbox keys might start with
sb_. - In training you can show how code switches environments based on key prefixes.
This article serves as a conceptual overview before you dive into detailed security and scopes.
Comments
0 comments
Please sign in to leave a comment.