Developers

The ReferYes API for your ATS

Pull the candidates from your ReferYes pipeline into Greenhouse, Lever, Workday or any applicant tracking system. One read-only REST endpoint, keys you manage yourself, and the same consent rules as the app.

Consent-first
Contact details appear only after a person agrees to be introduced.
Built for syncing
Filter by updated_since and page with a cursor.
60 requests a minute
Per key, with clear limit headers.

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.

GET ?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 example

GET ?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 example

GET ?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

  1. Sign in to ReferYes as a hiring manager and open Settings → API access.
  2. Create a key, name it after where it goes (for example “Greenhouse sync”) and copy it. It's shown only once.
  3. Call the API with the key in the Authorization header:
Request
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.

Endpoint
GET https://referyes.com/functions/atsApi?resource=jobs | candidates | candidate

Send 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.

POST with a JSON body
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.

List jobs

The roles you're on (as creator, hiring manager, recruiter or exclusive recruiter), with candidate counts per stage.

ParameterDescription
resource=jobsRequired.
job_idOnly this job.
statusComma-separated job statuses: Open, Draft, On Hold, Closed.
updated_sinceOnly jobs changed at or after this ISO 8601 time.
limit1 to 100. Default 50.
cursorThe next_cursor from the previous page.
Request
curl "https://referyes.com/functions/atsApi?resource=jobs&status=Open" \
  -H "Authorization: Bearer ry_live_YOUR_KEY"
Response
{ "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.

ParameterDescription
resource=candidatesRequired.
job_idOnly candidates on this job.
stageComma-separated stage keys, e.g. interview,offer. See the stage list below.
statusComma-separated raw statuses as stored, e.g. Pending, Applied, Interview.
updated_sinceOnly candidates changed at or after this ISO 8601 time (any change to the application, referral or profile).
limit1 to 100. Default 50.
cursorThe next_cursor from the previous page.
Request
curl "https://referyes.com/functions/atsApi?resource=candidates&job_id=6a2c62442a114109541f0001&stage=interview" \
  -H "Authorization: Bearer ry_live_YOUR_KEY"
Response
{
  "object": "list",
  "data": [ { "id": "app_6acfbfe7b1c9fd0a0c240001", "object": "candidate", "…": "…" } ],
  "has_more": true,
  "next_cursor": "eyJ2IjoxLCJ1IjoiMjAyNi0xMC0xNFQwOTowMjo0NS4wMDBaIiwiaSI6ImFwcF82YWNm…"
}

Stages

ai_reviewFound by the AI Talent Scout, waiting for your review
prospectAn AI find you kept
referredReferred by a sourcer; the person hasn’t agreed to be introduced yet
acceptedReferral accepted: the person agreed to be introduced
appliedApplied (careers page, share link or added by your team)
screeningScreening
interviewInterview
assessmentAssessment
offerOffer (shown as “Offered”)
hiredHired
on_holdOn hold (still open)
withdrawnThe candidate withdrew (closed)
rejectedNot moving forward (closed)
job_closedThe 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.

Request
curl "https://referyes.com/functions/atsApi?resource=candidate&id=app_6acfbfe7b1c9fd0a0c240001" \
  -H "Authorization: Bearer ry_live_YOUR_KEY"
Response
{
  "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:

candidate (shared)
{
  "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:

candidate (pending consent)
{
  "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
}
ParameterDescription
idThis 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_idThe person in ReferYes (the same across jobs).
application_id / referral_idThe underlying records, when there are any.
source.typereferral, share_link (applied through a sourcer’s link), careers_page, ai_scout or direct.
referralWhat 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_urlA signed download link valid for 15 minutes (resume_url_expires_at). Download the file then; request the candidate again for a fresh link.
updated_atThe 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

  1. First run: page through resource=candidates without updated_since and store each item by its id.
  2. Remember the largest updated_at you saw.
  3. Every 15 minutes or so, ask for updated_since=<that time>, page through, and update or insert by id. The filter includes the time you pass, so you may see the last item again; matching on id makes that harmless.
  4. 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's app_… id with the same referral_id, and the ref_… item stops appearing. Match on referral_id first, then id, so you update the record you already have instead of creating a second one.
Example (JavaScript)
// 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"
  }
}
StatusCodeMeaning
400invalid_requestA parameter is missing or not valid. The message says which.
401missing_api_keyNo key was sent. Use the Authorization header.
401invalid_api_keyThe key doesn’t exist or is mistyped.
401revoked_api_keyThe key was revoked in Settings → API access. Create a new one.
403forbiddenThe key’s owner no longer has hiring-manager access, or the key can’t read this resource.
404not_foundNo job or candidate with that id in your account.
405method_not_allowedUse GET, or POST with a JSON body.
429rate_limitedToo many requests this minute. Wait for the seconds in Retry-After.
500internal_errorSomething 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:

ParameterDescription
X-RateLimit-LimitRequests allowed per minute for this key.
X-RateLimit-RemainingRequests left in the current minute.
X-RateLimit-ResetWhen the minute ends (Unix time, seconds).
Retry-AfterOn 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.

Essential cookies keep you signed in; optional analytics (ours and Google Analytics) help us improve. Privacy