Webhooks

How Dio posts signed events to your endpoint when interviews end and are scored: the envelope, the event catalogue, retries, URL rules and signature checks.

An interview runs about 20 minutes, and scoring takes several more after it ends. Rather than have you poll, Dio posts an event to your endpoint when something happens: a signed HTTPS POST with a small JSON body that says what happened and to which record. You then fetch the details with your API key.

Registering an endpoint

Today a signed-in admin registers endpoints in the app: Settings → API & webhooks, then Add endpoint. Over the API, the same thing is POST /v1/webhook-endpoints, made from a signed-in admin's session. Registering an endpoint with an admin API key is in early access.

Dio checks the URL when you register it (see URL rules) and answers with the endpoint's signing secret, whsec_…. The secret is shown once. Store it where your receiver can read it; you need it to verify every delivery.

An endpoint registered without a list of events receives the two events every workspace with the API has:

  • session.completed, when an interview ends;
  • scorecard.ready, when an interview has been scored.

The other events in the catalogue are in early access. Elsewhere, asking for them is refused with a 400 that names them.

The envelope

Every delivery's body is one event:

{
  "id": "evt_3f9a1c2b4d5e",
  "type": "scorecard.ready",
  "version": "2026-10",
  "created_at": "2026-11-20T14:02:11.483000+00:00",
  "data": {
    "session_id": "sess_7d0e5b9c2a14",
    "job_id": "job_126f809ebbe2",
    "scorecard_id": "sc_5d2e8a1f9b07",
    "references": []
  }
}
Field Meaning
id The event's id. It is the same at every endpoint the event is delivered to and on every retry, so de-duplicate on it.
type The event type, from the catalogue.
version The envelope's format, 2026-10.
created_at When the delivery was queued, moments after the event in the ordinary case.
data Ids and states for the record the event is about. Every event's data carries references: your system's ids for the record, an empty list unless you sent ATS references (early access).

Read every field of data as optional, and ignore fields you don't recognise: fields are added without notice (Changelog).

Deliveries are at least once. A network failure can mean you receive the same event twice, so store the id of each event you have handled and skip one you have seen.

What events never carry

No event carries a candidate's name, an email address, the transcript or any score. A webhook body ends up in your logs and your proxy's logs, and what a candidate said and how they were scored don't belong in either. Fetch them from the interview routes with your key: getScorecard, getTranscript and getScorecardPdf.

Headers

Header Carries
Getdio-Signature t=<unix seconds>,v1=<hex digest>: the signature to check. See Verifying a signature.
Getdio-Delivery The delivery's own id, whd_…. The same on every retry of that delivery.
Getdio-Event The event type, the same as the body's type.

Event catalogue

Each row lists what data holds beside references. Events marked early access are delivered only once that is switched on for your workspace.

Type When data Available
session.completed An interview ended. session_id, job_id, status, end_reason, duration_minutes Every workspace with the API
scorecard.ready An interview was scored. session_id, job_id, scorecard_id Every workspace with the API
invite.created An interview link was made. invite_id, job_id, expires_at, emailed, source (api, app or open_link), run_id Early access
invite.sent Dio's invitation email for a link went out. Once per link. invite_id, job_id, sent_at Early access
invite.expired A link expired without being used. Once per link. invite_id, job_id, expired_at Early access
invite.revoked A recruiter revoked a link. invite_id, job_id Early access
session.started A candidate started an interview. session_id, invite_id, job_id, started_at Early access
session.not_assessed An interview will get no scorecard without somebody acting. session_id, job_id, reason Early access
session.deleted An interview was deleted. Once per interview. session_id, invite_id, job_id, reason Early access
review.decided A reviewer recorded a decision. session_id, job_id, decision, scorecard_id, supersedes Early access
ats.application_created A connected ATS reported a new application for a linked role. connection_id, job_external_id, external_event_id, occurred_at Early access
ats.stage_changed A connected ATS reported an application moving stage. As above, with stage (id, name) Early access
ats.job_opened A connected ATS reported a published job with no role yet. connection_id, job_external_id, job_title, external_event_id, occurred_at Early access

session.completed

Sent when the interview ends, as reported by Dio's interviewer. status is the interview's status, completed once it has ended, and end_reason says how it ended, for example completed, early_exit or time_exhausted; handle values you don't know. An interview that never reports its end is closed by Dio three hours after it started, and sends no session.completed.

An ended interview is not necessarily one that will be scored. Wait for scorecard.ready before fetching a scorecard, and read the interview's scoring_status with getInterview if one doesn't arrive.

scorecard.ready

Sent when scoring has produced a scorecard. Fetch it with GET /v1/sessions/{session_id}/scorecard, and the PDF with GET /v1/sessions/{session_id}/scorecard.pdf. Reading a scorecard explains the fields.

Delivery and retries

Each attempt waits 10 seconds for your answer.

  • A 2xx answer means delivered.
  • A 4xx other than 408 and 429 ends the delivery at once. An endpoint that answers 400 will answer 400 again, so Dio doesn't retry it.
  • Everything else is retried: a 5xx, a 408 or 429, a redirect, a timeout, a connection or TLS failure. Redirects are never followed.

A delivery gets six attempts in all, over about five hours:

