Webhooks
Receive real-time notifications when your websites are generated, exported, or deployed.
Overview
Webhooks allow your application to receive real-time HTTP POST notifications when events occur. Configure your webhook endpoint URL in the dashboard settings, and we'll send event data as JSON to your endpoint.
Supported Events
website.generated
Fired when a website generation completes successfully.
website.failed
Fired when a website generation fails.
website.exported
Fired when a project export (ZIP download) is ready.
website.deployed
Fired when a project is deployed to a custom domain.
credits.updated
Fired when your credit balance changes (usage or recharge).
subscription.updated
Fired when your subscription plan changes.
Payload Example
Example payload for the website.generated event:
{
"event": "website.generated",
"timestamp": "2026-07-21T10:30:00Z",
"data": {
"project_id": 12345,
"project_name": "Coffee Shop Landing Page",
"preview_url": "https://aiwebsitebuilder.startupitsolution.in/preview/12345",
"pages": 1,
"credits_used": 5,
"credits_remaining": 95
}
}
Signature Verification
Every webhook request includes a signature in the X-Webhook-Signature header. Verify the signature by computing an HMAC-SHA256 hash of the raw request body using your webhook secret:
// PHP example
$signature = hash_hmac('sha256', $rawBody, $webhookSecret);
if (hash_equals($signature, $_SERVER['HTTP_X_WEBHOOK_SIGNATURE'])) {
$payload = json_decode($rawBody, true);
// Process the event
}
Retry Policy
If your endpoint returns a non-2xx status code, we will retry the delivery with exponential backoff:
- Retry 1: After 1 minute
- Retry 2: After 5 minutes
- Retry 3: After 30 minutes
- Retry 4: After 2 hours
- Retry 5: After 6 hours (final attempt)
Your endpoint must respond within 10 seconds with a 2xx status code to be considered successful.
Setup Guide
- Log in to your dashboard
- Navigate to Settings → Webhooks
- Click Add Endpoint and enter your callback URL
- Select the events you want to subscribe to
- Copy your Webhook Secret for signature verification
- Test your endpoint using the Send Test Event button
Looking for API reference? View API Docs