Skip to content

Webhooks

Webhooks let Evulora tell your system when something happens: a person is added, a journey is completed, a job opening opens. Evulora sends an HTTPS POST with a JSON body to an address you choose, signed with a secret that only you and Evulora know.

Create an endpoint

Endpoints are created in the app by the account owner or by whoever is in charge of Integrations, under Settings › Technical › Integrations, in the card “Notify another system when something happens”.

  1. Choose “New webhook”.
  2. Enter your address. It must start with https://, be reachable on the public internet (private and internal addresses are refused) and carry no user or password.
  3. Pick the events you want, or “Notify about everything”, which also covers events added later.
  4. Confirm with “Create webhook” and copy the “Signing secret”. It starts with whsec_ and is shown only once: store it with your other secrets.

In the same card you can turn an endpoint off (“Turn off”), see its deliveries (“Deliveries”) and delete it. If the secret leaks, create a new endpoint, switch your receiver to its secret and delete the old one.

The request

Every delivery is a POST with these headers:

Webhook request headers
Header Value
Content-Type application/json
User-Agent Evulora-Webhooks/1.0
X-Evulora-Event The event name, for example course.completed.
X-Evulora-Delivery The delivery id (a UUID). The same on every attempt and on a manual resend: use it to ignore repeats.
X-Evulora-Timestamp Unix time, in seconds, when this attempt was signed.
X-Evulora-Signature t=<timestamp>,v1=<hex>. See Verify the signature.

The body is a small JSON object:

{
  "id": "5d0c3f8e-2b61-4c7e-9a3d-1f4e8b7a6c20",
  "event": "course.completed",
  "occurred_at": "2026-10-25T14:03:11-03:00",
  "organization": "acme",
  "organization_id": "7c1e4b2a-93d5-4f0e-b8a1-2d6c5e9f0a13",
  "data": {
    "course_id": 12,
    "journey_id": 3,
    "user_id": 42,
    "subject": { "type": "course", "id": 12 }
  }
}
id
The delivery id, the same as X-Evulora-Delivery.
event · occurred_at
What happened and when (ISO 8601). Deliveries can arrive out of order: use occurred_at to order them.
organization_id
A fixed code of the company that never changes. Store this one to know which company the event belongs to.
organization
The company’s address in the app. It can change, so do not use it as a key.
data
The ids involved, which vary by event, plus subject (the type and id of the record the event is about). The body is kept small on purpose: fetch the full record from the API when you need it.

Delivery and retries

  • A delivery succeeds when your address answers any 2xx within 10 seconds. Redirects are not followed, so a 3xx counts as a failure. Answer fast and do the work afterwards, in a queue.
  • The first attempt goes right away. If it fails, Evulora tries again after 1 minute, 5 minutes, 30 minutes, 2 hours, 6 hours and 12 hours: 7 attempts in about 21 hours. After the last one the delivery is marked as not delivered.
  • Each attempt is signed again with a fresh timestamp, so retries pass the 5-minute check below. The delivery id stays the same.
  • You can send any delivery again from the app: open “Deliveries” on the endpoint and choose “Resend”. It keeps the same delivery id.
  • Because of retries and resends, the same delivery can reach you more than once. Store the ids you have processed and skip repeats.

Verify the signature

Check every delivery before you trust it. The header looks like X-Evulora-Signature: t=1792902209,v1=48f872…, where v1 is the hex HMAC-SHA256 of <t>.<raw body>, keyed with the endpoint’s secret (the whole whsec_… text).

  1. Read the raw body, exactly as received. Parsing and re-encoding the JSON changes the bytes and breaks the signature.
  2. Take t and v1 from the header and refuse the request if t is more than 5 minutes away from your clock. This stops replays.
  3. Compute the HMAC of t, a dot and the raw body, and compare it with v1 in constant time.
  4. Skip deliveries whose X-Evulora-Delivery you already processed, then answer 2xx.

Node.js

import crypto from 'node:crypto';
import express from 'express';

const app = express();
const secret = process.env.WEBHOOK_SECRET; // whsec_...
const TOLERANCE = 300; // seconds

// express.raw keeps the exact bytes received: the signature covers them, not re-serialized JSON.
app.post('/webhooks', express.raw({ type: 'application/json' }), (req, res) => {
  const match = /^t=(\d+),v1=([a-f0-9]{64})$/.exec(req.get('X-Evulora-Signature') ?? '');
  if (!match) return res.sendStatus(400);
  const [, timestamp, signature] = match;

  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > TOLERANCE) return res.sendStatus(400);

  const expected = crypto
    .createHmac('sha256', secret)
    .update(`${timestamp}.`)
    .update(req.body) // a Buffer with the raw body
    .digest();
  if (!crypto.timingSafeEqual(expected, Buffer.from(signature, 'hex'))) return res.sendStatus(400);

  const deliveryId = req.get('X-Evulora-Delivery');
  // Skip it if you already processed deliveryId; otherwise queue the event and answer right away.
  const event = JSON.parse(req.body.toString('utf8'));
  res.sendStatus(204);
});

