API overview and the invite model

Create an invite, read checks, download the report PDF, and list candidates and credits. The body never includes an SSN.

Updated 1 of 17 in API, MCP and integrations

The employer API creates the same invite as the dashboard. The candidate enters identity details on their own link. Calls use https://www.prehirebadge.com and Authorization: Bearer plus a live key, test key, or OAuth token.

Who it is for. A developer connecting a hiring system.

  1. Create a key on the API page. Practice with a test key before a live key spends a credit.
  2. POST /api/v1/checks with the candidate, the work location, the position, and the permissible-purpose flag.
  3. Send the returned invite URL to the candidate, unless sendInvite is left on and the API sends it.
  4. Wait for a webhook, or poll GET /api/v1/checks/:id until status is complete.
  5. Open reportUrl within ten minutes. The PDF is the furnished report. The JSON body has the summary only.

Leave ssn and dob out of every body

A body that includes either field is rejected, even when the value is empty. The candidate enters those on the invite.

Create an invite

POST /api/v1/checks requires scope checks:write. Send Content-Type: application/json.

FieldRequiredRule
firstNameYesNon-empty string
lastNameYesNon-empty string
emailEmail or phoneTrimmed and lowercased
phoneEmail or phoneDigits only. Other characters are removed.
locationIdYesId of a work location on this account
positionTitleYesNon-empty string
payBandYesunder_20k, 20_25k, 25_75k, or 75k_plus
conditionalOfferMadeYes where offer-first rules applyJSON true or false. Only true counts as yes.
certifyPermissiblePurposeYesMust be JSON true
requisitionIdNoA UUID. Omit it when you have no requisition.
sendInviteNoDefaults to true. false skips the email or text and still returns inviteUrl.
addOnsNoOmit it, or send an empty array. Named add-ons are rejected.

locationId is the value of the work-location field on the order form. List locations with GET /api/v1/locations.

Pay bands match the order form: under $20,000, $20,000 to $24,999, $25,000 to $74,999, and $75,000 or more. See pay bands.

curl -X POST https://www.prehirebadge.com/api/v1/checks \
  -H "Authorization: Bearer phb_test_..." \
  -H "Content-Type: application/json" \
  -H "X-PHB-Test-Outcome: clear" \
  -d '{
    "firstName": "Ada",
    "lastName": "Lovelace",
    "email": "ada@example.com",
    "locationId": "LOCATION_ID",
    "positionTitle": "Analyst",
    "payBand": "25_75k",
    "conditionalOfferMade": true,
    "certifyPermissiblePurpose": true
  }'

Live response

A new live invite spends one credit and returns:

{ "id": "CHECK_ID", "inviteUrl": "https://www.prehirebadge.com/apply/TOKEN" }

idis the check id. The invite stays open for the company's invite window, from 3 to 30 days, and 7 days when the company has not set one. Status starts at invited.

The same email or phone already in flight returns 200with that check's id and an empty inviteUrl. Nothing new is charged, sent, or webhooked. In-flight means invited, pending_credentialing, processing, or pending_adjudication.

Some work locations require a conditional offer before the invite. When that rule applies and conditionalOfferMade is not true, the response is 400 and names the place.

Test response

A test key must send X-PHB-Test-Outcome of clear, records_found, or unverifiable. The same header on a live key is a 400. A test create does not spend a credit, call screening, email the candidate, or emit a webhook. The check is already finished:

{
  "id": "CHECK_ID",
  "inviteUrl": "https://www.prehirebadge.com/apply/TOKEN",
  "status": "complete",
  "outcome": "clear",
  "mode": "test"
}

clear and records_found finish as complete with that outcome. unverifiable finishes as status unverifiable and outcome null. The stored summary is Test outcome clear, Test outcome records_found, or Test outcome unverifiable.

Ask for a check from a connected app

POST /api/v1/check-requests requires scope checks:request and a current integration certification. Send Idempotency-Key. A new request returns 202 with status pending and does not create a check or spend a credit. Repeating the same key returns 200 with the same id. Without the certification the response is 403 certification_required.

The request waits in Ready to send. A person at the company confirms a permissible purpose and sends it. See integrations and the FCRA.

POST /api/v1/checks refuses a Zapier connection. Zapier asks through check requests, and a person sends each one.

Read checks

GET /api/v1/checks/:id requires checks:read. A missing check, or a check on another account, is 404 with Check not found.

{
  "id": "CHECK_ID",
  "status": "complete",
  "outcome": "clear",
  "positionTitle": "Analyst",
  "requisitionId": null,
  "summary": "No reportable record was released.",
  "inviteId": "INVITE_ID",
  "reportUrl": "https://www.prehirebadge.com/api/v1/checks/CHECK_ID/report?exp=UNIX&sig=HEX"
}

GET /api/v1/checks returns the newest 50 checks for the account. There is no page cursor. Pass createdBefore to move further back.

QueryRule
statusOne of the statuses in the table below
createdAfterISO date or date-time, inclusive
createdBeforeISO date or date-time, inclusive
requisitionUUID. This query name is requisition, not requisitionId.

Each list item has the same fields as a single check except inviteId.

StatusMeaning
invitedThe invite is out. One credit is already used.
pending_credentialingThe candidate finished. Screening waits until the account is credentialed.
processingThe screening call is in flight.
pending_adjudicationA person is reviewing records before release.
completeThe report is released. outcome is clear or records_found.
unverifiableThe check could not be completed. The credit was refunded.
errorThe screening call failed. The credit was refunded.
cancelledThe employer cancelled before screening. The credit was refunded.
expiredThe invite expired before the candidate finished. The credit was refunded.

