Recruiting API
Invite candidates to SheetRank modeling assessments from your applicant tracking system, read their graded results, and get a signed webhook the moment each one finishes. It works with Workday, Greenhouse, Lever, Ashby or an in-house system, directly or through tools like Workato and Zapier.
The API and webhooks are included with the annual plan and Enterprise. Keys stop working (with a 402) if the plan lapses, and start again on renewal.
Authentication
Create a key under Recruiting › Settings › Integrations. A key acts as the person who created it, with their firm's assessments and candidates, and is shown once. Send it on every request:
Authorization: Bearer sr_live_...
Base URL: https://www.sheetrank.com/api/v1. Requests and responses are JSON. Each key may make 120 requests a minute; past that you get 429 with a Retry-After header. Keep keys on a server: anyone holding one can invite candidates and read results.
Errors
Failures return an HTTP status and {"error":{"code":"…","message":"…"}}. Codes: unauthorized (401), not_found (404), invalid_request or invalid_json (400), no_invites_left (402), not_completed (409), plan_required (402), rate_limited (429). A missing record and one outside your workspace both return 404.
Endpoints
GET /me
Checks a key: who it acts as and their firm.
GET /assessments
Every assessment in your workspace, newest first, with its model, difficulty, time limit, pass mark and candidate counts. Archived ones are left out unless you add ?include_archived=true.
POST /assessments/{id}/invites
Invites up to 25 candidates and returns each one's private link. Nothing is emailed unless send_email is true, so your system can send the link in its own message. Allowances count people, the same as the dashboard: a new email uses one candidate, and another test for someone already invited is free.
{
"send_email": false,
"candidates": [
{ "name": "Jordan Lee", "email": "jordan@example.com", "external_id": "ATS-4821" }
]
}Store your ATS's own id for the candidate or application in external_id. It comes back on every read and webhook, and it makes retries safe: if that external_id already has an open invite on the assessment, you get that invite back (listed in reused) instead of a second one. Returns 201 with data, an array of invites.
GET /invites
Candidates across your workspace, newest first. Filters: assessment_id, status, external_id, and since (an ISO time; returns candidates with activity since then). Paged with limit (up to 200, default 100) and page; the response carries total and has_more. Lists leave out link and result.integrity; read one invite for those.
GET /invites/{id}
One candidate in full, including the integrity summary:
{
"id": "fea30ac7-0679-4392-bd2e-36b6403a0819",
"assessment": { "id": "24d99b1f-…", "title": "Growth Equity Associate: Project Cobalt" },
"external_id": "ATS-4821",
"candidate": { "name": "Jordan Lee", "email": "jordan@example.com" },
"status": "completed",
"delivery": "api",
"link": null,
"invited_at": "2026-11-22T19:51:34Z",
"expires_at": "2026-12-06T19:51:34Z",
"started_at": "2026-11-23T19:51:34Z",
"submitted_at": "2026-11-23T20:59:34Z",
"submitted_via": "candidate",
"result": {
"score_pct": 95,
"passed": true,
"pass_mark_pct": 70,
"minutes_used": 68,
"time_limit_minutes": 90,
"needs_review": true,
"written_answer_pending": false,
"integrity": { "level": "low", "label": "Minor" },
"results_url": "https://www.sheetrank.com/dashboard/hiring/results/fea30ac7-…"
}
}status:invited,in_progress,completed,link_expiredorwithdrawn.deliveryisuploadandsubmitted_viaisuploadfor a finished Excel file a recruiter uploaded instead of sending a link. Those have no timing or integrity record, andcandidate.emailis null if none was given.resultis present once a candidate has submitted.score_pctandpassedinclude any reviewer decisions and written-answer score, exactly as the dashboard shows them.needs_reviewis true while the grader has flagged lines for a person to settle, or a written answer is unscored. The score can change when that happens; you get aninvite.score_updatedwebhook.integrity.levelisnone,low,mediumorhigh: observations for a person to review, never an automatic fail.
POST /invites/{id}/report-link
A read-only report for one completed candidate, to attach to their ATS profile. No login is needed to open it. Optional body: days (1 to 365, default 60), show_sheet and show_integrity (both default true). Returns {"data":{"url":"…","expires_at":"…"}}.
Webhooks
Add an HTTPS endpoint under Integrations and pick its events. It receives a POST for every candidate on every assessment in your firm:
invite.started: the candidate pressed Start; the clock is running.invite.completed: the attempt was submitted (by the candidate or when time ran out) and graded.invite.score_updated: a reviewer settled flagged lines or scored the written answer.
The body is the invite, exactly as GET /invites/{id} returns it:
{
"id": "delivery id, unique per delivery",
"type": "invite.completed",
"created_at": "2026-11-23T20:59:40Z",
"data": { "invite": { … } }
}Headers: SheetRank-Event, SheetRank-Delivery and SheetRank-Signature. Reply with any 2xx within 8 seconds. Anything else is retried, and a delivery is given up after six attempts over about three days. Use the delivery id to ignore a repeat.
Verifying the signature
SheetRank-Signature looks like t=1764000000,v1=5f2c…: v1 is the hex HMAC-SHA256 of <t>.<raw body> using the webhook's signing secret (shown on the Integrations page). Reject a request whose signature does not match or whose t is more than five minutes old.
import { createHmac, timingSafeEqual } from "node:crypto";
// rawBody: the request body exactly as received (a string, not parsed JSON)
export function verifySheetRank(rawBody, header, secret) {
const parts = Object.fromEntries(header.split(",").map((p) => p.split("=")));
const t = Number(parts.t);
if (!t || Math.abs(Date.now() / 1000 - t) > 300) return false; // older than 5 minutes
const expected = createHmac("sha256", secret).update(`${t}.${rawBody}`).digest("hex");
return expected.length === parts.v1?.length &&
timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1));
}Use Send test on the Integrations page to post a made-up completed candidate to your endpoint. It never sends a real candidate's data.
A typical ATS connection
- When a candidate reaches your modeling-test stage, call
POST /assessments/{id}/inviteswith their ATS id. - Send them the returned
linkfrom your ATS, or setsend_emailto let SheetRank email it. - On
invite.completed, writescore_pct,passedand a report link fromPOST /invites/{id}/report-linkonto the candidate's profile, matched byexternal_id. - On
invite.score_updated, update the score.
Questions or a system you'd like a ready-made connector for: contact@sheetrank.com.