Set your production Webhook URL
In the Layercode dashboard:- Open the agent you want to be your production agent and click Connect Your Backend
- Set your Webhook URL to your production endpoint, e.g.
https://your-domain.com/api/agent
- Save changes
Use separate Layercode agents for production and for development or staging. Point each to its own backend URL. Keep your production Webhook URL stable and use staging agents for preview builds.
Verify webhook signature in production
Keep signature verification enabled in your/api/agent
route. This protects your app from spoofed requests.