Skip to main content

Scenario

Lever tracks every candidate as an “Opportunity” that flows through pipeline stages — New Lead, Recruiter Screen, Phone Interview, Onsite, Offer, Hired. Each stage represents a different candidate mindset and experience level with your process. You pull opportunities grouped by their current stage, create a persona for each stage, then run a Focus Group asking synthetic candidates to rate their experience at that point. The result tells you where your pipeline loses goodwill. Flow: Lever GET /opportunities → Group by stage → Mavera POST /personas (per stage) → POST /focus-groups → Experience ratings by stage

Architecture

Code

Example Output

Error Handling

Lever allows 10/sec sustained with 20/sec burst. The code uses 150ms delays. For bulk pulls, monitor X-RateLimit-Remaining header.
Lever uses cursor-based pagination via offset in the response next field. Never use numeric page numbers — always pass the returned cursor.
Opportunity stage field is an ID, not a name. Always fetch /stages first to build a map. Stage names are configurable per-org.