Hiring API
API v1Screen candidates on WhatsApp from your ATS or any other system. All requests go to this base URL, over HTTPS, with JSON bodies.
https://quilzy.com/api/v3/hiring/v1
Import into Postman: https://quilzy.com/api/v3/hiring/v1/openapi.json. It is the OpenAPI 3.1 spec of every route and webhook, and needs no key.
Quick start
The Hiring API lets your ATS or any other system screen candidates on WhatsApp. You call our API to make a screening link. Your system sends the link to the candidate. When the candidate taps it, our WhatsApp bot asks every question. We send you the result by webhook.
First, an owner or admin opens Settings > Developers in the Hiring app and creates an API key. The key is shown once, so copy it then. The API needs a paid plan.
1. Test your key
curl https://quilzy.com/api/v3/hiring/v1/me \ -H "Authorization: Bearer hk_live_YOUR_KEY"
2. List the jobs you can screen for
Each open job is a screening template. Its screening questions are the screening.
curl https://quilzy.com/api/v3/hiring/v1/screenings/templates \ -H "Authorization: Bearer hk_live_YOUR_KEY"
3. Make a screening link for one candidate
Pass our job id and your own ids for the candidate. The reply has a whatsapp_url. Send that link to the candidate by your own email or SMS. We send the candidate nothing.
curl -X POST https://quilzy.com/api/v3/hiring/v1/screenings \
-H "Authorization: Bearer hk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: 4f9b2c1e-screening-c_88" \
-d '{
"job_id": "665f1c2ab4e8a90012cd3456",
"external_ref": { "candidate_id": "c_88", "application_id": "a_91" }
}'Then add a webhook endpoint (see Webhooks) to get screening.completed with the score and answers.
Authentication
Every call needs an API key. Keys start with hk_live_. The workspace owner and admins create them under Settings > Developers. A key is shown once. After that the app shows only its last 4 characters. If you lose a key, revoke it and create a new one. A workspace can have at most 10 live keys. Creating more answers 409 key_limit on the Developers page.
A key acts for the whole workspace with admin rights. Every change it makes is recorded as made by the person who created the key. Keep it on your server. Never put it in a web page or a mobile app.
Send the key
Send the key in the Authorization header, as a Bearer token:
curl https://quilzy.com/api/v3/hiring/v1/me \ -H "Authorization: Bearer hk_live_YOUR_KEY"
Or use Basic Auth, with the key as the username and a blank password. Use this when your ATS can only call outside services with Basic Auth.
curl https://quilzy.com/api/v3/hiring/v1/me \ -u hk_live_YOUR_KEY:
- No key, a wrong or revoked key, or a key in the query string gets
401 invalid_key. A key in the query string is refused even next to a good header. - A key works only while the person who created it is an owner or admin of the workspace. Otherwise every call answers
401 key_owner_removed. Create a new key.
Plans
The API needs a paid plan. On the Free plan every call answers 402 plan_required. If a paid plan ends, its keys stop working but are not deleted. They work again after an upgrade.
Scopes
A key has up to four scopes, all on by default. A call to a route outside the key's scopes gets 403 missing_scope.
| Scope | Routes |
|---|---|
jobs | Clients and jobs: list, read, create, update, open, pause and close. |
screenings | Screenings, stage changes, follow-up messages and interviews. |
candidates | Candidate details, the resume and resume questions. |
webhooks | Webhook endpoints. |
- The
screeningsandwebhooksscopes see candidate contact details (name, phone and email) in screening objects and event bodies. Treat a key with either scope as having access to candidate data. callback_urlonPOST /screeningsneeds thewebhooksscope as well. Without it the call answers403 missing_scope.
Test a key
GET/mescope: any
The key's workspace, scopes and plan. Use it to check that a key works. workspace.kind is agency or company. plan.tier is hiring-starter or hiring-pro.
{
"workspace": {
"id": "6650aa11c2d3e4f5a6b7c8d9",
"name": "Acme Staffing",
"kind": "agency"
},
"key": {
"id": "6650aa11c2d3e4f5a6b7c8e1",
"name": "ATS",
"scopes": [
"jobs",
"screenings",
"candidates",
"webhooks"
]
},
"plan": {
"tier": "hiring-pro"
}
}Errors
A failed call answers with a 4xx or 5xx status and this body. code is stable and safe to check in code. message is for people and can change.
{
"error": {
"code": "invalid_input",
"message": "Some fields are missing or invalid; see fields.",
"fields": {
"external_ref.candidate_id": "Invalid input: expected string, received undefined"
},
"request_id": "0b6f3c9e-8d2a-4f1b-9c7e-5a4d3b2c1e0f"
}
}fieldsis there only withinvalid_input. It maps each wrong field's path to what is wrong with it.request_idis also in thex-request-idheader of every answer.- Some refusals carry more inside
error:409 already_screeninghaserror.screening_id, and409 has_interviewhaserror.interviews.
These codes can come from any route. Each route below lists its own.
| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_input | A field, query value or header is missing or wrong. fields says which. |
| 400 | bad_request | The body is not valid JSON. |
| 401 | invalid_key | No key, an unknown or revoked key, or a key in the query string. |
| 401 | key_owner_removed | The person who created the key is no longer an owner or admin of the workspace. |
| 402 | plan_required | The workspace is on the Free plan. |
| 402 | job_limit, application_limit, message_limit | A plan limit is reached. message says how much is used. |
| 403 | missing_scope | The key does not have the scope this route needs. |
| 404 | not_found | There is no such route. A missing record has its own code, such as job_not_found. |
| 409 | idempotency_key_in_use | A request with this Idempotency-Key is still running. See Idempotency. |
| 413 | payload_too_large | The body is over 2 MB. |
| 422 | idempotency_key_reused | This Idempotency-Key was already used with a different request. |
| 429 | rate_limited | Too many requests. Wait for the seconds in Retry-After. |
| 500 | internal_error | Something went wrong on our side. Quote the request_id when you contact us. |
Retry a 5xx, a 429 rate_limited or a 409 idempotency_key_in_use after a short wait. Do not retry any other 4xx without changing the request.
Pagination
Every list answers with the same shape, newest first:
{
"data": [
{
"id": "scr_6662ab11cc22dd33ee44ff00",
"status": "completed"
}
],
"next_cursor": "MTc5NTc2MDA4MDAwMC42NjYyYWIxMWNjMjJkZDMzZWU0NGZmMDA",
"has_more": true
}limit: how many items per page, from 1 to 100. The default is 25.cursor: thenext_cursorfrom the page before. Leave it out for the first page.- When
has_moreis false, you have the last page andnext_cursoris null.
curl "https://quilzy.com/api/v3/hiring/v1/screenings?limit=100&cursor=MTc5NTc2MDA4MDAwMC42NjYyYWIxMWNjMjJkZDMzZWU0NGZmMDA" \ -H "Authorization: Bearer hk_live_YOUR_KEY"
A cursor is opaque. Do not build or change one yourself. A cursor that is not valid answers 400 invalid_input with fields.cursor.
Idempotency
Every POST and PUT takes an Idempotency-Key header of 1 to 200 characters. Send the same request with the same key again within 24 hours and you get the first answer back, with the header Idempotent-Replayed: true. Nothing is done twice, so a timeout or a retry never makes a second screening or a second message.
- Use a value that is unique for the action, for example a UUID or your own record id.
- The same request means the same method, path, query and body. The same key with a different request answers
422 idempotency_key_reused. - A repeat while the first request is still running answers
409 idempotency_key_in_use. Retry it in a moment. A request still running after 2 minutes stops holding its key. - Only 2xx answers are kept. Any other answer frees the key, so you can send the same key again after fixing the request.
- Keys are kept for 24 hours, per API key.
POST /webhooksanswers with a secret that is shown once, so that answer is never kept. A repeat of its key answers409 idempotency_key_in_use. List the endpoints to find the one it made.
curl -X POST https://quilzy.com/api/v3/hiring/v1/screenings \
-H "Authorization: Bearer hk_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: ats-a_91-screening" \
-d '{ "job_id": "665f1c2ab4e8a90012cd3456", "external_ref": { "candidate_id": "c_88" } }'Jobs
A job holds the screening questions. Every job also has a job link that anyone can apply through, for a job post or a careers page.
GET/clientsscope: jobs
The agency's clients. A company workspace has one, itself. An agency passes a client_id from this list when it creates a job. A company leaves it out.
{
"data": [
{
"id": "6650ab22c2d3e4f5a6b7c8e0",
"name": "Bright Retail",
"industry": "Retail",
"status": "active",
"job_count": 4,
"created_at": "2026-11-20T09:00:00.000Z"
}
],
"next_cursor": null,
"has_more": false
}GET/jobsscope: jobs
Every job in the workspace. Filters: status (draft, open, paused or closed) and client_id. Lists leave out description and qr_svg.
{
"data": [
{
"id": "665f1c2ab4e8a90012cd3456",
"external_id": "j_12",
"code": "J7K2M9Q",
"title": "Sales Executive",
"location": "Pune",
"work_mode": "office",
"job_type": "full_time",
"status": "open",
"client_id": "6650ab22c2d3e4f5a6b7c8e0",
"openings": 3,
"experience": {
"min_years": 2,
"max_years": 5
},
"ctc_budget": {
"min": 300000,
"max": 450000
},
"max_notice_days": 30,
"questions": [
{
"id": "q_3f9a1c2e",
"text": "Do you have a two-wheeler?",
"kind": "yes_no",
"options": null
},
{
"id": "q_7b20d4aa",
"text": "Which part of Pune do you live in?",
"kind": "choice",
"options": [
"East",
"West",
"North",
"South"
]
}
],
"counts": {
"applied": 0,
"screening": 2,
"screened": 14,
"shortlisted": 5,
"submitted": 0,
"interviewing": 1,
"offered": 0,
"joined": 0,
"rejected": 6,
"dropped": 0,
"withdrawn": 0
},
"whatsapp_url": "https://wa.me/91XXXXXXXXXX?text=Hi%2C%20I%20want%20to%20apply%20for%20job%20J7K2M9Q%20(Sales%20Executive)",
"job_page_url": "https://quilzy.com/j/?c=J7K2M9Q",
"created_at": "2026-11-27T05:30:00.000Z",
"updated_at": "2026-11-27T05:31:00.000Z",
"opened_at": "2026-11-27T05:31:00.000Z",
"closed_at": null
}
],
"next_cursor": null,
"has_more": false
}GET/jobs/{id}scope: jobs
One job, with its job link (see below). An unknown id answers 404 job_not_found.
{
"id": "665f1c2ab4e8a90012cd3456",
"external_id": "j_12",
"code": "J7K2M9Q",
"title": "Sales Executive",
"description": "Sell our software to small shops in Pune. Two years of field sales.",
"location": "Pune",
"work_mode": "office",
"job_type": "full_time",
"status": "open",
"client_id": "6650ab22c2d3e4f5a6b7c8e0",
"openings": 3,
"experience": {
"min_years": 2,
"max_years": 5
},
"ctc_budget": {
"min": 300000,
"max": 450000
},
"max_notice_days": 30,
"questions": [
{
"id": "q_3f9a1c2e",
"text": "Do you have a two-wheeler?",
"kind": "yes_no",
"options": null
},
{
"id": "q_7b20d4aa",
"text": "Which part of Pune do you live in?",
"kind": "choice",
"options": [
"East",
"West",
"North",
"South"
]
}
],
"counts": {
"applied": 0,
"screening": 2,
"screened": 14,
"shortlisted": 5,
"submitted": 0,
"interviewing": 1,
"offered": 0,
"joined": 0,
"rejected": 6,
"dropped": 0,
"withdrawn": 0
},
"whatsapp_url": "https://wa.me/91XXXXXXXXXX?text=Hi%2C%20I%20want%20to%20apply%20for%20job%20J7K2M9Q%20(Sales%20Executive)",
"job_page_url": "https://quilzy.com/j/?c=J7K2M9Q",
"qr_svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIC4uLg==",
"created_at": "2026-11-27T05:30:00.000Z",
"updated_at": "2026-11-27T05:31:00.000Z",
"opened_at": "2026-11-27T05:31:00.000Z",
"closed_at": null
}POST/jobsscope: jobs
Creates a draft job. The reply is 201. Open it with POST /jobs/{id}/status. Unknown fields are refused.
- Required:
titleandlocation(1 to 120 characters), andwork_mode(office,hybridorremote). description: the JD as markdown, up to 20,000 characters. A job needs one before it can open.job_type:full_time(the default),part_timeorintern.openings: 1 to 1000, default 1.experience:min_yearsandmax_years, 0 to 60.ctc_budget:minandmax, in INR a year.max_notice_days: 0 to 365.questions: up to 5, asked after our standard questions.kindistext,number,yes_noorchoice. Achoicequestion needs 2 to 10options.client_id: required in an agency, and must be an active client fromGET /clients, else400 invalid_client. A company's jobs always go to its own client.external_id: your own id for the job, 1 to 200 characters, unique in the workspace. One already in use answers409 external_id_taken.
Other refusals: 400 invalid_input, 400 invalid_jd and 400 jd_too_long.
{
"title": "Sales Executive",
"description": "Sell our software to small shops in Pune. Two years of field sales.",
"location": "Pune",
"work_mode": "office",
"openings": 3,
"experience": {
"min_years": 2,
"max_years": 5
},
"ctc_budget": {
"min": 300000,
"max": 450000
},
"max_notice_days": 30,
"questions": [
{
"text": "Do you have a two-wheeler?",
"kind": "yes_no"
},
{
"text": "Which part of Pune do you live in?",
"kind": "choice",
"options": [
"East",
"West",
"North",
"South"
]
}
],
"client_id": "6650ab22c2d3e4f5a6b7c8e0",
"external_id": "j_12"
}{
"id": "665f1c2ab4e8a90012cd3456",
"external_id": "j_12",
"code": "J7K2M9Q",
"title": "Sales Executive",
"description": "Sell our software to small shops in Pune. Two years of field sales.",
"location": "Pune",
"work_mode": "office",
"job_type": "full_time",
"status": "draft",
"client_id": "6650ab22c2d3e4f5a6b7c8e0",
"openings": 3,
"experience": {
"min_years": 2,
"max_years": 5
},
"ctc_budget": {
"min": 300000,
"max": 450000
},
"max_notice_days": 30,
"questions": [
{
"id": "q_3f9a1c2e",
"text": "Do you have a two-wheeler?",
"kind": "yes_no",
"options": null
},
{
"id": "q_7b20d4aa",
"text": "Which part of Pune do you live in?",
"kind": "choice",
"options": [
"East",
"West",
"North",
"South"
]
}
],
"counts": {
"applied": 0,
"screening": 0,
"screened": 0,
"shortlisted": 0,
"submitted": 0,
"interviewing": 0,
"offered": 0,
"joined": 0,
"rejected": 0,
"dropped": 0,
"withdrawn": 0
},
"whatsapp_url": "https://wa.me/91XXXXXXXXXX?text=Hi%2C%20I%20want%20to%20apply%20for%20job%20J7K2M9Q%20(Sales%20Executive)",
"job_page_url": "https://quilzy.com/j/?c=J7K2M9Q",
"qr_svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIC4uLg==",
"created_at": "2026-11-27T05:30:00.000Z",
"updated_at": "2026-11-27T05:30:00.000Z",
"opened_at": null,
"closed_at": null
}PUT/jobs/by-external-id/{external_id}scope: jobs
Creates the job with this external_id (201, a draft), or updates the job that has it (200). Call it every time the job changes in your ATS. It never makes a second job.
- The body is the same as for
POST /jobs, withoutexternal_id. - On an update, fields you leave out stay as they are, and the status does not change.
- Emptying the description of a job that is not a draft answers
409 job_incomplete.
{
"title": "Sales Executive",
"description": "Sell our software to small shops in Pune. Two years of field sales.",
"location": "Pune",
"work_mode": "office",
"openings": 3,
"experience": {
"min_years": 2,
"max_years": 5
},
"ctc_budget": {
"min": 300000,
"max": 450000
},
"max_notice_days": 30,
"questions": [
{
"text": "Do you have a two-wheeler?",
"kind": "yes_no"
},
{
"text": "Which part of Pune do you live in?",
"kind": "choice",
"options": [
"East",
"West",
"North",
"South"
]
}
],
"client_id": "6650ab22c2d3e4f5a6b7c8e0"
}{
"id": "665f1c2ab4e8a90012cd3456",
"external_id": "j_12",
"code": "J7K2M9Q",
"title": "Sales Executive",
"description": "Sell our software to small shops in Pune. Two years of field sales.",
"location": "Pune",
"work_mode": "office",
"job_type": "full_time",
"status": "open",
"client_id": "6650ab22c2d3e4f5a6b7c8e0",
"openings": 3,
"experience": {
"min_years": 2,
"max_years": 5
},
"ctc_budget": {
"min": 300000,
"max": 450000
},
"max_notice_days": 30,
"questions": [
{
"id": "q_3f9a1c2e",
"text": "Do you have a two-wheeler?",
"kind": "yes_no",
"options": null
},
{
"id": "q_7b20d4aa",
"text": "Which part of Pune do you live in?",
"kind": "choice",
"options": [
"East",
"West",
"North",
"South"
]
}
],
"counts": {
"applied": 0,
"screening": 2,
"screened": 14,
"shortlisted": 5,
"submitted": 0,
"interviewing": 1,
"offered": 0,
"joined": 0,
"rejected": 6,
"dropped": 0,
"withdrawn": 0
},
"whatsapp_url": "https://wa.me/91XXXXXXXXXX?text=Hi%2C%20I%20want%20to%20apply%20for%20job%20J7K2M9Q%20(Sales%20Executive)",
"job_page_url": "https://quilzy.com/j/?c=J7K2M9Q",
"qr_svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIC4uLg==",
"created_at": "2026-11-27T05:30:00.000Z",
"updated_at": "2026-11-27T05:31:00.000Z",
"opened_at": "2026-11-27T05:31:00.000Z",
"closed_at": null
}POST/jobs/{id}/statusscope: jobs
Sets the job to open, paused or closed. The same status again changes nothing. Only an open job takes new screenings.
409 job_incomplete: opening needs a description (fields.description).422 profile_incomplete: finish the workspace profile in the app first.402 job_limitor402 application_limit: the plan's limit is reached.409 invalid_transition: the job cannot move there now, for example pausing a job that is not open.
{
"status": "paused"
}{
"id": "665f1c2ab4e8a90012cd3456",
"external_id": "j_12",
"code": "J7K2M9Q",
"title": "Sales Executive",
"description": "Sell our software to small shops in Pune. Two years of field sales.",
"location": "Pune",
"work_mode": "office",
"job_type": "full_time",
"status": "paused",
"client_id": "6650ab22c2d3e4f5a6b7c8e0",
"openings": 3,
"experience": {
"min_years": 2,
"max_years": 5
},
"ctc_budget": {
"min": 300000,
"max": 450000
},
"max_notice_days": 30,
"questions": [
{
"id": "q_3f9a1c2e",
"text": "Do you have a two-wheeler?",
"kind": "yes_no",
"options": null
},
{
"id": "q_7b20d4aa",
"text": "Which part of Pune do you live in?",
"kind": "choice",
"options": [
"East",
"West",
"North",
"South"
]
}
],
"counts": {
"applied": 0,
"screening": 2,
"screened": 14,
"shortlisted": 5,
"submitted": 0,
"interviewing": 1,
"offered": 0,
"joined": 0,
"rejected": 6,
"dropped": 0,
"withdrawn": 0
},
"whatsapp_url": "https://wa.me/91XXXXXXXXXX?text=Hi%2C%20I%20want%20to%20apply%20for%20job%20J7K2M9Q%20(Sales%20Executive)",
"job_page_url": "https://quilzy.com/j/?c=J7K2M9Q",
"qr_svg": "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIC4uLg==",
"created_at": "2026-11-27T05:30:00.000Z",
"updated_at": "2026-11-27T05:31:00.000Z",
"opened_at": "2026-11-27T05:31:00.000Z",
"closed_at": null
}The job link, for a job post
Every job carries the same three things the app's Share button shows:
whatsapp_url: a WhatsApp link with the job code in the message. It is null while the workspace's WhatsApp number is not connected.job_page_url: our public job page, with an Apply on WhatsApp button. It is on your own domain when the workspace has one set up.qr_svg: a QR code of the WhatsApp link, as an SVG data URL you can put straight in animgtag. Null whenwhatsapp_urlis. Job lists leave it out, so read it withGET /jobs/{id}.
Put any of them in a job post, on your careers page or in an ad. Anyone can apply through them, any number of times. Each person who applies is screened by the bot and becomes a screening with source set to job_link and external_ref set to null. See Connecting an ATS for what to do with them.
Screenings
A screening is one candidate's WhatsApp interview for one job. It starts when the candidate taps a link and ends with a score, a summary and the answers. The API sends the candidate nothing. Your system sends the link.
GET/screenings/templatesscope: screenings
The open jobs, as screening templates for a picker in your ATS. questionslists what the bot asks: the standard questions the job keeps on, then the job's own.
{
"data": [
{
"id": "665f1c2ab4e8a90012cd3456",
"name": "Sales Executive",
"questions": [
{
"id": "totalExperience",
"text": "Total experience"
},
{
"id": "noticePeriod",
"text": "Notice period"
},
{
"id": "currentLocation",
"text": "Current location"
},
{
"id": "q_3f9a1c2e",
"text": "Do you have a two-wheeler?"
}
]
}
],
"next_cursor": null,
"has_more": false
}POST/screeningsscope: screenings
Makes a screening link for one candidate and one job. The reply is 201: the screening object plus whatsapp_url. Unknown fields are refused.
job_id: our job id. An unknown id answers404 job_not_found. The job must be open, or the call answers409 job_not_open.external_ref: required. Your own ids for this candidate: 1 to 5 keys of letters, digits,_or-(up to 64 characters), each value a string of 1 to 200 characters.candidate_idis required. We return it unchanged on every read and webhook.callback_url: optional. It gets every event of this screening, as your webhook endpoints do. It must be an https URL on a public host, else400 invalid_inputwithfields.callback_url. It is signed with the secret of the workspace's first active endpoint, so it needs one: without one the call answers422 webhook_required. The key needs thewebhooksscope as well, else403 missing_scope.
Send whatsapp_urlto the candidate by email or SMS. When the workspace's WhatsApp number is not connected there is no link to send, and the call answers 409 whatsapp_not_connected.
The link is a bearer link: whoever taps it first is linked to that ATS candidate. Send it only to that candidate. For job posts, careers pages and ads, use the job link (GET /jobs/{id}).
When the workspace already has 20,000 screenings still invited, the call answers 429 too_many_open_screenings. Cancel the links you no longer need.
A second call for the same job and the same candidate_id while a screening is open (not cancelled, abandoned or merged) answers 409:
{
"job_id": "665f1c2ab4e8a90012cd3456",
"external_ref": {
"candidate_id": "c_88",
"application_id": "a_91"
},
"callback_url": "https://ats.example.com/hooks/sheetwa"
}{
"id": "scr_6662ab11cc22dd33ee44ff00",
"status": "invited",
"source": "candidate_link",
"merged_into": null,
"job_id": "665f1c2ab4e8a90012cd3456",
"job_external_id": "j_12",
"external_ref": {
"candidate_id": "c_88",
"application_id": "a_91"
},
"application_id": null,
"candidate": null,
"stage": null,
"result": null,
"locked": false,
"started_at": null,
"completed_at": null,
"created_at": "2026-11-27T05:40:00.000Z",
"updated_at": "2026-11-27T05:40:00.000Z",
"whatsapp_url": "https://wa.me/91XXXXXXXXXX?text=Hi%2C%20I%20want%20to%20apply%20for%20job%20J7K2M9Q%20(Sales%20Executive).%20Ref%3A%20K4M9Q2XA7T"
}POST/screeningsscope: screenings
The open screening's id is in error.screening_id.
{
"error": {
"screening_id": "scr_6662ab11cc22dd33ee44ff00",
"code": "already_screening",
"message": "This job already has an open screening for this candidate_id.",
"request_id": "0b6f3c9e-8d2a-4f1b-9c7e-5a4d3b2c1e0f"
}
}GET/screeningsscope: screenings
Every screening on the workspace's jobs, newest first. Filters: status, job_id, source and updated_since (an ISO date and time; screenings changed at or after it). Poll with updated_since if you cannot take webhooks.
{
"data": [
{
"id": "scr_6662ab11cc22dd33ee44ff00",
"status": "completed",
"source": "candidate_link",
"merged_into": null,
"job_id": "665f1c2ab4e8a90012cd3456",
"job_external_id": "j_12",
"external_ref": {
"candidate_id": "c_88",
"application_id": "a_91"
},
"application_id": "6662aa00bb11cc22dd33ee44",
"candidate": {
"id": "6661c0ffee0000000000abcd",
"name": "Asha Rao",
"phone": "+919812345678",
"email": "[email protected]"
},
"stage": "screened",
"result": {
"score": 82,
"grade": "strong_pass",
"summary": "6 years React, led a team of 4, notice 30 days.",
"strengths": [
"Led a team of 4 frontend engineers",
"Ships React and TypeScript daily"
],
"flags": [
"Notice period is 30 days"
],
"answers": [
{
"question": "Notice period",
"answer": "30 days"
}
],
"recommended_action": "advance",
"report_url": "https://quilzy.com/recruiter/jobs/view/?id=665f1c2ab4e8a90012cd3456&app=6662aa00bb11cc22dd33ee44"
},
"locked": false,
"started_at": "2026-11-27T06:02:11.000Z",
"completed_at": "2026-11-27T06:14:40.000Z",
"created_at": "2026-11-27T05:40:00.000Z",
"updated_at": "2026-11-27T06:14:40.000Z"
}
],
"next_cursor": null,
"has_more": false
}GET/screenings/{id}scope: screenings
One screening, by its scr_... id (the id without scr_ works too). An unknown id answers 404 screening_not_found. Before the tap it looks like this. After it, see the screening object below.
{
"id": "scr_6662ab11cc22dd33ee44ff00",
"status": "invited",
"source": "candidate_link",
"merged_into": null,
"job_id": "665f1c2ab4e8a90012cd3456",
"job_external_id": "j_12",
"external_ref": {
"candidate_id": "c_88",
"application_id": "a_91"
},
"application_id": null,
"candidate": null,
"stage": null,
"result": null,
"locked": false,
"started_at": null,
"completed_at": null,
"created_at": "2026-11-27T05:40:00.000Z",
"updated_at": "2026-11-27T05:40:00.000Z"
}PATCH/screenings/{id}scope: screenings
Adds your ids to a screening that has none, such as someone who applied through the job link. The rules for external_ref are the same as above. You can set it once. A second set answers 409 external_ref_set.
{
"external_ref": {
"candidate_id": "c_88",
"application_id": "a_91"
}
}{
"id": "scr_6662ab11cc22dd33ee44ff00",
"status": "completed",
"source": "job_link",
"merged_into": null,
"job_id": "665f1c2ab4e8a90012cd3456",
"job_external_id": "j_12",
"external_ref": {
"candidate_id": "c_88",
"application_id": "a_91"
},
"application_id": "6662aa00bb11cc22dd33ee44",
"candidate": {
"id": "6661c0ffee0000000000abcd",
"name": "Asha Rao",
"phone": "+919812345678",
"email": "[email protected]"
},
"stage": "screened",
"result": {
"score": 82,
"grade": "strong_pass",
"summary": "6 years React, led a team of 4, notice 30 days.",
"strengths": [
"Led a team of 4 frontend engineers",
"Ships React and TypeScript daily"
],
"flags": [
"Notice period is 30 days"
],
"answers": [
{
"question": "Notice period",
"answer": "30 days"
}
],
"recommended_action": "advance",
"report_url": "https://quilzy.com/recruiter/jobs/view/?id=665f1c2ab4e8a90012cd3456&app=6662aa00bb11cc22dd33ee44"
},
"locked": false,
"started_at": "2026-11-27T06:02:11.000Z",
"completed_at": "2026-11-27T06:14:40.000Z",
"created_at": "2026-11-27T05:40:00.000Z",
"updated_at": "2026-11-27T06:14:40.000Z"
}POST/screenings/{id}/cancelscope: screenings
Stops the screening. Before the tap, the link stops working. After it, the candidate's application moves to withdrawn, then the screening reads cancelled. It also cancels the candidate's upcoming interviews for that application. Cancelling again, or an application that is already withdrawn, is a success.
409 screening_merged: this screening was merged into another. Cancel the one inmerged_into.409 stage_locked: the candidate has joined.409 stage_changed: the application changed at the same moment. Try again.
A cancel that lands while the candidate is tapping the link wins: the screening is cancelled and the tap applies as a plain job-link applicant.
{
"id": "scr_6662ab11cc22dd33ee44ff00",
"status": "cancelled",
"source": "candidate_link",
"merged_into": null,
"job_id": "665f1c2ab4e8a90012cd3456",
"job_external_id": "j_12",
"external_ref": {
"candidate_id": "c_88",
"application_id": "a_91"
},
"application_id": null,
"candidate": null,
"stage": null,
"result": null,
"locked": false,
"started_at": null,
"completed_at": null,
"created_at": "2026-11-27T05:40:00.000Z",
"updated_at": "2026-11-27T05:40:00.000Z"
}How the link finds the screening
- The link opens WhatsApp with this message filled in:
Hi, I want to apply for job J7K2M9Q (Sales Executive). Ref: K4M9Q2XA7T. It carries the job code and a ref of its own: 10 letters and digits, unique to this screening. - When the candidate sends it, the bot applies them to the job and screens them as usual. The screening moves to
in_progressand you getscreening.started. - If the candidate already applied to that job, for example through the job link, that application is linked to this screening. The older job-link screening then reads
merged, withmerged_intonaming this one. If they had already finished the screening, you getscreening.completedright away. - The ref works only while the screening is
invitedand the job is open. A cancelled link, or a second person who taps a forwarded link, still applies to the job, but as a job-link applicant without your ids. - A link that is never tapped stays
invited. Reminding the candidate is up to your ATS.
The screening object
Every read returns this object, and every screening webhook carries it as data. New fields can appear at any time, so ignore fields you do not know.
{
"id": "scr_6662ab11cc22dd33ee44ff00",
"status": "completed",
"source": "candidate_link",
"merged_into": null,
"job_id": "665f1c2ab4e8a90012cd3456",
"job_external_id": "j_12",
"external_ref": {
"candidate_id": "c_88",
"application_id": "a_91"
},
"application_id": "6662aa00bb11cc22dd33ee44",
"candidate": {
"id": "6661c0ffee0000000000abcd",
"name": "Asha Rao",
"phone": "+919812345678",
"email": "[email protected]"
},
"stage": "screened",
"result": {
"score": 82,
"grade": "strong_pass",
"summary": "6 years React, led a team of 4, notice 30 days.",
"strengths": [
"Led a team of 4 frontend engineers",
"Ships React and TypeScript daily"
],
"flags": [
"Notice period is 30 days"
],
"answers": [
{
"question": "Notice period",
"answer": "30 days"
}
],
"recommended_action": "advance",
"report_url": "https://quilzy.com/recruiter/jobs/view/?id=665f1c2ab4e8a90012cd3456&app=6662aa00bb11cc22dd33ee44"
},
"locked": false,
"started_at": "2026-11-27T06:02:11.000Z",
"completed_at": "2026-11-27T06:14:40.000Z",
"created_at": "2026-11-27T05:40:00.000Z",
"updated_at": "2026-11-27T06:14:40.000Z"
}| status | Meaning |
|---|---|
invited | The link is made and not tapped yet. |
in_progress | The candidate tapped the link and the bot is asking. |
completed | The bot finished and the score is saved. screening.completed is sent once, the first time. A later re-score sends nothing. |
abandoned | No answer for 24 hours, after the bot’s two nudges. If the candidate replies again, it goes back to in_progress, with no event. |
cancelled | You cancelled it, or the candidate’s data was deleted. Your external_ref stays. |
merged | A candidate link was tapped by someone who had already applied to the job. See merged_into. |
| source | Meaning |
|---|---|
candidate_link | Made by POST /screenings, with your external_ref. |
job_link | Someone applied through the job link or our job page. external_ref is null until you set it. |
app | A recruiter added the candidate to the job in our app. external_ref is null until you set it. |
- Before the tap,
application_id,candidate,stage,result,started_atandcompleted_atare null. - After it,
candidateholds our candidate id and the name, phone and email the candidate gave the bot.stageis our pipeline stage, such asscreened. job_external_idis your id for the job, or null for a job made only in our app.merged_intois the id of the screening this one was merged into, or null.started_atis when the screening started.completed_atis set while the status iscompleted.
The result
result is set when the status is completed, and null otherwise. grade and recommended_action both come from score, from 0 to 100:
| score | grade | recommended_action |
|---|---|---|
| under 50 | fail | reject |
| 50 to 74 | pass | review |
| 75 and above | strong_pass | advance |
summaryis at most 150 characters, so it fits a short field on a candidate card. The full summary is inGET /candidates/{id}.strengthsandflagsare short lines from the scoring.answersholds each question the bot asked and the candidate's answer.report_urlopens the application in our app, for your recruiters.
Over the plan limit
When the workspace is over its plan's applicant limit, the application is locked until the plan allows it. The screening then has locked: true, result: null, and null for the candidate's name, phone and email, whatever its status. A deleted candidate also reads null for those three.
{
"id": "scr_6662ab11cc22dd33ee44ff00",
"status": "completed",
"source": "candidate_link",
"merged_into": null,
"job_id": "665f1c2ab4e8a90012cd3456",
"job_external_id": "j_12",
"external_ref": {
"candidate_id": "c_88",
"application_id": "a_91"
},
"application_id": "6662aa00bb11cc22dd33ee44",
"candidate": {
"id": "6661c0ffee0000000000abcd",
"name": null,
"phone": null,
"email": null
},
"stage": "screened",
"result": null,
"locked": true,
"started_at": "2026-11-27T06:02:11.000Z",
"completed_at": "2026-11-27T06:14:40.000Z",
"created_at": "2026-11-27T05:40:00.000Z",
"updated_at": "2026-11-27T06:14:40.000Z"
}Candidates and resume Q&A
The API takes nothing about a candidate. The bot asks for the name, the resume and every answer on WhatsApp. Once the candidate has tapped a link, their id is in the screening's candidate.id.
GET/candidates/{id}scope: candidates
What the candidate gave us on WhatsApp.
summary: the full summary of their newest application that has one and is not locked, or null.resume: the parsed resume.fromandtoare the resume's own text;to: nullis the current job.resume_url: downloads the resume file and works for 15 minutes. Read the candidate again for a new one. Null when there is no resume.applications: every application of the candidate in the workspace, newest first, each with its screening id.phoneis null once the candidate is deleted.
An unknown id answers 404 candidate_not_found. When every application of the candidate is over the plan's applicant limit, the call answers 403 candidate_locked until the plan allows it.
{
"id": "6661c0ffee0000000000abcd",
"name": "Asha Rao",
"phone": "+919812345678",
"email": "[email protected]",
"location": "Pune",
"summary": "Frontend lead with 6 years of React and TypeScript. Led a team of 4 at a retail startup. Notice period 30 days.",
"resume": {
"skills": [
"React",
"TypeScript",
"Team leadership"
],
"experience": [
{
"company": "ShopKart",
"title": "Frontend Lead",
"from": "2022-04",
"to": null
}
],
"education": [
{
"degree": "B.Tech, Computer Science",
"institute": "VIT Vellore",
"year": 2018
}
]
},
"resume_url": "https://files.sheetwa.com/resumes/...?X-Amz-Expires=900&X-Amz-Signature=...",
"applications": [
{
"application_id": "6662aa00bb11cc22dd33ee44",
"job_id": "665f1c2ab4e8a90012cd3456",
"stage": "screened",
"screening_id": "scr_6662ab11cc22dd33ee44ff00"
}
]
}POST/candidates/{id}/askscope: candidates
A question about the resume. The answer quotes the resume, the profile or the screening answers, so a recruiter can check it. quotes is empty when there is nothing to quote.
question: 1 to 500 characters.application_id: optional. Asks about that application's resume and job. It must be one of the candidate's applications, else404 application_not_found.- At most 30 questions a minute per workspace, beside the 120 requests a minute per key. Past that,
429withRetry-After. - When the AI service is down, the call answers
503 ai_unavailable. Try again later.
The same 404 candidate_not_found and 403 candidate_locked apply as for reading the candidate.
{
"question": "Has she led a team?",
"application_id": "6662aa00bb11cc22dd33ee44"
}{
"answer": "Yes. She led a team of 4 frontend engineers at ShopKart.",
"quotes": [
"Led a team of 4 frontend engineers building the shop app."
]
}Follow-ups and interviews
These calls act on the candidate's application with us, as the person who created the key. Its id is the screening's application_id. An unknown id answers 404 application_not_found.
POST/applications/{id}/stagescope: screenings
Moves our pipeline stage. Stages: applied, screening, screened, shortlisted, submitted, interviewing, offered, joined, rejected, dropped, withdrawn. You get application.stage_changed for every move, yours included.
stage: required.appliedandscreeningare set only by the bot.reason: required forrejected, up to 500 characters.note: optional, up to 500.send_notice: withrejected, whether to send the candidate the reject message. The default is the workspace's setting.cancel_interviews: sendtrueto cancel the candidate's upcoming interviews with the move. The candidate is told, unless a reject message went out.- In the reply,
notice_sentsays whether the reject message went out (null for other stages), andinterviews_cancelledcounts the interviews cancelled.
Refusals are 409 with one of these codes:
same_stage: the application is already at that stage.stage_locked: the candidate has joined.bot_stage:appliedandscreeningare the bot's.stage_changed: the application changed at the same moment. Read it again and retry.offer_required:offeredneeds the offer's joining date. Record the offer in the app.has_interview: the candidate has upcoming interviews, listed inerror.interviews. Sendcancel_interviews: trueto cancel them with the move.
{
"stage": "rejected",
"reason": "Notice period too long",
"send_notice": true
}{
"application_id": "6662aa00bb11cc22dd33ee44",
"stage": "rejected",
"notice_sent": true,
"interviews_cancelled": 0
}{
"error": {
"interviews": [
{
"id": "6663bb00cc11dd22ee33ff55",
"title": "Round 1",
"scheduled_at": "2026-11-29T05:30:00.000Z",
"timezone": "Asia/Kolkata"
}
],
"code": "has_interview",
"message": "The candidate has upcoming interviews (see interviews). Send cancel_interviews: true to cancel them with the move.",
"request_id": "0b6f3c9e-8d2a-4f1b-9c7e-5a4d3b2c1e0f"
}
}POST/applications/{id}/messagesscope: screenings
Sends the candidate a WhatsApp text of 1 to 4000 characters. The reply is 201, and idis our id for the message. On our shared WhatsApp number the text starts with the key creator's first name and the workspace's name.
409 outside_window: WhatsApp allows free text only within 24 hours of the candidate's last message. Nothing is sent.409 chat_locked: the application is over the plan's applicant limit.409 opted_out: the candidate has stopped messages from this workspace.409 not_opted_in: a candidate added from your database who has not said yes to the job yet.409 no_connection: the WhatsApp number is not connected.409 no_recipient: we have no WhatsApp number for the candidate.422 money_request: the text asks the candidate for money. It is never sent.422 abusive_text: the text was blocked as abusive.402 message_limit: the plan allows no more messages this month.502 send_failed: WhatsApp did not take the message. Try again later.
{
"text": "Thanks Asha. Our recruiter will call you today at 4 pm."
}{
"id": "6663cc11dd22ee33ff440077",
"status": "sent",
"created_at": "2026-11-27T07:01:00.000Z"
}POST/interviewsscope: screenings
Schedules an interview. The reply is 201. The application moves to interviewing, and the candidate gets our usual interview messages and reminders, which fall back to approved WhatsApp templates outside the 24 hours. Unknown fields are refused.
application_id: required.scheduled_at: required. ISO 8601 withZor an offset, in the future and at most 180 days ahead.duration_min: required, 5 to 480.timezone: required, an IANA name such asAsia/Kolkata.mode:video,phoneorin_person.videoneedslink(https).in_personneedslocation.interviewer_id: optional, a workspace member who may take this job's interviews.
Refusals: 400 invalid_input (fields.mode when the link or location is missing), 400 in_past, 400 invalid_interviewer and 409 application_closed (the application is rejected, dropped, withdrawn or joined).
You get interview.scheduled, then interview.updated when it is rescheduled, cancelled, attended or missed.
{
"application_id": "6662aa00bb11cc22dd33ee44",
"scheduled_at": "2026-11-29T11:00:00+05:30",
"duration_min": 30,
"timezone": "Asia/Kolkata",
"mode": "video",
"link": "https://meet.example.com/abc-defg-hij"
}{
"id": "6663bb00cc11dd22ee33ff55",
"application_id": "6662aa00bb11cc22dd33ee44",
"job_id": "665f1c2ab4e8a90012cd3456",
"scheduled_at": "2026-11-29T05:30:00.000Z",
"duration_min": 30,
"timezone": "Asia/Kolkata",
"mode": "video",
"link": "https://meet.example.com/abc-defg-hij",
"location": null,
"status": "scheduled"
}Webhooks
Webhooks tell your system when something happens. Add an endpoint under Settings > Developers or with the API below. Pick the events it gets. Its signing secret starts with whsec_ and is shown once.
Events
| Event | When it is sent | data |
|---|---|---|
screening.started | The candidate tapped the link, or applied another way. | The screening object |
screening.completed | The bot finished and the score is saved. Sent once, the first time. | The screening object |
screening.abandoned | No answer for 24 hours, after the bot’s two nudges. | The screening object |
application.stage_changed | The application moved to another stage. | { from, to, screening } |
interview.scheduled | An interview was scheduled. | { interview, screening_id, external_ref } |
interview.updated | An interview was rescheduled, cancelled, attended or missed. | { interview, screening_id, external_ref } |
ping | A test from Send test or POST /webhooks/{id}/test. Never subscribed to. | { endpoint_id } |
The body
Each delivery is a POST with a JSON body: id (the same at every URL it goes to), type, created_at and data. Every event for one application carries your external_ref once it is set.
{
"id": "evt_q3V9kR2xT7mW4pZ8nB1cLg",
"type": "screening.completed",
"created_at": "2026-11-27T06:14:41.000Z",
"data": {
"id": "scr_6662ab11cc22dd33ee44ff00",
"status": "completed",
"source": "candidate_link",
"merged_into": null,
"job_id": "665f1c2ab4e8a90012cd3456",
"job_external_id": "j_12",
"external_ref": {
"candidate_id": "c_88",
"application_id": "a_91"
},
"application_id": "6662aa00bb11cc22dd33ee44",
"candidate": {
"id": "6661c0ffee0000000000abcd",
"name": "Asha Rao",
"phone": "+919812345678",
"email": "[email protected]"
},
"stage": "screened",
"result": {
"score": 82,
"grade": "strong_pass",
"summary": "6 years React, led a team of 4, notice 30 days.",
"strengths": [
"Led a team of 4 frontend engineers",
"Ships React and TypeScript daily"
],
"flags": [
"Notice period is 30 days"
],
"answers": [
{
"question": "Notice period",
"answer": "30 days"
}
],
"recommended_action": "advance",
"report_url": "https://quilzy.com/recruiter/jobs/view/?id=665f1c2ab4e8a90012cd3456&app=6662aa00bb11cc22dd33ee44"
},
"locked": false,
"started_at": "2026-11-27T06:02:11.000Z",
"completed_at": "2026-11-27T06:14:40.000Z",
"created_at": "2026-11-27T05:40:00.000Z",
"updated_at": "2026-11-27T06:14:40.000Z"
}
}{
"id": "evt_Hn4sQ8wE2rT6yU0iO9pA3d",
"type": "application.stage_changed",
"created_at": "2026-11-27T08:00:00.000Z",
"data": {
"from": "screened",
"to": "shortlisted",
"screening": {
"id": "scr_6662ab11cc22dd33ee44ff00",
"status": "completed",
"source": "candidate_link",
"merged_into": null,
"job_id": "665f1c2ab4e8a90012cd3456",
"job_external_id": "j_12",
"external_ref": {
"candidate_id": "c_88",
"application_id": "a_91"
},
"application_id": "6662aa00bb11cc22dd33ee44",
"candidate": {
"id": "6661c0ffee0000000000abcd",
"name": "Asha Rao",
"phone": "+919812345678",
"email": "[email protected]"
},
"stage": "shortlisted",
"result": {
"score": 82,
"grade": "strong_pass",
"summary": "6 years React, led a team of 4, notice 30 days.",
"strengths": [
"Led a team of 4 frontend engineers",
"Ships React and TypeScript daily"
],
"flags": [
"Notice period is 30 days"
],
"answers": [
{
"question": "Notice period",
"answer": "30 days"
}
],
"recommended_action": "advance",
"report_url": "https://quilzy.com/recruiter/jobs/view/?id=665f1c2ab4e8a90012cd3456&app=6662aa00bb11cc22dd33ee44"
},
"locked": false,
"started_at": "2026-11-27T06:02:11.000Z",
"completed_at": "2026-11-27T06:14:40.000Z",
"created_at": "2026-11-27T05:40:00.000Z",
"updated_at": "2026-11-27T08:00:00.000Z"
}
}
}{
"id": "evt_Zx7cV5bN3mL1kJ9hG8fD2s",
"type": "interview.scheduled",
"created_at": "2026-11-27T09:00:00.000Z",
"data": {
"interview": {
"id": "6663bb00cc11dd22ee33ff55",
"application_id": "6662aa00bb11cc22dd33ee44",
"job_id": "665f1c2ab4e8a90012cd3456",
"scheduled_at": "2026-11-29T05:30:00.000Z",
"duration_min": 30,
"timezone": "Asia/Kolkata",
"mode": "video",
"link": "https://meet.example.com/abc-defg-hij",
"location": null,
"status": "scheduled"
},
"screening_id": "scr_6662ab11cc22dd33ee44ff00",
"external_ref": {
"candidate_id": "c_88",
"application_id": "a_91"
}
}
}The interview's status is scheduled, confirmed, reschedule_requested, attended, no_show or cancelled. Interview events are sent only for applications that have a screening.
Delivery and retries
Each delivery also has the headers X-Hiring-Event-Id (the body's id), X-Hiring-Event-Type and X-Hiring-Signature.
- We send only to HTTPS URLs on a public address, without a user name or password, of up to 2000 characters. Any port is allowed. A URL whose host points to a private or local address is refused, when you add it and again before every send.
- A
2xxanswer within 10 seconds is a success. Answer first, then do slow work. Redirects are never followed, so a3xxcounts as a failure. - Anything else is retried on this schedule, about 21 hours in all. After the last try, the delivery is marked failed and shows on the Developers page.
- After 20 failed attempts in a row, the endpoint is turned off and the workspace owner gets an email. A success resets the count, and test pings never count. Turn it on again from the Developers page. Events from while it was off are not sent.
| Attempt | When |
|---|---|
| 1 | Right away |
| 2 | 1 minute later |
| 3 | 5 minutes later |
| 4 | 30 minutes later |
| 5 | 2 hours later |
| 6 | 6 hours later |
| 7 | 12 hours later, the last try |
Order, repeats and dropped events
- Events can arrive out of order, and an event can arrive more than once. Dedupe by
X-Hiring-Event-Id, and keep the newest state by the event'screated_at. - Disabling an endpoint by hand fails its pending events, so they are never sent. Enabling it again sends only new events.
- Each workspace can have at most 5,000 events waiting to be delivered. Past that, new events are dropped. A healthy endpoint never gets near this.
- When a candidate is deleted, their pending and stored webhook deliveries are deleted too.
Check the signature
Every delivery carries this header:
X-Hiring-Signature: t=1795760080,v1=5f0c1b9e4a...
tis the time we signed it, in Unix seconds.v1is the hex HMAC-SHA256 oft, a dot, and the raw request body. The key is the endpoint's whole signing secret,whsec_included.
To check it:
- Read the raw body before you parse it. Parsed and re-encoded JSON will not match.
- Compute the HMAC yourself and compare it with
v1in constant time. - Reject the delivery when
tis more than 5 minutes away from now. This stops an old delivery being replayed. - Drop a repeat: the same event can arrive more than once, with the same
X-Hiring-Event-Idheader (also the body'sid).
const crypto = require("node:crypto");
const express = require("express");
const MAX_AGE_SECONDS = 5 * 60;
// rawBody is the body exactly as it arrived (a Buffer), before any JSON parsing.
function isValidSignature(rawBody, header, secret) {
const fields = {};
for (const part of String(header || "").split(",")) {
const at = part.indexOf("=");
if (at > 0) fields[part.slice(0, at).trim()] = part.slice(at + 1).trim();
}
const t = Number(fields.t);
if (!Number.isInteger(t) || !fields.v1) return false;
if (Math.abs(Date.now() / 1000 - t) > MAX_AGE_SECONDS) return false;
const expected = crypto
.createHmac("sha256", secret)
.update(fields.t + ".")
.update(rawBody)
.digest();
const given = Buffer.from(fields.v1, "hex");
return given.length === expected.length && crypto.timingSafeEqual(given, expected);
}
const app = express();
const seen = new Set(); // use your database in production
app.post("/hooks/sheetwa", express.raw({ type: "application/json" }), (req, res) => {
const ok = isValidSignature(req.body, req.get("X-Hiring-Signature"), process.env.HIRING_WEBHOOK_SECRET);
if (!ok) return res.status(400).send("bad signature");
const eventId = req.get("X-Hiring-Event-Id");
if (seen.has(eventId)) return res.sendStatus(200);
seen.add(eventId);
const event = JSON.parse(req.body.toString("utf8"));
res.sendStatus(200); // answer within 10 seconds, then do the work
handleEvent(event); // your code
});import hashlib
import hmac
import json
import os
import time
from flask import Flask, abort, request
MAX_AGE_SECONDS = 5 * 60
def is_valid_signature(raw_body: bytes, header: str, secret: str) -> bool:
fields = dict(part.strip().split("=", 1) for part in (header or "").split(",") if "=" in part)
t, v1 = fields.get("t", ""), fields.get("v1", "")
if not t.isdigit() or not v1:
return False
if abs(time.time() - int(t)) > MAX_AGE_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__)
seen = set() # use your database in production
@app.post("/hooks/sheetwa")
def sheetwa_hook():
raw_body = request.get_data()
if not is_valid_signature(raw_body, request.headers.get("X-Hiring-Signature", ""), os.environ["HIRING_WEBHOOK_SECRET"]):
abort(400)
event_id = request.headers.get("X-Hiring-Event-Id")
if event_id in seen:
return "", 200
seen.add(event_id)
handle_event(json.loads(raw_body)) # your code
return "", 200Manage endpoints with the API
GET/webhooksscope: webhooks
The workspace's endpoints, newest first. status is active or disabled. failure_count is the failed attempts in a row.
{
"data": [
{
"id": "6664cc00dd11ee22ff330066",
"url": "https://ats.example.com/hooks/sheetwa",
"events": [
"screening.started",
"screening.completed",
"application.stage_changed"
],
"status": "active",
"failure_count": 0,
"last_delivery": {
"at": "2026-11-27T06:14:42.000Z",
"status": "sent",
"status_code": 200
},
"created_at": "2026-11-27T05:00:00.000Z"
}
],
"next_cursor": null,
"has_more": false
}POST/webhooksscope: webhooks
Adds an endpoint for 1 or more events. The reply is 201 and carries secret this once. Store it.
400 invalid_url: the URL breaks the rules above.409 endpoint_limit: a workspace can have at most 10 endpoints.503 webhooks_not_configured: webhooks are not available right now. Try again later.- With an
Idempotency-Key, a repeat of the key answers409 idempotency_key_in_use, because we never store the secret. List the endpoints to find the one it made.
{
"url": "https://ats.example.com/hooks/sheetwa",
"events": [
"screening.started",
"screening.completed",
"application.stage_changed"
]
}{
"id": "6664cc00dd11ee22ff330066",
"url": "https://ats.example.com/hooks/sheetwa",
"events": [
"screening.started",
"screening.completed",
"application.stage_changed"
],
"status": "active",
"failure_count": 0,
"last_delivery": null,
"created_at": "2026-11-27T05:00:00.000Z",
"secret": "whsec_..."
}DELETE/webhooks/{id}scope: webhooks
Removes an endpoint. Events stop going to it right away, and its unsent deliveries fail. An unknown id answers 404 endpoint_not_found.
{
"id": "6664cc00dd11ee22ff330066",
"deleted": true
}POST/webhooks/{id}/testscope: webhooks
Sends a ping event to the endpoint now, whatever its status, so you can test your signature check. The reply is the delivery: status is sent or failed, and last_status_code is your answer's status. last_error is null when your endpoint answered, redirect_not_followed for a 3xx, and invalid_url, timeout or network_error when there was no answer. A ping is sent once and never retried.
{
"id": "6665dd00ee11ff2200440077",
"event_id": "evt_Kp2mN8bV4cX6zL0qW3eR5t",
"type": "ping",
"status": "sent",
"attempt": 1,
"last_status_code": 200,
"last_error": null,
"created_at": "2026-11-27T05:05:00.000Z",
"next_attempt_at": null
}Rate limits
- Each key can make 120 requests a minute.
- Resume questions (
POST /candidates/{id}/ask) also have their own limit: 30 a minute per workspace, shared by all its keys. - Failed requests (any 4xx or 5xx answer, including a bad or missing key) are limited to 600 a minute per IP address. Successful requests do not count.
- The spec,
GET /openapi.json, takes 60 requests a minute per IP address.
Past a limit the API answers 429 rate_limited with a Retry-After header, in seconds. Wait that long, then send the request again. Answers to a working key also carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset.
HTTP/1.1 429 Too Many Requests
Retry-After: 12
RateLimit-Policy: 120;w=60
RateLimit-Limit: 120
RateLimit-Remaining: 0
RateLimit-Reset: 12
Content-Type: application/json
{
"error": {
"code": "rate_limited",
"message": "Too many requests. Retry after the number of seconds in Retry-After.",
"request_id": "0b6f3c9e-8d2a-4f1b-9c7e-5a4d3b2c1e0f"
}
}To stay under the limit, take webhooks instead of polling, and fetch lists with limit=100.
Connecting an ATS
There are no ready-made connectors. Your developer wires the API into your ATS with the steps below. Tools such as Zapier or n8n can do the same with HTTP steps.
One-time setup
- Create an API key and add a webhook endpoint under Settings > Developers. Store both secrets.
- Keep jobs in step: call
PUT /jobs/by-external-id/{your_job_id}when a job is made or changed in your ATS. Or make the job in our app and store its id. - Add a stage to your pipeline, for example "WhatsApp screening".
For one candidate
- A candidate enters your "WhatsApp screening" stage.
- Your system calls
POST /screeningswith our job id and your ids inexternal_ref. - Your system sends
whatsapp_urlto the candidate by email or SMS. - The candidate taps it, WhatsApp opens with the message filled in, and they press send. The bot screens them.
- You get
screening.started, thenscreening.completedwith the score, the summary, the answers and your ids. - Your system advances or rejects the candidate.
recommended_actionsays which.
// Your ATS: a candidate entered the "WhatsApp screening" stage.
async function onScreeningStage(candidate, application, job) {
const res = await fetch("https://quilzy.com/api/v3/hiring/v1/screenings", {
method: "POST",
headers: {
Authorization: "Bearer " + process.env.HIRING_API_KEY,
"Content-Type": "application/json",
"Idempotency-Key": "screening-" + application.id,
},
body: JSON.stringify({
job_id: job.hiringJobId,
external_ref: { candidate_id: candidate.id, application_id: application.id },
}),
});
const screening = await res.json();
if (!res.ok) throw new Error(screening.error.code);
// We send the candidate nothing. Send the link with your own email or SMS.
await ats.sendEmail(candidate.email, "Answer a few questions on WhatsApp: " + screening.whatsapp_url);
}// Your webhook handler, after the signature check.
async function handleEvent(event) {
if (event.type !== "screening.completed") return;
const screening = event.data;
if (screening.locked) return; // over the plan's applicant limit; read it again later
if (!screening.external_ref) return addJobLinkApplicant(screening); // see "For a job post"
const { application_id } = screening.external_ref;
await ats.addNote(application_id, screening.result.summary + " " + screening.result.report_url);
if (screening.result.recommended_action === "advance") await ats.moveStage(application_id, "Phone interview");
if (screening.result.recommended_action === "reject") await ats.moveStage(application_id, "Rejected");
}For a job post
- Read
GET /jobs/{id}and putwhatsapp_url,job_page_urlorqr_svgin the job post. - Whoever taps it is screened the same way.
- The webhooks arrive with
external_ref: null, the candidate's name, phone and email, andjob_external_id. - Your system adds the person to your ATS, matching by phone or email when they are already there.
- Your system calls
PATCH /screenings/{id}with your ids. Every later event for that application carries them.
// A person applied through the job link: no external_ref yet.
async function addJobLinkApplicant(screening) {
const person = screening.candidate; // name, phone, email
const existing = await ats.findCandidate({ phone: person.phone, email: person.email });
const candidate = existing || (await ats.createCandidate(person));
const application = await ats.createApplication(candidate.id, screening.job_external_id);
await fetch("https://quilzy.com/api/v3/hiring/v1/screenings/" + screening.id, {
method: "PATCH",
headers: { Authorization: "Bearer " + process.env.HIRING_API_KEY, "Content-Type": "application/json" },
body: JSON.stringify({ external_ref: { candidate_id: candidate.id, application_id: application.id } }),
});
}Candidates a recruiter adds to a job in our app also arrive, with source: "app". If you want only your own candidates, ignore events whose external_ref is null.
Changelog
This is version 1, the v1 in the base URL. New fields and new events can appear at any time, so ignore what you do not know. A change that breaks existing code gets a new version, v2.
The machine-readable spec is at https://quilzy.com/api/v3/hiring/v1/openapi.json. It needs no key. Import it into Postman or a code generator.
- 2026-11-27: Idempotency keeps only 2xx answers.
callback_urlneeds thewebhooksscope. A key stops working when its creator is no longer an owner or admin. New limits: 10 keys, 10 endpoints, 20,000 open screening links and 30 resume questions a minute per workspace. - November 2026: v1. Jobs, screenings, candidates and resume questions, stage changes, follow-up messages, interviews and webhooks.