Webhooks tell your system when an invite, a check, or an adverse-action case changes. Each delivery is an HTTPS POST signed with the endpoint secret.
Who it is for. A developer receiving events.
- Add an https URL and choose events on the API page, or call POST /api/v1/hooks.
- Copy the signing secret once. A later list of endpoints does not include it.
- Read X-PHB-Timestamp and X-PHB-Signature from the raw body, then compare the HMAC.
- Answer 2xx after you store the event. Anything else is retried.
Manage endpoints
On the API page, an owner or admin enters the URL and checks the events. check.completed starts checked. The same actions are available over the API.
| Call | Scope | Result |
|---|---|---|
| GET /api/v1/hooks | checks:read or webhooks:write | hooks (id, url, events, is_active, created_at) and the event catalog |
| POST /api/v1/hooks | checks:write or webhooks:write | id, url, events, and secret. The secret is not shown again. |
| DELETE /api/v1/hooks/:id | checks:write or webhooks:write | { ok: true } |
POST body is { "url": "https://example.com/hooks", "events": ["check.completed"] }. Omit events and the subscription is only check.completed. An empty events array saves an endpoint that receives nothing. An unknown name is 400 with Unknown webhook event.
The URL must be public https. Localhost, .local, .internal, metadata hosts, and private, loopback, or link-local addresses are rejected with The webhook URL must be a public https address. Delete an endpoint to stop delivery. There is no pause call.
Verify a delivery
The POST has content-type: application/json and two headers:
X-PHB-Timestampis Unix time in seconds.X-PHB-Signatureis the hex HMAC-SHA256 oftimestamp + "." + raw body, using the signing secret. There is no prefix on the hex.
Reject the request when the timestamp is more than five minutes ahead or behind your clock. Compare the hex with a timing-safe compare, and use the raw body. Re-serializing the JSON changes the signature.
const crypto = require("crypto");
function verifyWebhook(secret, timestamp, rawBody, signature) {
const issued = Number(timestamp);
if (!Number.isFinite(issued)) return false;
if (Math.abs(Date.now() / 1000 - issued) > 300) return false;
const expected = crypto
.createHmac("sha256", secret)
.update(timestamp + "." + rawBody)
.digest("hex");
const left = Buffer.from(expected);
const right = Buffer.from(signature);
if (left.length !== right.length) return false;
return crypto.timingSafeEqual(left, right);
}A delivery succeeds on any HTTP 2xx. There is no delivery-id header. A retry sends the same JSON with a new timestamp and a new signature, so store event plus the ids in the body.
Event payloads
The JSON is the event name plus the fields below. Example: { "event": "check.completed", "checkId": "CHECK_ID" }. A test-key create does not emit any event. A duplicate in-flight invite does not emit invite.sent.
| Event | Fields | When |
|---|---|---|
| invite.sent | inviteId, checkId | A new invite was created. checkId can be null. |
| invite.sent | inviteUrl | A CSV import sends the link instead of inviteId and checkId. |
| invite.completed | checkId | The candidate submitted authorization. |
| invite.expired | checkId, inviteId | The invite expired and the credit was refunded. |
| check.completed | checkId | A clear report was released. |
| check.records_found | checkId | A report with records was released. |
| check.report_revised | checkId, outcome | A dispute replaced the report. Outcome is clear, records_found, or unverifiable. |
| check.unverifiable | checkId | The check was refunded as unverifiable. |
| check.error | checkId | The screening call failed and the credit was refunded. |
| adverse_action.pre_notice_sent | checkId | The pre-adverse notice went out. |
| adverse_action.response_received | checkId | The candidate sent a response. |
| adverse_action.dispute_opened | checkId | A dispute paused the waiting period. |
| adverse_action.dispute_resolved | checkId | A dispute was resolved. |
| adverse_action.final_notice_sent | checkId | The final notice went out. |
| skills.completed | inviteId, testId, scorePercent | A candidate submitted a skills quiz. A test run does not emit this event. Answers are not included. |
| skills_test.sent | inviteId, testId | A reviewed quiz was sent to a candidate. A test run does not emit this event. |
| skills_test.completed | inviteId, testId, scorePercent | Sent with skills.completed when a candidate submits. A test run does not emit this event. |
| skills_test.expired | inviteId | A quiz link passed its open window. |
| course.assigned | courseSlug | A practice course was assigned. A test assignment does not emit this event. |
| course.completed | courseSlug | A person passed the practice exam. A test assignment does not emit this event. |
| job.published | job id, slug, and URL | A person published a job. The payload has ids, the slug, and the public URL only. |
| job.closed | job id, slug, and URL | A person closed a job. The payload has ids, the slug, and the public URL only. |
| application.received | application id, job id, candidate id, and source | Someone applied. The payload has those ids and the source only. |
| candidate.created | candidate_id, source | A person was added. The payload has the candidate id and the source only. |
| candidate.stage_changed | candidate_id, from_stage, to_stage, source | A person moved stage. The payload has those fields only. |
| integration.degraded | connection_id, provider | A connection failed five times in a row. The owner also gets an email. |
| reference_request.sent | request_id, status | A reference request was sent. status is awaiting_candidate. Names, contacts, and answers are not included. |
| reference_request.candidate_submitted | request_id, status | The candidate submitted their references. status is collecting. |
| reference.completed | request_id, reference_id, status | A reference finished. status is completed. Answers are not included. |
| reference.declined | request_id, reference_id, status | A reference declined. status is declined. |
| reference_request.completed | request_id, reference_id, status | Every requested reference is in. status is complete. |
| reference_request.expired | request_id, status | The request expired. status is expired. |
sendInvite: false still emits invite.sent with inviteId and checkId. The candidate email or text is skipped, and your system sends inviteUrl from the create response.
Retries run past one day

See API keys and the invite model.

