Webhooks

Receive real-time notifications when events occur in your AIDP account.

Overview

Webhooks allow your application to receive automated notifications when specific events happen, such as:

  • New AI mentions of your business

  • Profile updates

  • Analytics milestones

  • Customer interactions


Setting Up Webhooks

1. Create an Endpoint

Create an HTTPS endpoint in your application to receive webhook events:

// Express.js example
app.post('/webhooks/aidp', express.json(), (req, res) => {
  const event = req.body;

  // Verify webhook signature
  if (!verifySignature(req.headers['x-aidp-signature'], req.body)) {
    return res.status(401).send('Invalid signature');
  }

  // Handle event
  switch (event.type) {
    case 'business.mentioned':
      handleMention(event.data);
      break;
    case 'analytics.milestone':
      handleMilestone(event.data);
      break;
  }

  res.status(200).send('OK');
});

2. Register Your Webhook

Register your endpoint in the Developer Dashboard:

  1. Navigate to Webhooks

  2. Click "Add Webhook"

  3. Enter your endpoint URL

  4. Select events to subscribe to

  5. Save and copy your signing secret


Available Events

Business Events

business.mentioned Triggered when AI mentions your business.

business.profile_updated Triggered when profile is updated.

Analytics Events

analytics.milestone Triggered when reaching analytics milestones.


Security

Verify Webhook Signatures

Always verify webhook signatures to ensure requests are from AIDP:

Best Practices

  • Use HTTPS endpoints only

  • Verify all webhook signatures

  • Return 200 status quickly (process async)

  • Implement retry logic for failures

  • Log all webhook events


Testing

Test webhooks using the Developer Dashboard:

  1. Go to Webhooks section

  2. Select your webhook

  3. Click "Send Test Event"

  4. Choose event type

  5. Verify your endpoint receives it


Need Help?

Last updated