This page is for having your own system told when something happens in your workspace, instead of polling the API. You give us an HTTPS address; we send it a signed JSON request when an application is created, changes stage or is rejected, and when a new candidate is added. Below: how to set one up, what each event looks like, how retries work, and how to check the signature in Node, PHP and Python.
Set one up
In the app, open Settings → Sources → Developer & API, find the Webhooks group and tap Add webhook:
- URL. Must start with
https://. A workspace can have up to 10 endpoints. - Events. Tick the events this endpoint should get. Different endpoints can take different events.
The URL and the events cannot be edited once the endpoint exists. To change either, delete the endpoint and add it again (deleting drops its pending deliveries).
Open the endpoint to see its signing secret (whsec_…, behind Show), switch it off and on, Rotate the secret, Send test, and see its recent deliveries with the status code your server returned. Webhooks are managed by the workspace owner, and need a paid plan like the rest of the API.
Events
| Event | Sent when |
|---|---|
application.created |
An application is added to one of your jobs: through the API, by hand in the app, or from a job board. |
application.stage_changed |
An application moves to another stage. |
application.rejected |
An application is rejected. |
candidate.created |
A new person is added to the workspace. A person who matched someone already there does not count. |
ping |
You pressed Send test in the app, on an endpoint that is switched on. Sent whichever events are ticked. |
Activity on jobs and candidates synced from a connected ATS never triggers a webhook; your ATS has its own. One API request that creates a new person and their application sends both candidate.created and application.created.
The request
POST /hooks/recruit-swipe HTTP/1.1
Content-Type: application/json
User-Agent: RecruitSwipe-Webhooks/1
X-RecruitSwipe-Event: application.created
X-RecruitSwipe-Delivery: 8d2f6c1e-3b7a-4e95-a0c4-6f1d2e9b7a35
X-RecruitSwipe-Signature: t=1792050720,v1=3f7c0b2a9d4e…
| Header | Meaning |
|---|---|
X-RecruitSwipe-Event |
The event type, the same as type in the body. |
X-RecruitSwipe-Delivery |
This delivery’s id: unique per event per endpoint, and the same on every retry. Use it to ignore repeats. |
X-RecruitSwipe-Signature |
t=<Unix seconds>,v1=<hex HMAC-SHA256>. See verifying signatures. |
Every body has the same envelope:
{
"id": "5e0c7a91-2d4b-4f68-9a13-7b2e6c0d8f41",
"type": "application.created",
"created_at": "2026-10-14T09:12:00Z",
"workspace_id": "0d6b4c1a-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
"data": { }
}
id identifies the event; one event sent to several endpoints has the same id at each. data holds whichever of these objects the event is about:
application:id,job_id,candidate_id,stage(key,name,type),status,source_channel,applied_at,created_at,updated_at. The same fields as an item fromGET /applications, without the embeddedcandidateandjobsummaries; the full objects come alongside it instead.candidate: the same fields as an item fromGET /candidates.job: the job asGET /jobslists it, withoutstages(and withoutdescription, which onlyGET /jobs/:idhas).
Every application.* event carries application, candidate and job. candidate is null when the person was brought in by a sync from a connected ATS: the API does not serve those people (GET /candidates/:id answers 404), so webhooks do not either.
application.created
{
"id": "5e0c7a91-2d4b-4f68-9a13-7b2e6c0d8f41",
"type": "application.created",
"created_at": "2026-10-14T09:12:00Z",
"workspace_id": "0d6b4c1a-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
"data": {
"application": {
"id": "2a9e6b31-0c47-4d8f-b2a1-8e5f7c3d9a10",
"job_id": "7f3c9a2e-4b1d-4e8a-9c55-1d2e3f4a5b6c",
"candidate_id": "c41d8e72-95ab-4f30-8e16-3b7a2d6f0e94",
"stage": { "key": "applied", "name": "Applied", "type": "applied" },
"status": "active",
"source_channel": "api",
"applied_at": "2026-10-14T09:12:00Z",
"created_at": "2026-10-14T09:12:00Z",
"updated_at": "2026-10-14T09:12:00Z"
},
"candidate": {
"id": "c41d8e72-95ab-4f30-8e16-3b7a2d6f0e94",
"full_name": "Jane Doe",
"headline": null,
"location": "Austin, TX",
"emails": ["jane.doe@example.com"],
"phones": ["+1 555 0142"],
"linkedin_url": null,
"skills": [],
"source": "api",
"created_at": "2026-10-14T09:12:00Z",
"updated_at": "2026-10-14T09:12:00Z"
},
"job": {
"id": "7f3c9a2e-4b1d-4e8a-9c55-1d2e3f4a5b6c",
"title": "Senior Data Engineer",
"location": "Austin, TX",
"location_city": "Austin",
"location_region": "TX",
"location_country_code": "US",
"remote_type": "hybrid",
"employment_type": "full_time",
"status": "open",
"pay": { "min": 140000, "max": 165000, "currency": "USD", "period": "year" },
"openings": 1,
"published": true,
"created_at": "2026-10-02T15:04:11Z",
"updated_at": "2026-10-09T08:30:52Z"
}
}
}
application.stage_changed
data.application.stage is the new stage; data.previous_stage is the one it left, or null if that stage no longer exists.
{
"id": "b7d40e2c-61f9-4a8b-93c5-0e2a7f1d6c84",
"type": "application.stage_changed",
"created_at": "2026-10-14T11:40:05Z",
"workspace_id": "0d6b4c1a-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
"data": {
"application": {
"id": "2a9e6b31-0c47-4d8f-b2a1-8e5f7c3d9a10",
"stage": { "key": "screened", "name": "Screened", "type": "screen" },
"status": "active",
"…": "the rest of the application, as above"
},
"previous_stage": { "key": "applied", "name": "Applied", "type": "applied" },
"candidate": { "id": "c41d8e72-95ab-4f30-8e16-3b7a2d6f0e94", "…": "the full candidate, as above" },
"job": { "id": "7f3c9a2e-4b1d-4e8a-9c55-1d2e3f4a5b6c", "…": "the full job, as above" }
}
}
application.rejected
data.application.status is rejected. data.rejection_reason is the reason the recruiter picked, or null if none.
{
"id": "e1a93c57-08d2-4b6f-8e4a-2c9b5d7f0a16",
"type": "application.rejected",
"created_at": "2026-10-15T16:02:44Z",
"workspace_id": "0d6b4c1a-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
"data": {
"application": {
"id": "2a9e6b31-0c47-4d8f-b2a1-8e5f7c3d9a10",
"stage": { "key": "screened", "name": "Screened", "type": "screen" },
"status": "rejected",
"…": "the rest of the application, as above"
},
"rejection_reason": { "id": "4c8e2a17-9b3d-4f60-a5e1-7d2c9b0f3e68", "name": "Not a fit for the role" },
"candidate": { "id": "c41d8e72-95ab-4f30-8e16-3b7a2d6f0e94", "…": "the full candidate, as above" },
"job": { "id": "7f3c9a2e-4b1d-4e8a-9c55-1d2e3f4a5b6c", "…": "the full job, as above" }
}
}
candidate.created
{
"id": "9f2b6d40-7e1c-4a35-b8d9-3c0e5a7f2b61",
"type": "candidate.created",
"created_at": "2026-10-14T09:15:30Z",
"workspace_id": "0d6b4c1a-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
"data": {
"candidate": {
"id": "d58a1f3e-2c6b-4e97-a0d4-8b3f1e6c9a27",
"full_name": "Priya Shah",
"headline": "Senior data engineer",
"location": "Austin, TX",
"emails": ["priya.shah@example.com"],
"phones": [],
"linkedin_url": null,
"skills": ["Spark", "Airflow", "Python"],
"source": "referral",
"created_at": "2026-10-14T09:15:30Z",
"updated_at": "2026-10-14T09:15:30Z"
}
}
}
ping
data.webhook_id is the endpoint the test was sent to. A ping’s id is its delivery id, so it matches X-RecruitSwipe-Delivery.
{
"id": "0a4e8c26-5d1b-4f93-a7e2-6b9d3c1f8e05",
"type": "ping",
"created_at": "2026-10-14T09:00:00Z",
"workspace_id": "0d6b4c1a-2e3f-4a5b-8c7d-9e0f1a2b3c4d",
"data": { "webhook_id": "3c7f1e2a-8b4d-4a69-9e05-2d6b8f1c4a73" }
}
Responding, retries and switching off
- Answer with any
2xxwithin 10 seconds. That is a delivery. Do slow work after you answer, or queue it. - We send new events about once a minute, so expect up to a minute or so between the change and the request.
- Anything else is a failure: a non-2xx status, no answer within 10 seconds, or no connection. A
3xxcounts as a failure too: we do not follow redirects, so register the final address. We also refuse to call a host that resolves to a private, loopback or link-local address; that attempt fails withblocked_hostand is retried like any other. We try again after about 1 minute, then 5 minutes, 30 minutes, 2 hours and 12 hours. After the sixth failed attempt the delivery is marked dead and not tried again. You can see each attempt in the app. - An endpoint that fails 50 times in a row is switched off. No more events are sent to it until you switch it back on in the app. A successful delivery resets the count.
- Expect repeats and any order. A delivery can arrive more than once (for example when your answer times out after you processed it, or when we crash right after a successful send and send it again with the same delivery id), and a retry can land after a later event. Ignore a
X-RecruitSwipe-Deliveryyou have already handled, and compareupdated_atbefore overwriting newer data.
Verifying signatures
Every request is signed with the endpoint’s secret, so you can tell it came from us and was not changed or replayed. The header looks like:
X-RecruitSwipe-Signature: t=1792050720,v1=3f7c0b2a9d4e…
To check it:
- Split the header on
,and each part on the first=, to gettandv1. - Reject the request if
tis more than 5 minutes (300 seconds) away from your clock. - Compute the HMAC-SHA256 of the string
<t>.<raw body>(thetvalue, a full stop, then the request body exactly as received), using the whole signing secret,whsec_included, as the key. Hex-encode it. - Compare it with
v1in constant time. Reject the request if they differ.
Use the raw body. If your framework parses the JSON first and you re-serialise it, the bytes change and the signature will not match.
Node (18 or later, with Express)
import crypto from 'node:crypto';
import express from 'express';
const SECRET = process.env.RS_WEBHOOK_SECRET; // whsec_…
const TOLERANCE_SECONDS = 300;
function verifySignature(rawBody, header) {
if (!header) return false;
const parts = {};
for (const part of header.split(',')) {
const i = part.indexOf('=');
if (i > 0) parts[part.slice(0, i).trim()] = part.slice(i + 1).trim();
}
if (!/^\d+$/.test(parts.t ?? '') || !parts.v1) return false;
if (Math.abs(Date.now() / 1000 - Number(parts.t)) > TOLERANCE_SECONDS) return false;
const expected = crypto
.createHmac('sha256', SECRET)
.update(`${parts.t}.`)
.update(rawBody) // a Buffer, exactly as received
.digest('hex');
const a = Buffer.from(expected, 'utf8');
const b = Buffer.from(parts.v1, 'utf8');
return a.length === b.length && crypto.timingSafeEqual(a, b);
}
const app = express();
// express.raw keeps the body as a Buffer, so the signature can be checked.
app.post('/hooks/recruit-swipe', express.raw({ type: 'application/json' }), (req, res) => {
if (!verifySignature(req.body, req.get('X-RecruitSwipe-Signature'))) {
return res.status(400).send('bad signature');
}
const event = JSON.parse(req.body.toString('utf8'));
res.sendStatus(204); // answer first, then do the work
console.log(event.type, req.get('X-RecruitSwipe-Delivery'));
});
app.listen(3000);
PHP
<?php
$secret = getenv('RS_WEBHOOK_SECRET'); // whsec_…
$payload = file_get_contents('php://input');
$header = $_SERVER['HTTP_X_RECRUITSWIPE_SIGNATURE'] ?? '';
$parts = [];
foreach (explode(',', $header) as $part) {
$pair = explode('=', trim($part), 2);
if (count($pair) === 2) {
$parts[$pair[0]] = $pair[1];
}
}
$t = $parts['t'] ?? '';
$v1 = $parts['v1'] ?? '';
if (!ctype_digit($t) || abs(time() - (int) $t) > 300) {
http_response_code(400);
exit('stale or missing timestamp');
}
$expected = hash_hmac('sha256', $t . '.' . $payload, $secret);
if (!hash_equals($expected, $v1)) {
http_response_code(400);
exit('bad signature');
}
$event = json_decode($payload, true);
http_response_code(204);
// handle $event['type'] …
Python (with Flask)
import hashlib
import hmac
import os
import time
from flask import Flask, request
SECRET = os.environ["RS_WEBHOOK_SECRET"] # whsec_…
TOLERANCE_SECONDS = 300
def verify_signature(raw_body: bytes, header: str | None) -> bool:
if not header:
return False
parts = dict(p.strip().split("=", 1) for p in header.split(",") if "=" in p)
t, v1 = parts.get("t", ""), parts.get("v1", "")
if not t.isdigit() or not v1:
return False
if abs(time.time() - int(t)) > TOLERANCE_SECONDS:
return False
expected = hmac.new(SECRET.encode(), t.encode() + b"." + raw_body, hashlib.sha256).hexdigest()
return hmac.compare_digest(expected, v1)
app = Flask(__name__)
@app.post("/hooks/recruit-swipe")
def recruit_swipe_hook():
raw = request.get_data() # the raw bytes, before any JSON parsing
if not verify_signature(raw, request.headers.get("X-RecruitSwipe-Signature")):
return "bad signature", 400
event = request.get_json()
print(event["type"], request.headers.get("X-RecruitSwipe-Delivery"))
return "", 204
Rotating the secret. Rotate in the app if the secret may have leaked. The next delivery is signed with the new one, so update your server promptly; anything that fails in between is retried on the schedule above, so a short gap loses nothing.
Testing
Send a test. In the app, open the endpoint and press Send test. The endpoint must be switched on; a paused one refuses the test. A ping event goes out within about a minute, signed like any other. It is the quickest way to check your URL and your signature code.
On your own machine. Endpoints must be https://, so http://localhost:3000 cannot be added directly. Put a tunnel in front of it: a tool such as cloudflared tunnel --url http://localhost:3000 or ngrok http 3000 prints a public HTTPS address that forwards to your machine. Add that address plus your path (for example https://random-name.trycloudflare.com/hooks/recruit-swipe) as an endpoint, press Send test, and watch your server’s log. Delete the endpoint when you are done, since the address stops working when the tunnel closes and the endpoint will fail until it is switched off.
If it doesn’t work
- Nothing arrives. Check the endpoint is switched on and the event is ticked. Activity on synced ATS jobs never sends a webhook. Give it a minute. If deliveries show failures, check that your address answers
2xxdirectly (a redirect fails) and resolves to a public address (blocked_hostotherwise). - Your server answers 400 for a bad signature. You are almost certainly hashing a parsed and re-serialised body; hash the raw bytes. Then check the secret is the current one (after a rotation) and complete,
whsec_included. - Stale timestamp. Your server’s clock is off by more than 5 minutes. Sync it with NTP.
- Deliveries show timeouts. Answer within 10 seconds and do the work afterwards.
- The endpoint switched itself off. It failed 50 times in a row. Fix the cause, then switch it on in the app.