AiinakDocs

Command Palette

Search for a command to run...

Webhooks

Subscribe to events, verify signatures and handle retries.

Subscribing to events

Webhooks are configured per product in the Admin Console (Settings → Webhooks) or via the API. You register an HTTPS endpoint and choose event types; Aiinak POSTs a JSON payload for each event.

ProductExample events
AiMailmessage.received, message.sent, booking.created
Smart Drivefile.uploaded, file.shared, ocr.completed
AI Meetingmeeting.started, meeting.ended, summary.ready
AI Recruitcandidate.applied, interview.completed, scorecard.submitted
Enterprise AIinvoice.created, workflow.completed, insight.generated

Verifying signatures

Every delivery includes an X-Aiinak-Signature header: an HMAC-SHA256 of the raw body using your endpoint's signing secret. Reject any payload whose signature does not match.

Express verificationjavascript
import crypto from "node:crypto";

function verify(req, secret) {
  const expected = crypto
    .createHmac("sha256", secret)
    .update(req.rawBody)
    .digest("hex");
  const given = req.get("X-Aiinak-Signature") ?? "";
  return crypto.timingSafeEqual(
    Buffer.from(expected),
    Buffer.from(given)
  );
}

Delivery and retries

At-least-once delivery

Use the event id for idempotency — the same event may be delivered more than once.

Exponential backoff

Non-2xx responses are retried for up to 24 hours with increasing delays.

Automatic disable

Endpoints failing for 3 consecutive days are disabled and admins are notified.