To receive real-time events from Nomos, run an HTTPS endpoint that accepts signedDocumentation Index
Fetch the complete documentation index at: https://docs.nomos.energy/llms.txt
Use this file to discover all available pages before exploring further.
POST requests, register it in the dashboard, and dispatch on the events you care about.
Create a development endpoint
In your local app, add a route that accepts Anything other than
POST requests and responds
with 2xx.pages/api/webhooks.ts
2xx is treated as a failure and triggers retries.Register the endpoint in Nomos
Open the Webhooks page in the Nomos
dashboard and add a new webhook:
- Paste your publicly accessible HTTPS URL.
- Select the events you want to subscribe to.
Send a test delivery
From the webhook’s detail page, trigger a test event. The payload follows
the standard envelope:Confirm your endpoint logs the request and returns
2xx.Verify and handle real events
Before acting on an event, validate the signature header so you only
process real Nomos deliveries. See Verify webhook
requests for the full procedure.Then dispatch on
topic. The context only carries IDs, so fetch the
resource when you need its current state.pages/api/webhooks.ts