Payload data
The envelope
Every delivery is a JSON POST with the same envelope, whatever the event:
{
"event": "attempt.graded",
"timestamp": "2026-10-18T12:51:30+00:00",
"site": "https://your-site.example",
"data": { … }
}
| Field | Type | Meaning |
|---|---|---|
event |
string | The event name. The same as the X-NextExams-Event header |
timestamp |
string | When the event was sent, ISO 8601 with offset |
site |
string | The sending site's root address, so one receiver can serve several sites |
data |
object | The event's own fields, below |
Headers
| Header | Value |
|---|---|
Content-Type |
application/json |
X-NextExams-Event |
The event name |
X-NextExams-Signature |
sha256= followed by the hex HMAC of the body. See Verifying signatures |
X-NextExams-Delivery |
The delivery's id. The same on every retry of one delivery, so dedupe on it. Not sent on a ping |
User-Agent |
NextExams-Webhook/1.0 |
What data contains
attempt.submitted and attempt.graded
{
"attempt_id": 263,
"exam_id": 7,
"exam_title": "Safety induction",
"user_id": 412,
"guest_email": null,
"examinee_name": "Dana Kovacs",
"attempt_number": 1,
"status": "graded",
"passed": true,
"is_graded": true,
"score": 18,
"max_score": 20,
"percent": 90,
"scaled_score": null,
"band": null,
"submitted": "2026-10-18 12:51:30",
"result_url": "https://your-site.example/exams/result/263"
}
| Field | Meaning |
|---|---|
attempt_id |
The attempt. Fetch it in full with GET /attempts/{id} |
exam_id, exam_title |
The exam |
user_id |
The examinee's Joomla user id, or null for a guest |
guest_email |
A guest's email, if the exam asked for one |
examinee_name |
The user's name, or the name a guest gave |
attempt_number |
1 for their first attempt at this exam |
status |
submitted while a question waits for a person to grade it; graded once final |
passed, is_graded |
Booleans. passed means nothing until is_graded is true |
score, max_score, percent |
Numbers, or null before grading |
scaled_score, band |
The exam's score scale applied at grading, such as 350 and "B". null when the exam has no scale. With a scale, the band decides passed |
submitted |
UTC, as YYYY-MM-DD HH:MM:SS |
result_url |
The examinee's result page |
Note: these values are sent whatever the exam's result-release policy says. A receiver that shows them to the examinee should respect the policy itself.
certificate.issued
{
"certificate_id": 91,
"number": "2026/0042",
"attempt_id": 263,
"exam_id": 7,
"exam_title": "Safety induction",
"user_id": 412,
"guest_email": null,
"recipient_name": "Dana Kovacs",
"issued_at": "2026-10-18 12:51:31",
"expires_at": null
}
expires_at is null for a certificate that never expires. Both dates are UTC, as YYYY-MM-DD HH:MM:SS.
pass.granted, pass.revoked and pass.expired
The three access pass events carry the pass as it stands after the change:
{
"grant_id": 57,
"user_id": 412,
"user_email": "[email protected]",
"plan_id": 3,
"plan_title": "Reading Part A — 3 days",
"source": "api",
"source_ref": "order-1042-line-1",
"starts_at": "2026-11-05 14:00:00",
"expires_at": "2026-11-08 14:00:00",
"status": "active",
"extended": false
}
| Field | Meaning |
|---|---|
grant_id |
The pass. Fetch it with GET /passes/grants/{id} |
user_id, user_email |
The holder |
plan_id, plan_title |
The plan the pass is for |
source |
manual, api, or ext:<element> for a pass an extension granted |
source_ref |
The reference the pass was granted with — your order line — or null |
starts_at, expires_at |
UTC, as YYYY-MM-DD HH:MM:SS. expires_at is null for a pass that never ends |
status |
active, revoked or expired |
extended |
true when a pass.granted is an extension of an existing pass; its expires_at is the new end |
A shop matching passes to orders should key on source_ref. pass.expired is sent whether or not the Access Passes app is on, because an expiry is the end of access, not a feature.
ping
{ "message": "NextExams webhook test ping.", "webhook_id": 3 }
Handling deliveries
- Verify the signature first, before parsing. See Verifying signatures.
- Answer quickly with a 2xx, then do the slow work in the background. A delivery that takes longer than 8 seconds counts as failed and is sent again.
- Dedupe on
X-NextExams-Delivery. A retry carries the same id. - Ignore fields you do not recognise. New ones may be added.