Webhooks and the API
Send registrations to HubSpot, Salesforce, Dynamics or any system as they happen, and read your delegates from your own systems.
On the Team and Agency yearly plans, Reg4Events can tell your other systems about your delegates as things happen, and those systems can read your delegates whenever they like. Set both up under Your events > Integrations.
- Webhooks push changes to you: someone registers, changes their details, is approved or cancels, checks in, or is scanned into a session.
- The API lets your systems pull data: your events, their forms, and their delegates (read-only).
You don't need a developer to start. Zapier, Make and Microsoft Power Automate can all receive a webhook and add the person to HubSpot, Salesforce, Dynamics 365, Pipedrive, Mailchimp, a spreadsheet and hundreds more.
Connecting a CRM with Zapier, Make or Power Automate
- In Zapier, make a Zap that starts with Webhooks by Zapier > Catch Hook (in Make, a Custom webhook; in Power Automate, When an HTTP request is received). Copy the address it gives you.
- In Reg4Events, go to Integrations > Add a webhook, paste the address, and choose what to send and which answers to include.
- Click Send test. Your tool receives a sample delegate, Alex Example, so you can map the fields:
delegate.first_name,delegate.email,delegate.answers.organisationand so on. - Add the step that creates or updates the contact in your CRM, and switch it on.
Tip
Use
delegate.id(or the email address) to match people, so a change updates the same contact instead of making a new one.
What we send
Each webhook can send any of these:
| Event | When |
|---|---|
delegate.created |
Someone registers, or you add, invite or wait-list them. If delegates confirm their email, it's sent when they confirm, not before |
delegate.updated |
Their details or answers change |
delegate.status_changed |
Approved, off the waiting list, declined or cancelled (with the status before) |
delegate.checked_in / delegate.check_in_undone |
They check in, or a check-in is undone |
delegate.sessions_changed |
Their session bookings change |
delegate.session_attended |
They're scanned into a session |
Every delivery includes the event (name, dates, venue) and the delegate: reference, status, type, name, email, their answers, marketing opt-in, whether they stopped your emails (emails_stopped_at), session bookings and attendance, and the times they registered, changed and checked in. Deliveries usually arrive within a minute.
Which answers go out
Name, email, status, type and marketing opt-in are always included. Then you choose: every answer, or only the answers you pick. Dietary requirements, allergies and access needs are health data, so they're left out unless you tick Also send health answers. Only do that if the system receiving them is allowed to hold health data, and say so on your form.
Marketing opt-in
Add the ready-made Marketing opt-in question to your form (Form tab > Ready-made questions). It's optional and unticked, so only people who choose to hear from you tick it. We send it as marketing_consent, with the time they gave it:
"marketing_consent": { "given": true, "at": "2026-10-22T09:14:03Z" }It's null if your form doesn't ask. Use it to decide who goes on marketing lists in your CRM: registering for an event isn't consent to marketing.
If your system doesn't answer
Your system should answer with a 2xx status within 8 seconds. If it doesn't, we try again after 1 minute, 5 minutes, 15 minutes, 1 hour, 3 hours, 6 hours and 12 hours. After the eighth failed try we pause the webhook and email you. Registrations carry on as normal. Once your system is answering again, resume the webhook, and use the API to catch up on anything you missed.
Recent deliveries under each webhook shows the last 20 tries with the answer your system gave.
For developers
Checking a webhook is from us
Each delivery is a POST with a JSON body and these headers:
X-R4E-Event: the event, e.g.delegate.created(pingfor a test)X-R4E-Delivery: a unique id,evt_…. The same change may very occasionally arrive twice, so ignore an id you've already handled.X-R4E-Signature:t=<unix time>,v1=<signature>
The signature is an HMAC-SHA256 of the time, a full stop and the raw body, keyed with the webhook's signing secret (under the webhook on the Integrations page). Check it, and that the time is within 5 minutes:
[$t, $v1] = [null, null];
foreach (explode(',', $_SERVER['HTTP_X_R4E_SIGNATURE'] ?? '') as $part) {
[$k, $v] = array_pad(explode('=', $part, 2), 2, '');
if ($k === 't') { $t = $v; } elseif ($k === 'v1') { $v1 = $v; }
}
$body = file_get_contents('php://input');
$ok = $t && $v1 && abs(time() - (int)$t) <= 300
&& hash_equals(hash_hmac('sha256', $t . '.' . $body, $secret), $v1);// Node.js (Express: use express.raw({ type: 'application/json' }) so you have the raw body)
const crypto = require('crypto');
const parts = Object.fromEntries(req.get('X-R4E-Signature').split(',').map(p => p.split('=')));
const expected = crypto.createHmac('sha256', secret).update(parts.t + '.' + req.body).digest('hex');
const ok = Math.abs(Date.now() / 1000 - Number(parts.t)) <= 300
&& (parts.v1 || '').length === expected.length
&& crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));import hmac, hashlib, time
parts = dict(p.split('=', 1) for p in request.headers['X-R4E-Signature'].split(','))
expected = hmac.new(secret.encode(), (parts['t'] + '.').encode() + request.get_data(), hashlib.sha256).hexdigest()
ok = abs(time.time() - int(parts['t'])) <= 300 and hmac.compare_digest(expected, parts.get('v1', ''))The API
Make a key under Integrations > API keys. We show it once, so keep it somewhere safe, like a password manager or your system's secret store. A key can be limited to one event and to chosen answers. Send it with every request:
curl -H "Authorization: Bearer r4e_…" https://reg4events.co.uk/r4e-api/v1/events| Request | Returns |
|---|---|
GET /r4e-api/v1/events |
Your events |
GET /r4e-api/v1/events/{event id} |
One event, with counts |
GET /r4e-api/v1/events/{event id}/fields |
Its form: each question's key, label, type and options, for mapping to your CRM |
GET /r4e-api/v1/events/{event id}/delegates |
Its delegates, 100 at a time |
GET /r4e-api/v1/events/{event id}/delegates/{delegate id} |
One delegate |
Delegates come oldest change first. Add these to the address to narrow the list:
since=2026-10-22T09:00:00Z(or a unix time): only delegates changed since then. Save theupdatedtime of the last one you got, and ask for changes since then next time.status=registered,pending: only those statuses. The statuses areregistered,pending(awaiting approval),waitlist,invited,declined,cancelledandunconfirmed(registered on the form, email not confirmed yet - no webhook is sent for these).limit=from 1 to 200.test=1: include test registrations. On a draft event they're always included.
If has_more is true, ask again with cursor= set to next_cursor. Errors come back as {"error": {"code": "…", "message": "…"}} with a matching status: 401 (no key or a wrong one), 403 (the account has no plan that includes the API), 404, 429 (too many requests; up to 300 a minute per key, see Retry-After).
The API only reads. To add delegates, use Add delegate or Import on the Delegates tab.
Your responsibilities
Data you send to another system is in your hands from then on. Our privacy clean-up deletes delegate data from Reg4Events 12 months after your event, but it can't reach copies in your CRM. Keep your signing secrets and API keys private. Revoke a key or make a new secret straight away if one may have leaked; the old one stops working at once. We keep a record of keys made and revoked, webhooks changed and delegate data read through the API, and can share it with you if you need it.
Updated 23 October 2026. Still stuck? Get in touch - you'll hear back from our events team.