app.listen(3000);

Python

import hashlib
import hmac
import os
import re
import time

from flask import Flask, abort, request

app = Flask(__name__)
SECRET = os.environ["WEBHOOK_SECRET"].encode()  # whsec_...
TOLERANCE = 300  # seconds
SIGNATURE = re.compile(r"^t=(\d+),v1=([a-f0-9]{64})$")


@app.post("/webhooks")
def receive_webhook():
    match = SIGNATURE.match(request.headers.get("X-Evulora-Signature", ""))
    if not match:
        abort(400)
    timestamp, signature = match.groups()

    if abs(time.time() - int(timestamp)) > TOLERANCE:
        abort(400)

    raw = request.get_data()  # the exact bytes received, before any JSON parsing
    expected = hmac.new(SECRET, timestamp.encode() + b"." + raw, hashlib.sha256).hexdigest()
    if not hmac.compare_digest(expected, signature):
        abort(400)

    delivery_id = request.headers["X-Evulora-Delivery"]
    # Skip it if you already processed delivery_id; otherwise queue the event and answer right away.
    event = request.get_json()
    return "", 204

PHP

<?php

$secret = getenv('WEBHOOK_SECRET'); // whsec_...
$tolerance = 300; // seconds
$body = file_get_contents('php://input'); // the raw body, before json_decode
$header = $_SERVER['HTTP_X_EVULORA_SIGNATURE'] ?? '';

if (! preg_match('/^t=(\d+),v1=([a-f0-9]{64})$/', $header, $m)) {
    http_response_code(400);
    exit;
}
[, $timestamp, $signature] = $m;

if (abs(time() - (int) $timestamp) > $tolerance) {
    http_response_code(400);
    exit;
}

$expected = hash_hmac('sha256', $timestamp.'.'.$body, $secret);
if (! hash_equals($expected, $signature)) {
    http_response_code(400);
    exit;
}

$deliveryId = $_SERVER['HTTP_X_EVULORA_DELIVERY'];
// Skip it if you already processed $deliveryId; otherwise queue the event and answer right away.
$event = json_decode($body, true);
http_response_code(204);

Events

The event name arrives in X-Evulora-Event and in event. New events may be added at any time; ignore the ones you do not handle.

Webhook events
Event When
People
person.created A person was added.
person.allocated A person started in a new job role.
person.deactivated A person’s access was ended.
Skills
skill.granted A skill was earned (course, journey), granted, or declared by the person.
skill.revoked A skill was removed from a profile.
skill.requested A person asked for a skill.
skill.request_decided A skill request was confirmed or declined.
skill.endorsed A colleague confirmed a skill.
Learning
journey.published A journey was published.
journey.assigned A journey was assigned.
lesson.completed A lesson was completed.
course.completed A course was completed.
quiz.passed A quiz was passed.
journey.completed A journey was completed.
assignment.completed_on_time A required assignment was completed on time.
assignment.overdue A required assignment is overdue.
certificate.issued A certificate was issued.
Wall
post.published A post was published on the wall.
Questions
question.asked A question was asked to a sector, or about a lesson.
question.answered A question was answered.
question.resolved An answer was marked as the official one.
Documents
document.published A document was published.
document.updated A document was updated.
Job openings
job_opening.opened A job opening was opened.
job_opening.closed A job opening was closed.
job_application.received An application was received.
job_application.evaluated An application was evaluated.
Surveys
survey.opened A survey was opened.
survey.answered A survey was answered.
survey.stage_closed A survey stage was closed.
survey.closed A survey was closed.
Meetings
meeting.called A meeting was called.
meeting.confirmed Attendance was confirmed.
meeting.declined A meeting was declined.
meeting.rescheduled A meeting was rescheduled.
meeting.cancelled A meeting was cancelled.
Qualification
achievement.granted An achievement was earned.
challenge.completed A challenge was completed.
challenge.claimed A person said they completed a challenge.
challenge.claim_confirmed A challenge completion claim was confirmed.
challenge.claim_rejected A challenge completion claim was rejected.
recognition.granted A person was recognized (for a challenge or on its own).
challenge.reward_delivered A reward was delivered.
Alerts
alert.received An alert was received.
alert.resolved An alert was resolved.
Performance feedback
feedback.sent Performance feedback was sent.
feedback.acknowledged The person acknowledged the feedback.
feedback.conversation_requested A follow-up conversation was requested.
feedback.archived Feedback was archived.
AI videos
ai_video.ready A video is ready.
ai_video.failed A video could not be generated.