outcome is clear or records_found only when status is complete. Otherwise it is null. An OAuth token without reports:read receives null for outcome, summary, and reportUrl. An API key can always read them. summary is one line. Record rows are on the PDF, not in this JSON.

reportUrl is present only when the check is complete and the token can read reports. It expires ten minutes after it is issued.

Download the report PDF

GET /api/v1/checks/:id/report?exp=UNIX&sig=HEX does not use the bearer token. The signature is bound to that check id and expiry. A bad or expired link is 401 with This report link is not valid. A check that is not complete is 404 with Report not found. A valid link returns application/pdf and cache-control: no-store.

Credits and candidates

GET /api/v1/credits requires credits:read and returns { "credits": 8 }. That number is unused check credits. Buying credits stays on the billing page.

GET /api/v1/candidates requires candidates:read and returns the newest 50 people as id, firstName, lastName, email, and hiringStage. Add ?email= to match one address. A person who only has a skills quiz is not in this list. Their scores are on GET /api/v1/skills.

GET /api/v1/candidates/:id returns those fields plus checks, each with id, status, and outcome. A missing candidate is 404 with Candidate not found. That includes a person who only has a skills quiz. Outcome follows the same reports:read rule as a check.

Company, pipeline, and exports

CallScopeWhat it returns
GET /api/v1/locationscompany:readLocations, including archived ones
POST /api/v1/locationscompany:writeCreates a location from name, city, and state
PATCH /api/v1/locations/:idcompany:writeSet isDefault true, or archived true
GET /api/v1/requisitionscompany:readOpen and closed openings, including headcount, pay band, and description
POST /api/v1/requisitionscompany:writeCreates an opening. Title is required. locationId, headcount, payBand, and description are optional.
PATCH /api/v1/candidates/:id/stagecompany:write or candidates:writeMoves the hiring stage. Rejected needs reason. other also needs reasonNote.
POST /api/v1/candidates/:id/referencesreferences:writeAsks the candidate for references. Optional count (1 to 5), requireManager, and questionSetId. Returns 201 with id and status. 409 if one is already open. A test key is refused.
GET /api/v1/reference-requests/:idreferences:readStatus, counts, and each reference's id and status. Answers, names, and contacts stay in PreHireBadge.
GET /api/v1/rescreenschecks:readDue re-screen windows that have not been sent
GET /api/v1/compliancechecks:readCompletion and outcomes. format=pdf returns a PDF
POST /api/v1/draftscompany:readAn offer or policy draft. format pdf returns a PDF
GET /api/v1/exportcompany:readA ZIP of company CSV files. Rate limited.
GET /api/v1/skillsskills:readScores without answers
POST /api/v1/skillsskills:writeCreates a test run from testId, firstName, and lastName. Optional workState and workCity set the quiz notice. A blank city is ignored. A real send of an unreviewed quiz is refused.

A blocked stage move, including Rejected without a reason, is 409 with code stage_blocked. That includes a move before adverse action is finished. Hired is 409 while an adverse-action case is still open. A closed opening is 409 until you reopen it. A skills-quiz-only person is Candidate not found. Drafts say they are not a contract. The export ZIP adds stage-events.csv and notes.csv. requisitions.csv includes description, headcount, and pay_band. The export omits Social Security numbers, dates of birth, street addresses, and secrets.

Jobs and applications

GET /api/v1/jobs requires jobs:read. Optional status is draft, published, or closed. Each job includes id, title, status, postingStatus, publishedAt, validThrough, locationId, and url. The URL is set only when the job is published and the careers page has an address.

POST /api/v1/jobs requires jobs:write. Send a title, and optionally locationId, payBand, and a plain-text description. ## starts a heading and - starts a bullet. You can send a Tiptap doc instead of description. Pay uses payMin, payMax, and payPeriod, the same way as the editor. The call returns 201 with the job id and the posting check. The job stays a draft until you publish it.

GET /api/v1/jobs/:id requires jobs:read. A missing job is 404 with Job not found.

POST /api/v1/jobs/:id/publish requires jobs:write. It runs the same posting check as the editor. A problem is 422 and the body includes lint with each block. A published job returns its public url.

GET /api/v1/applications and GET /api/v1/applications/:id require applications:read. The list accepts jobId, since, and limit (up to 100). Each application includes its id, candidate id, name, email, phone, job id and title, source, source detail, answers, submitted time, reviewed time, and hiring stage. Responses never include a resume, a document link, or an AI summary.

POST /api/v1/applications requires applications:write. Send firstName, lastName, email, and jobId. Phone, answers, and a short sourceDetail are optional. A closed or missing job is 409. Social Security numbers, dates of birth, and address fields are dropped and logged. They are not stored.

POST /api/v1/candidates requires candidates:write. Send a first and last name, and optionally an email, a phone, and jobId. A new person is 201. Someone already on file is 200.

GET /api/v1/integrations requires integrations:read. It lists each connected app with its status, last used time, and last error code.

Errors from a create

Failed calls return { "error": "..." }. Auth errors are in the keys article.

StatusWhen
400Invalid JSON, a missing field, a bad pay band, ssn or dob, an add-on, or a bad requisition id
400The work location is not on this account, or the account has no credit
400Fair-chance rules for that location require a conditional offer
400A test outcome was sent with a live key, or a test key omitted a valid outcome
403API access for the account is suspended

This API does not cancel a check, resend an invite, start adverse action, or buy credits. Those stay in the dashboard. Webhook delivery is the next article.

The API page, where an owner creates a key and a webhook.
The API page, where an owner creates a key and a webhook.

Next: API keys and test mode, then webhook events.

Was this article helpful?