Overview
Webhooks allow you to receive real-time notifications when events occur in your BoostGPT project.Available Events
bot.created- New bot createdbot.updated- Bot settings changedbot.deleted- Bot deletedchat.message- New chat message sentsubscriber.added- New subscriber capturedtraining.added- Training data added
Setup Webhook
1
Create Endpoint
Create an endpoint that accepts POST requests
2
Add Webhook in Dashboard
Go to Settings -> Webhooks -> Add Webhook
3
Enter URL
Provide your endpoint URL (must be HTTPS)
4
Select Events
Choose which events to receive
Webhook Payload
All webhooks send JSON payloads:Example Endpoint
Express.js
Next.js API Route
Verify Webhook Signature
Verify webhooks are from BoostGPT:Best Practices
- Return 200 quickly - Don’t process long tasks in webhook handler
- Use queues - Add events to a queue for async processing
- Verify signatures - Always verify webhook authenticity
- Handle retries - Respond with 200 to prevent retries
- Log events - Keep logs for debugging
Testing Webhooks
Test locally using ngrok:Next Steps
Error Handling
Handle webhook errors