Creating your first webhook endpoint
To receive webhooks, Leafy Energy needs to know where to send its events. You configure this via the customer portal or an API endpoint.
Registering in the portal (concept)
- Go to “Integrations” in the Leafy Energy portal.
- Select “Webhooks”.
- Enter the URL of your endpoint, for example
https://example.com/webhooks/leafy. - Choose the event types you want to receive.
- Save your settings.
Registering via the API (demo)
POST /v1/webhooks/endpoints
{
"url": "https://example.com/webhooks/leafy",
"event_types": ["pricing.day_ahead_published", "session.ev_started"]
}
In the demo this makes it easy to show how an endpoint is added and how it immediately starts receiving test events.
Comments
0 comments
Please sign in to leave a comment.