After attempt The next one comes
1 30 seconds later
2 2 minutes later
3 10 minutes later
4 1 hour later
5 4 hours later
6 Never: the delivery is dead

A dead delivery keeps its payload. When an endpoint's delivery dies, Dio notifies the workspace's admins, by email unless they have turned that notice off, at most once a day per endpoint.

Because a slow answer counts as a failure, answer with a 2xx as soon as you have checked the signature and stored the event, and do the work afterwards.

URL rules

An endpoint's URL is checked when it is registered and again at every attempt. It must be:

  • https://, on port 443 (no port, or :443), with no username or password in it, at most 2,048 characters, and no whitespace;
  • a hostname with a dot in it: not an IP address, and not localhost or a name under .local, .internal, .home, .lan, .test or .invalid;
  • a name that resolves to public addresses only. A name that resolves to a private, loopback, link-local or metadata address is refused, and so is a name that doesn't resolve yet.

A URL that fails is refused with a 400 saying so. At each attempt Dio resolves the name again and connects to the address it checked, presenting your hostname for TLS, so your certificate works as usual. A delivery whose URL fails the check at that moment is dead at once and not retried.

The delivery log

GET /v1/webhook-deliveries lists what Dio tried to send and what came back, newest first. Today it answers a signed-in admin's session; an admin key reading the deliveries to its own endpoints is early access. In the app, Settings → API & webhooks shows each endpoint's last delivery and its status. Each delivery has:

Field Meaning
id The delivery, whd_…. The value of the Getdio-Delivery header.
endpoint_id, event_type, event_id Where it went and which event it carried.
status pending, sending, delivered or dead.
attempts How many attempts have been made.
response_status The status your endpoint answered last.
last_error Why the last attempt failed, as a class: dns_error, tls_error, timeout, connect_error, network_error, protocol_error, send_error, endpoint_gone, unsafe_url, or http_ and the status for an answer that was not 2xx.
replay_of The original delivery, for a replay.
created_at, delivered_at When it was queued and when it was delivered.

Filtering and paging the log, sending test deliveries, rotating an endpoint's secret and replaying a delivery are in early access.

Verifying a signature

Check every delivery before you trust it. The Getdio-Signature header looks like this:

Getdio-Signature: t=1795183331,v1=5f2b9c0e4a7d1b3f6e8a2c4d9b0f1e3a5c7d9e1f3a5b7c9d1e3f5a7b9c1d3e5f

t is when the delivery was signed, in Unix seconds. Each v1 is a hex HMAC-SHA256 digest of the string {t}.{raw body}, keyed with your endpoint's secret. To check a delivery:

  1. Read the raw body before parsing any JSON. The signature is over the exact bytes Dio sent. Parsing the JSON and serialising it again changes the bytes, and the signature won't match.
  2. Reject old timestamps. A delivery signed more than five minutes ago fails. Without this check, anyone who captured one delivery could send it to you again forever.
  3. Try every v1. For 24 hours after a secret is rotated the header carries two digests, one for the new secret and one for the old, so accept the delivery if any of them matches the secret you hold. Compare in constant time.
  4. Answer 2xx fast. Once the signature checks out, store the event, answer, and do the work afterwards.

In Python:

import hashlib
import hmac
import time

TOLERANCE = 300  # seconds


def verify(secret: str, header: str, body: bytes) -> bool:
    """True when a delivery was signed with your endpoint's secret in the last five minutes.

    `body` is the raw request body, before any JSON parsing.
    """
    parts = [piece.split("=", 1) for piece in header.split(",") if "=" in piece]
    timestamps = [value for key, value in parts if key == "t"]
    digests = [value for key, value in parts if key == "v1"]
    if len(timestamps) != 1 or not digests or not timestamps[0].isdigit():
        return False
    if abs(time.time() - int(timestamps[0])) > TOLERANCE:
        return False
    signed = timestamps[0].encode() + b"." + body
    expected = hmac.new(secret.encode(), signed, hashlib.sha256).hexdigest()
    return any(hmac.compare_digest(expected, digest) for digest in digests)

In Node.js:

const crypto = require("node:crypto");

const TOLERANCE = 300; // seconds

// body: the raw request body as a Buffer, before any JSON parsing.
function verify(secret, header, body) {
  const parts = header.split(",").map((piece) => piece.split("="));
  const timestamps = parts.filter(([key]) => key === "t").map(([, value]) => value);
  const digests = parts.filter(([key]) => key === "v1").map(([, value]) => value);
  if (timestamps.length !== 1 || digests.length === 0 || !/^\d+$/.test(timestamps[0])) {
    return false;
  }
  if (Math.abs(Date.now() / 1000 - Number(timestamps[0])) > TOLERANCE) return false;
  const expected = crypto
    .createHmac("sha256", secret)
    .update(`${timestamps[0]}.`)
    .update(body)
    .digest("hex");
  return digests.some(
    (digest) =>
      digest.length === expected.length &&
      crypto.timingSafeEqual(Buffer.from(digest), Buffer.from(expected)),
  );
}

In Express, read the body with express.raw({ type: "application/json" }) on the webhook route so it arrives as a Buffer; in Flask, use request.get_data(). The Quickstart has a complete Flask receiver.

If a delivery fails the check, answer 401 and don't act on it. A 4xx is not retried, so if real deliveries start failing, check that your receiver holds the endpoint's current secret.