UploadArmor Documentation

Webhooks, API references, and integration guides

Quick Start Guide
Quick setup guide for UploadArmor webhooks

1. Create a Webhook Endpoint

Setup an HTTP POST endpoint in your backend to receive webhook events:

app.post('/webhooks/uploadarmor', async (req, res) => {
  const signature = req.headers['x-uploadarmor-signature'];
  const payload = req.body;

  // Verify signature
  const isValid = verifyWebhookSignature(payload, signature, process.env.WEBHOOK_SECRET);
  if (!isValid) return res.status(401).json({ error: 'Invalid signature' });

  // Handle event
  switch (payload.event) {
    case 'file.uploaded':
      // Handle file upload
      break;
    case 'quota.exceeded':
      // Handle quota event
      break;
    default:
      break;
  }

  res.status(200).json({ received: true });
});

2. Register Webhook in Dashboard

Visit the UploadArmor dashboard, add your endpoint URL, and select which events you want to subscribe to.