Overview
The ReferYes API lets your applicant tracking system read the people in your ReferYes hiring pipeline: referrals from sourcers, people who applied through a sourcer's share link or your careers page, and finds from the AI Talent Scout. Each candidate comes with the job, the stage, where they came from and, once they've agreed to be introduced, their contact details and résumé.
The API is read-only in this version. Moving people through stages, interviews and offers still happens in ReferYes. A key sees exactly what its owner sees on the roles they're on, nothing from other companies.
Web services available
Three read-only web services are available for ATS integration in this version. Each is a REST call over HTTPS that returns JSON, on the same endpoint and with the same API key.
List jobs
Parameters and exampleGET ?resource=jobs
Returns: The roles you’re on, with requisition number, status, department, location, employment type and the number of candidates at each stage.
Use it to: Match ReferYes roles to the requisitions in your ATS.
List candidates
Parameters and exampleGET ?resource=candidates
Returns: Everyone in the pipelines of your roles, one item per person per role, with stage, source, the sourcer’s notes and screening answers. Filter by job, stage, status or time of last change.
Use it to: Load candidates into your ATS and keep them up to date on a schedule.
Get one candidate
Parameters and exampleGET ?resource=candidate
Returns: One person on one role, with the same fields as the list and a fresh résumé download link.
Use it to: Refresh a single record or download a résumé.
How they fit an ATS integration
- One way. Data moves from ReferYes to your ATS. Your ATS, or the integration tool it uses, calls ReferYes on a schedule and loads the results with the ATS's own import or API. Through this API, ReferYes never writes to your ATS.
- Using Workday, Greenhouse, Lever, Ashby, SmartRecruiters or Workable? You don't need to build anything. ReferYes's native connectors (early access) bring open roles in and send consented candidates into your ATS, set up by your ATS admin in Settings → Integrations. Ask about access.
- Any ATS. The services aren't tied to a vendor. They work with Workday, Greenhouse, Lever, Ashby or any other system that can call a REST API, directly or through an integration tool.
- Consent applies. Contact details and the résumé are returned only after the person agrees to be introduced. See Contact details and consent.
- Your roles only. A key reads the roles its owner is on, nothing from other companies.
Not available in this version
- Writing to ReferYes: creating or editing jobs, moving candidates between stages, adding notes or recording a hire.
- Push notifications (webhooks). Ask for changes with updated_since instead.
Bringing a role into ReferYes isn't an API call. In the job form, choose Import an existing posting and paste the link to the posting on your careers site or ATS.
Quick start
- Sign in to ReferYes as a hiring manager and open Settings → API access.
- Create a key, name it after where it goes (for example “Greenhouse sync”) and copy it. It's shown only once.
- Call the API with the key in the Authorization header:
curl "https://referyes.com/functions/atsApi?resource=candidates&limit=10" \
-H "Authorization: Bearer ry_live_YOUR_KEY"Authentication
Every request needs an API key in the Authorization header as a bearer token. X-API-Key: ry_live_… also works. Keys look like ry_live_ followed by 32 letters and digits.
Authorization: Bearer ry_live_9fKq2…- Keep keys on your server or in your ATS's secret settings. Never put one in a URL, browser code or email. A request that sends the key as a URL or body parameter is refused.
- Each hiring manager can have up to 5 active keys. Revoke a key in Settings → API access and it stops working at once.
- ReferYes stores only a one-way hash of each key, so a lost key can't be shown again. Create a new one instead.
Making requests
There is one endpoint. Choose what to read with the resource parameter.
GET https://referyes.com/functions/atsApi?resource=jobs | candidates | candidateSend parameters in the query string. You can also POST the same parameters as a JSON object; if a parameter is in both, the query string wins. Responses are JSON (UTF-8). Times are ISO 8601 in UTC.
curl -X POST "https://referyes.com/functions/atsApi" \
-H "Authorization: Bearer ry_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"resource": "candidates", "stage": "interview,offer", "limit": 25}'Every response carries ReferYes-Api-Version and a ReferYes-Request-Id header; include the request id if you contact support.
Contact details and consent
ReferYes is consent-first: when a sourcer refers someone, that person decides whether to be introduced before their details are shared. The API follows the same rule as the app.
contact_status: "shared": email, phone, LinkedIn and the résumé are included. This is the case for people who applied themselves and for referrals that were accepted."pending_consent": the person hasn't agreed yet. You get the name, the referral summary, skills and the sourcer's notes; contact fields and the résumé arenull. Once the person agrees to the introduction, your next sync returns them with contact details filled in."declined": the person said no. Contact fields staynull."restricted": they agreed, but your account isn't one of the people the contact was shared with.
The API never returns EEO answers, internal notes, AI scores, fees or a sourcer's email address. Sourcer names appear the way ReferYes shows them to you, so a sourcer who keeps their name private stays private.
List jobs
The roles you're on (as creator, hiring manager, recruiter or exclusive recruiter), with candidate counts per stage.
| Parameter | Description |
|---|---|
resource=jobs | Required. |
job_id | Only this job. |
status | Comma-separated job statuses: Open, Draft, On Hold, Closed. |
updated_since | Only jobs changed at or after this ISO 8601 time. |
limit | 1 to 100. Default 50. |
cursor | The next_cursor from the previous page. |
curl "https://referyes.com/functions/atsApi?resource=jobs&status=Open" \
-H "Authorization: Bearer ry_live_YOUR_KEY"{ "object": "list", "data": [ { "id": "6a2c62442a114109541f0001", "object": "job", "requisition_id": "REQ-1042", "title": "Senior Product Designer", "status": "Open", "department": "Design", "location": "Seattle, WA", "remote_policy": "Hybrid", "employment_type": "Full-time", "engagement_type": "permanent", "company_name": "Northwind Labs", "visibility": "public", "counts": { "candidates": 8, "active": 6, "by_stage": { "referred": 2, "applied": 3, "interview": 2, "rejected": 1 } }, "created_at": "2026-10-01T16:20:11.000Z", "updated_at": "2026-10-14T09:02:45.000Z" } ], "has_more": false, "next_cursor": null }List candidates
Everyone in the pipelines of your jobs, one item per person per job, oldest change first.
| Parameter | Description |
|---|---|
resource=candidates | Required. |
job_id | Only candidates on this job. |
stage | Comma-separated stage keys, e.g. interview,offer. See the stage list below. |
status | Comma-separated raw statuses as stored, e.g. Pending, Applied, Interview. |
updated_since | Only candidates changed at or after this ISO 8601 time (any change to the application, referral or profile). |
limit | 1 to 100. Default 50. |
cursor | The next_cursor from the previous page. |
curl "https://referyes.com/functions/atsApi?resource=candidates&job_id=6a2c62442a114109541f0001&stage=interview" \
-H "Authorization: Bearer ry_live_YOUR_KEY"{
"object": "list",
"data": [ { "id": "app_6acfbfe7b1c9fd0a0c240001", "object": "candidate", "…": "…" } ],
"has_more": true,
"next_cursor": "eyJ2IjoxLCJ1IjoiMjAyNi0xMC0xNFQwOTowMjo0NS4wMDBaIiwiaSI6ImFwcF82YWNm…"
}Stages
ai_review | Found by the AI Talent Scout, waiting for your review |
prospect | An AI find you kept |
referred | Referred by a sourcer; the person hasn’t agreed to be introduced yet |
accepted | Referral accepted: the person agreed to be introduced |
applied | Applied (careers page, share link or added by your team) |
screening | Screening |
interview | Interview |
assessment | Assessment |
offer | Offer (shown as “Offered”) |
hired | Hired |
on_hold | On hold (still open) |
withdrawn | The candidate withdrew (closed) |
rejected | Not moving forward (closed) |
job_closed | The job was closed while they were in its pipeline (closed) |
active is false for hired, withdrawn, rejected and job_closed.
Get one candidate
Pass the id from the candidates list (app_…, ref_… or scout_…). You can also pass a ReferYes candidate_id; if that person is on more than one of your jobs, add job_id, otherwise you get their most recently updated one.
curl "https://referyes.com/functions/atsApi?resource=candidate&id=app_6acfbfe7b1c9fd0a0c240001" \
-H "Authorization: Bearer ry_live_YOUR_KEY"{
"object": "candidate",
"data": { "id": "app_6acfbfe7b1c9fd0a0c240001", "object": "candidate", "…": "…" }
}The candidate object
A person who agreed to be introduced, with contact details and a résumé link:
{
"id": "app_6acfbfe7b1c9fd0a0c240001",
"object": "candidate",
"candidate_id": "6acfbfe6f1cfde4ed51b0001",
"application_id": "6acfbfe7b1c9fd0a0c240001",
"referral_id": "6acfbfe2c0d1e2f3a4b50001",
"job": {
"id": "6a2c62442a114109541f0001",
"title": "Senior Product Designer",
"requisition_id": "REQ-1042"
},
"stage": "interview",
"stage_label": "Interview",
"active": true,
"status": "Interview",
"name": "Maya Chen",
"contact_status": "shared",
"email": "maya.chen@example.com",
"phone": "+1 555 010 2231",
"linkedin_url": "https://www.linkedin.com/in/example",
"location": "Seattle, WA",
"current_title": "Lead Product Designer",
"current_company": "Lumen Health",
"headline": "Product designer for health and fintech apps",
"summary": "Nine years designing patient and consumer products...",
"skills": ["Figma", "Design systems", "User research"],
"source": { "type": "referral", "sourcer_name": "Lena Novak" },
"referral": {
"referral_id": "6acfbfe2c0d1e2f3a4b50001",
"how_you_know": "Found on LinkedIn; 30-minute phone screen on Oct 1.",
"why_suitable": "Led the onboarding redesign that lifted completion from 61% to 84%.",
"warm_intro": true,
"warm_intro_note": null,
"screening_answers": [
{ "question": "Are you open to hybrid work in Seattle?", "answer": "Yes, three days a week." }
],
"consent_status": "accepted",
"consent_given_at": "2026-10-03T18:40:00.000Z",
"submitted_at": "2026-10-02T15:12:09.000Z"
},
"created_at": "2026-10-03T18:41:27.000Z",
"updated_at": "2026-10-14T09:02:45.000Z",
"resume_url": "https://storage.referyes.com/signed/…",
"resume_url_expires_at": "2026-10-15T16:15:00.000Z"
}A referral still waiting for the person's answer:
{
"id": "ref_6ad0dfbc226dc1ce8d0b0002",
"object": "candidate",
"candidate_id": "6ad0dfb0c1e5cd4684e60002",
"application_id": null,
"referral_id": "6ad0dfbc226dc1ce8d0b0002",
"job": { "id": "6a2c62442a114109541f0001", "title": "Senior Product Designer", "requisition_id": "REQ-1042" },
"stage": "referred",
"stage_label": "Referred",
"active": true,
"status": "Pending",
"name": "Jordan Patel",
"contact_status": "pending_consent",
"email": null,
"phone": null,
"linkedin_url": null,
"location": null,
"current_title": "Senior UX Designer",
"current_company": null,
"headline": null,
"summary": "Design lead for B2B analytics products...",
"skills": ["Figma", "Prototyping"],
"source": { "type": "referral", "sourcer_name": "Lena Novak" },
"referral": { "referral_id": "6ad0dfbc226dc1ce8d0b0002", "how_you_know": "LinkedIn search", "consent_status": "none", "…": "…" },
"created_at": "2026-10-15T14:14:20.000Z",
"updated_at": "2026-10-15T14:14:20.000Z",
"resume_url": null,
"resume_url_expires_at": null
}| Parameter | Description |
|---|---|
id | This person on this job: app_… (an application), ref_… (a referral without an application yet) or scout_… (an AI find). Use it, with referral_id, as your external id (see syncing). |
candidate_id | The person in ReferYes (the same across jobs). |
application_id / referral_id | The underlying records, when there are any. |
source.type | referral, share_link (applied through a sourcer’s link), careers_page, ai_scout or direct. |
referral | What the sourcer told you: how they found the person, why they fit, warm intro, screening answers, consent status. null when there’s no referral. |
resume_url | A signed download link valid for 15 minutes (resume_url_expires_at). Download the file then; request the candidate again for a fresh link. |
updated_at | The latest change to the application, referral or profile. Use it for syncing. |
Pagination
Lists are ordered by updated_at, oldest first. When has_more is true, request the next page with cursor=<next_cursor> and the same filters. Cursors are opaque; don't build or change them. Paging stays correct while records change, because a record that changes moves to the end and comes back in a later page or sync.
Keeping your ATS in sync
- First run: page through
resource=candidateswithoutupdated_sinceand store each item by itsid. - Remember the largest
updated_atyou saw. - Every 15 minutes or so, ask for
updated_since=<that time>, page through, and update or insert byid. The filter includes the time you pass, so you may see the last item again; matching onidmakes that harmless. - When a referred person agrees to be introduced, they come back with
contact_status: "shared"and the contact fields filled in. If ReferYes also opened an application for them, they come back under the application'sapp_…id with the samereferral_id, and theref_…item stops appearing. Match onreferral_idfirst, thenid, so you update the record you already have instead of creating a second one.
// Node 18+: pull every candidate changed since the last run
const KEY = process.env.REFERYES_API_KEY; // ry_live_…
const BASE = 'https://referyes.com/functions/atsApi';
async function syncCandidates(since) { // since: ISO time saved by the last run, or null
let cursor = null, newest = since;
do {
const qs = new URLSearchParams({ resource: 'candidates', limit: '100' });
if (since) qs.set('updated_since', since);
if (cursor) qs.set('cursor', cursor);
const res = await fetch(`${BASE}?${qs}`, { headers: { Authorization: `Bearer ${KEY}` } });
if (res.status === 429) { // wait as long as the API asks, then retry
await new Promise((r) => setTimeout(r, Number(res.headers.get('Retry-After') || 5) * 1000));
continue;
}
if (!res.ok) throw new Error((await res.json()).error.message);
const page = await res.json();
for (const c of page.data) {
await upsertIntoAts(c); // match on c.referral_id, then c.id; update if found
if (!newest || c.updated_at > newest) newest = c.updated_at;
}
cursor = page.next_cursor;
} while (cursor);
return newest; // save it for the next run
}Errors
Errors use standard HTTP status codes and a JSON body with a machine-readable code:
{
"error": {
"code": "invalid_request",
"message": "limit must be a whole number from 1 to 100.",
"docs": "https://referyes.com/developers#errors"
}
}| Status | Code | Meaning |
|---|---|---|
| 400 | invalid_request | A parameter is missing or not valid. The message says which. |
| 401 | missing_api_key | No key was sent. Use the Authorization header. |
| 401 | invalid_api_key | The key doesn’t exist or is mistyped. |
| 401 | revoked_api_key | The key was revoked in Settings → API access. Create a new one. |
| 403 | forbidden | The key’s owner no longer has hiring-manager access, or the key can’t read this resource. |
| 404 | not_found | No job or candidate with that id in your account. |
| 405 | method_not_allowed | Use GET, or POST with a JSON body. |
| 429 | rate_limited | Too many requests this minute. Wait for the seconds in Retry-After. |
| 500 | internal_error | Something went wrong on our side. Retry; if it keeps happening, send us the request_id. |
Rate limits
Each key can make 60 requests a minute. Every response tells you where you stand:
| Parameter | Description |
|---|---|
X-RateLimit-Limit | Requests allowed per minute for this key. |
X-RateLimit-Remaining | Requests left in the current minute. |
X-RateLimit-Reset | When the minute ends (Unix time, seconds). |
Retry-After | On a 429: seconds to wait before trying again. |
A sync every 15 minutes at 100 candidates a page stays far below the limit. If you need more, contact us.
Versioning
This is version 1 (ReferYes-Api-Version: 1). We may add new fields, resources and parameters at any time, so ignore fields you don't recognise. Removing or renaming anything would be a new version, announced in advance to everyone with an active key.
Support
Questions, a higher limit or an integration you'd like us to support? Email hello@referyes.com and include the ReferYes-Request-Id of any request that went wrong.
Ready to connect your ATS?
Create a key in a minute. New to ReferYes? Posting a role is free.