Give your agent the ability to search 500M+ candidate profiles, score them against any job with AI, find verified emails, and manage recruiting pipelines — through a single API.
curl -s https://www.tapflowai.com/api/v1/projects \
-H "Authorization: Bearer tap_live_abc123..." \
-H "Content-Type: application/json" | jq
{
"data": [
{
"id": "prj_8x2k",
"title": "Senior ML Engineer",
"status": "open"
}
],
"meta": {
"requestId": "req_m4n9",
"timestamp": "2026-03-20T12:00:00Z",
"version": "1.0"
},
"usage": {
"credits_consumed": 0,
"balance_remaining": 4850,
"action": "read"
}
}Four steps from zero to your first agent call.
Sign up, open Settings → API and click Create key. Pick the scopes your agent needs: read for GET calls, write for everything else, batch for the two batch routes.
Send Authorization: Bearer tap_live_… on every call. Keys are scoped to your company and can be revoked anytime.
POST /api/v1/projects with the job description in start. The search starts by itself; follow it with GET /projects/:id/search.
Register a https:// endpoint, pick events (candidate.scouted, outreach.replied, …), and verify HMAC-SHA256 signatures on X-Tapflow-Signature.
Bearer token auth with scope-based access control.
Bearer token authentication with plan-based rate limits. Keys are SHA-256 hashed at rest.
Every response includes a data envelope, request metadata, and usage blocks — designed for machine parsing.
Send an Idempotency-Key header on mutations to safely retry without duplicate side-effects.
Real-time events with SHA-256 HMAC signatures, exponential backoff retry, and delivery logs.
Deep-dive or enrich up to 50 candidates in a single call, free. Partial results — failures don't block successes.
Every error includes a machine code, human message, and actionable recovery hint — no guessing.
Authorization: Bearer tap_live_YOUR_API_KEY_HERE Content-Type: application/json Idempotency-Key: my-unique-request-id # optional, for safe retries
Use Tapflow from ChatGPT, Claude, Cursor, VS Code, Windsurf or any MCP client — no code. Sign in or use a key: same scopes, prices and rate limits as the REST API.
Connect your AI assistant
Work with Tapflow from Claude, Cursor, VS Code or any MCP client: create roles, start searches, read the shortlist. Same keys, scopes and prices as the API.
Add https://www.tapflowai.com/mcp as a connector (ChatGPT: Settings → Apps → Create, authentication OAuth; Claude.ai: Settings → Connectors → Add custom connector), then sign in to Tapflow and approve. Each teammate connects with their own account.
https://www.tapflowai.com/mcp
Paste the address, then sign in with your Tapflow account when asked.
Step-by-step Claude setup →Setup guide for every assistant →Endpoint https://www.tapflowai.com/mcp (Streamable HTTP, stateless). ChatGPT and Claude.ai: add the URL as a connector and sign in to Tapflow (OAuth) — no key; each teammate connects with their own account, and Settings → API → Connected apps lets you revoke it. Other clients send Authorization: Bearer tap_live_… or tap_test_…. https://www.tapflowai.com/mcp/demo answers a read-only demo on sample data without a key. Every tool call is a public API call and shows in your request log.
Roles
tapflow_list_rolestapflow_get_roletapflow_create_roletapflow_get_ideal_profiletapflow_update_ideal_profiletapflow_archive_roleSearch
tapflow_get_start_pricetapflow_start_searchtapflow_get_search_statustapflow_stop_searchtapflow_answer_search_check_inReview
tapflow_get_role_reviewtapflow_answer_role_reviewtapflow_approve_role_reviewtapflow_comment_on_role_analysistapflow_retry_role_analysisPeople
tapflow_list_candidatestapflow_get_candidatetapflow_get_shortlisttapflow_set_candidate_stagetapflow_deep_dive_candidatetapflow_get_deep_divetapflow_find_candidate_emailtapflow_add_candidatetapflow_forget_personOutreach
tapflow_list_outreachtapflow_pause_outreachtapflow_resume_outreachAccount
tapflow_get_balancetapflow_whoamitapflow_list_exclusionstapflow_add_exclusionsResearch connectors
searchfetchAll under /api/v1. Every card shows what it does, why your agent calls it, and what it costs before technical details. Older compatibility aliases are listed in the OpenAPI spec.
/api/v1/projectsList all recruiting projects your company has open. The starting point for every agent session.
Your agent's entry point to the talent pool — call this first to discover available positions and choose which project to operate on.
Path / Query
statusstringoptionalactive (default: every role not archived) | draft | open | archived | alldata[].idstringProject ID used in all subsequent callsdata[].titlestringJob title or role namedata[].statusstringdraft | open | archivedusage.credits_consumedintegerCredits used by this callusage.balance_remainingintegerCredits remaining after this callcurl https://www.tapflowai.com/api/v1/projects \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projectsCreate a role. Send its job description in start and Tapflow drafts the ideal profile, builds the Search Plan and starts the search by itself, exactly like Start in the app, at half its price. The call is the approval: nobody needs to open Tapflow.
Your ATS calls this when a job opens. Store the returned id, then follow the search with GET /projects/:id/search or the search.* webhooks.
Request Body
titlestringrequiredJob title (e.g. 'Senior ML Engineer')start.descriptionstringoptionalThe job description (20–12,000 characters, all of it read). Send it to start the searchstart.goalstringoptionalscout | shortlist (default) | reach_out | get_applicantsstart.countintegeroptionalTarget in the goal's unit: scout 5–500, shortlist 5–100, reach_out 1–200, get_applicants 1–50. Omit for the goal's defaultstart.requirePersonalEmailbooleanoptionalShortlist only: count only people whose personal email was foundstart.startChoicestringoptionaljust_start (default) or plan_first (build the plan and wait)start.reviewstringoptionalauto (default): Tapflow answers its own role questions and accepts its role analysis. ask: they wait for you at GET /projects/:id/reviewstart.excludeobjectoptionalPeople this role's searches never admit: projects, linkedinUrls, emails, emailSha256. Saved on the roleexternalIdstringoptionalYour own id for the role (e.g. your ATS job id), echoed in webhooksmetadataobjectoptionalYour own string key/values, echoed in webhooksdata.idstringNew role IDdata.titlestringTitle as storeddata.searchobject | nullWith start: state preparing, the goal, and the URL to pollcurl -X POST https://www.tapflowai.com/api/v1/projects \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"title": "Senior ML Engineer", "start": {"description": "We are hiring a Senior ML Engineer in Berlin...", "goal": "shortlist", "count": 10, "requirePersonalEmail": true}}'/api/v1/projects/:idRead one role with its readiness: whether it can search now and, if not, what is missing.
Check canSearch before POST /projects/:id/search. When it is false, blockers says what to fix (missing_title, missing_location, …).
Path / Query
idstringrequiredProject IDdata.idstringProject IDdata.statusstringdraft | open | archiveddata.canSearchbooleanTrue when a search can start nowdata.blockers[]stringmissing_icp | missing_title | missing_location | missing_signalcurl https://www.tapflowai.com/api/v1/projects/prj_8x2k \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:idArchive a role when the job closes. Nothing is deleted: the role and its people can still be read.
Stop a running search first (Stop a search, below). Archived roles leave GET /projects unless you ask for status=archived or all.
Path / Query
idstringrequiredProject IDdata.idstringProject IDdata.statusstringarchivedcurl -X DELETE https://www.tapflowai.com/api/v1/projects/prj_8x2k \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/searchStart the role's search toward a goal. A ready Search Plan launches now; otherwise the plan is built and launches by itself. Costs half the price of Start in the app: a shortlist place on a typical role is $2.50 here, $5 in the app.
Returns 202 with status running (and the missionId) or starting. 409 SEARCH_ALREADY_RUNNING means one is live — read it with GET /projects/:id/search. The role's ideal profile is the query: keywords, title or location in the body return 400 with details.retiredFields.
Path / Query
idstringrequiredProject IDRequest Body
goalstringoptionalscout | shortlist (default) | reach_out | get_applicantscountintegeroptionalTarget in the goal's unit: scout 5–500, shortlist 5–100, reach_out 1–200, get_applicants 1–50. Omit for the goal's defaultrequirePersonalEmailbooleanoptionalShortlist only: a person takes a place only once their personal email is foundexcludeobjectoptionalPeople this role's searches never admit: projects, linkedinUrls, emails, emailSha256. Saved on the roledata.statusstringrunning | startingdata.missionIdstring | nullThe search, when it launched nowdata.goalobject{ class, count, requirePersonalEmail }: count is the count the search starts towarddata.priceobject | nullHeld now (state held), or what the launch will hold (estimate | quoted)data.pollstringWhere to read progresscurl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/search \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"goal": "shortlist", "count": 10, "requirePersonalEmail": true}'/api/v1/projects/:id/searchWhere the role's search stands, with the numbers Tapflow shows: goal, progress, profiles read, each step, people held back and why, and what it needs from you.
Read again after checkAgainInSeconds (also the Retry-After header) until it is null, or use the search.* webhooks. On needs_you, answer search.checkIn with POST .../check-in; a needsYou hold says who fixes it (fixedBy api | app | tapflow) and how (fix). A search that finds nobody more ends by itself with search.conclusion: change the role and start again.
Path / Query
idstringrequiredProject IDdata.statestringidle | preparing | waiting_for_review | plan_ready | running | needs_you | paused | finished | stoppeddata.search.progressobject | null{ stage, have, count } toward the goaldata.search.heldBackobject | null{ noPersonalEmail, needsVerification, workEmailOnly }data.search.checkInobject | null{ reason, since, answers[] } when the search asks whether to go ondata.search.conclusionobject | null{ reason, message, places[], place, titles[], heldBack } when it ended because nobody more could be founddata.search.endReasonobject | null{ code, message } for every ended search: goal_reached, none_good_enough, nothing_left, stopped, tapflow_error and moredata.priceobject | nullBefore launch: what a Start would hold. Live: the held price. Ended: what it settled todata.waitingOnstring[]What Tapflow is still doing: role_analysis, plan, search, …data.checkAgainInSecondsinteger | nullWhen to read again; null when the next move is yours or the search endedcurl https://www.tapflowai.com/api/v1/projects/prj_8x2k/search \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/priceWhat a Start would cost on this role right now, with your balance and what to add if it falls short. The same quote the Start locks, at half the app's price.
Show it before you start. state quoted once the role's plan is ready (final); estimate before. A 402 on Start carries the same object in details.price.
Path / Query
idstringrequiredProject IDgoalstringoptionalQuery: scout | shortlist (default) | reach_out | get_applicantscountintegeroptionalQuery: omit for the count a Start would usedata.statestringestimate | quoteddata.perPersonCreditsintegerPrice per person at the goal's stagedata.maxCreditsintegerThe most the search can cost; held at launchdata.stagePrices[]array{ stage, perPersonCredits }: each person is charged once, at the highest stage reacheddata.roleDifficultystringvery_easy … very_hard; scales every pricedata.balanceobject | null{ credits, covers, topUpCredits }curl "https://www.tapflowai.com/api/v1/projects/prj_8x2k/price?goal=shortlist&count=10" \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/reviewRead the role questions and the role analysis: what the role is, who fits, the signals the search ranks by and where to look.
With start.review ask, read again after checkAgainInSeconds (also Retry-After) until state is waiting_for_you, or use the role.review_ready webhook; answer, then approve. A failed analysis is retried by Tapflow at roleAnalysis.nextRetryAt; once it will not be (state failed), retry it yourself. With a tap_test_ key, send X-Tapflow-Test-Scenario: review_preparing | analysis_retrying | analysis_failed on POST /projects to read those states. Every question already stands at its defaultAnswer: pre-select it, and no answer is required. price says what approving holds; reach.aboveReachable says the goal asks for more than the people here are expected to yield: add ?count= to see the price and reach of a lower count, then approve with that count. With review auto Tapflow already decided (answeredBy tapflow).
Path / Query
idstringrequiredProject IDcountintegeroptionalQuery: price and reach for this goal count instead of the role's own (nothing saved)data.statestringpreparing | waiting_for_you | failed | approved | auto. failed: the role analysis failed and Tapflow will not retry it by itself (POST /projects/:id/role-analysis/retry)data.questions[]array | null{ id, question, why, kind, options[] ({ value, label, detail, exclusive, added }), recommended, defaultAnswer[], answer[], customAnswer, acceptsCustomAnswer, acceptsTitles, unpickedExcluded, answeredBy }data.roleAnalysisobject{ state, nextRetryAt, summary, idealCandidate, signals[], watchOuts[], whereToLook[] ({ name, why, type: employer | category }), comments[], … }data.priceobject | nullWhat approving would hold: estimate while the plan is built, quoted once it is readydata.reachobject | null{ people, place, reachable, goal, aboveReachable, message }: the goal against the people the search can reach; warn or hold Start when aboveReachabledata.waitingOnstring[]What Tapflow is still preparing: questions, answers, role_analysis, plandata.checkAgainInSecondsinteger | nullWhen to read again; null when nothing changes by itselfcurl https://www.tapflowai.com/api/v1/projects/prj_8x2k/review \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/review/answersAnswer role questions with option values, or in your own words when no option fits. No answer is required: an unanswered question keeps its defaultAnswer.
Send values or customAnswer per question, never both. A written answer guides the role analysis (and through it who is shortlisted); it is not offered where acceptsCustomAnswer is false. An exclusive option is sent alone. On the titles question (acceptsTitles) send titles to add your own: each is counted in the place and added picked only when people there hold it (titles[] says what happened to each). Answers apply in the background: approve once state is waiting_for_you again. Works after the search started too. Each answer is taken on its own: a refused one is listed in refused[] and its question keeps the answer it had.
Path / Query
idstringrequiredProject IDRequest Body
answers[]arrayrequired{ questionId, values: [option value, …] } or { questionId, customAnswer: "your own words" } (up to 500 characters); on the titles question also { questionId, titles: [up to 5 titles], values? }dataobjectThe review as it stands now (answers.state applying)data.refused[]array{ questionId, code, message } for each answer not taken (TITLE_NOT_HELD, TITLE_LIMIT for titles not added); empty when every answer was takendata.titles[]array{ questionId, title, outcome: added | already_searched | not_held | over_limit, holders } for each title sentcurl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/review/answers \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"answers": [{"questionId": "q_1", "values": ["required"]}, {"questionId": "q_2", "customAnswer": "Only if they ran the kitchen themselves"}]}'/api/v1/projects/:id/role-analysis/commentsTell Tapflow how to read the role, in your own words. It rewrites the role analysis to follow every comment, and the search looks for and shortlists by it.
The comment shows in roleAnalysis.comments as applying until the new analysis is ready, then applied. failed: send the same text again to retry. Locked sections stay as they are. 1,000 characters, 20 comments per role. Free.
Path / Query
idstringrequiredProject IDRequest Body
textstringrequiredYour comment on the role analysisdataobjectThe review as it stands now (roleAnalysis.state outdated while the new analysis is written)data.roleAnalysis.comments[]array{ id, text, createdAt, state: applied | applying | failed }curl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/role-analysis/comments \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"text": "Agency backgrounds are fine here. Weigh B2B SaaS experience more."}'/api/v1/projects/:id/role-analysis/retryRetry a failed role analysis now — the same retry as Retry in the app.
Only when roleAnalysis.state is failed (409 ROLE_ANALYSIS_NOT_FAILED otherwise). Tapflow retries a failed analysis by itself at roleAnalysis.nextRetryAt; once those retries are spent (nextRetryAt null, review state failed) this call starts a new one. Free.
Path / Query
idstringrequiredProject IDdataobjectThe review as it stands now (preparing until the analysis is ready)curl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/role-analysis/retry \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/role-analysis/comments/:commentIdRemove a comment on the role analysis; Tapflow rewrites the analysis without it.
roleAnalysis.state is outdated until the rewritten analysis is ready. Free.
Path / Query
idstringrequiredProject IDcommentIdstringrequiredComment ID from roleAnalysis.commentsdataobjectThe review as it stands nowcurl -X DELETE https://www.tapflowai.com/api/v1/projects/prj_8x2k/role-analysis/comments/ric_abc123 \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/review/approveApprove the questions and the role analysis and start the search toward the goal sent at creation, or toward another count.
Send { count } to start toward another count than the one sent at creation (the goal's unit and range; 400 outside it): the hold is priced for it. 409 REVIEW_NOT_READY with Retry-After and details.waitingOn while anything is still being prepared. 409 ANSWERS_NOT_APPLIED (retryable): the latest answers are being applied again; approve once answers.state is applied. Answers like POST /projects/:id/search.
Path / Query
idstringrequiredProject IDcountintegeroptionalBody: the goal count to start toward instead of the one sent at creationdata.statusstringrunning | startingdata.goalobject{ class, count, requirePersonalEmail }: count is the count the search starts towarddata.priceobject | nullHeld now, or what the launch will holddata.pollstringWhere to read progresscurl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/review/approve \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"count": 5}'/api/v1/projects/:id/missions/:missionId/check-inAnswer a search that asks whether to go on: continue, stop, widen or restart — whichever checkIn.answers offers.
Same answer as the buttons in the app. Returns the search's progress after the answer.
Path / Query
idstringrequiredProject IDmissionIdstringrequiredSearch IDRequest Body
answerstringrequiredcontinue | stop | widen | restartdata.statestringThe search's state after the answercurl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/missions/mis_h1i2j3/check-in \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"answer": "continue"}'/api/v1/projects/:id/missions/:missionId/stopStop a search and keep everyone it found — for example when the job closes in your ATS.
Returns 202; search.ended follows.
Path / Query
idstringrequiredProject IDmissionIdstringrequiredSearch IDdata.statusstringstoppingcurl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/missions/mis_h1i2j3/stop \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/missionsEvery search the role has run, newest first.
Pass an id from here to the next endpoint for that search's numbers.
Path / Query
idstringrequiredProject IDdata[].idstringSearch IDdata[].statusstringThe search's statusdata[].createdAtstringWhen it starteddata[].completedAtstring | nullWhen it endedcurl https://www.tapflowai.com/api/v1/projects/prj_8x2k/missions \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/missions/:missionIdOne search, past or live, with the same numbers as GET /projects/:id/search.
Failed counts read as null, never 0 — treat null as unknown.
Path / Query
idstringrequiredProject IDmissionIdstringrequiredSearch IDdata.statestringThe search's statedata.progressobject | null{ stage, have, count } toward the goaldata.profilesReadinteger | nullProfiles read so fardata.conclusionobject | nullWhy it ended when nobody more could be found: { reason, message, … }data.endReasonobject | nullWhy it ended, for every ending: { code, message }curl https://www.tapflowai.com/api/v1/projects/prj_8x2k/missions/mis_h1i2j3 \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/ideal-profileRead the role's ideal profile: must-haves and nice-to-haves (skills, languages, certifications, industries, education), titles, every place, work mode, level and years, with readiness.
requirements is the same reading GET /projects/:id/review gives. exists is false until the role has an ideal profile: Tapflow saves one when it reads the role's description (roles created with start have one), or on the first PATCH.
Path / Query
idstringrequiredProject IDdata.requirementsobject | null{ titles[], places[], workMode, level, levelEstimated, years, mustHaves[], niceToHaves[] } ({ name, kind })data.titlesstring[]Title variantsdata.locationstring | nullThe first place (requirements.places lists them all)data.workModestring | nullremote | hybrid | onsite | unspecifieddata.canSearchbooleanTrue when a search can start nowcurl https://www.tapflowai.com/api/v1/projects/prj_8x2k/ideal-profile \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/ideal-profileWrite the role's ideal profile yourself instead of sending a job description.
Send approve: true to also build its Search Plan. Missing required fields return 409 ICP_VALIDATION_FAILED with blockers.
Path / Query
idstringrequiredProject IDRequest Body
titlesstring[]optionalTitle variantsskillsstring[]optionalPreferred skillslocationstringoptionalCity, region or countryremotebooleanoptionalRemote-eligibleyearsOfExperience.minintegeroptionalMinimum yearsyearsOfExperience.maxintegeroptionalMaximum yearsattributesstring[]optionalOther attributesapprovebooleanoptionalAlso build the Search Plandata.canSearchbooleanTrue when a search can start nowdata.blockers[]stringWhat is still missingcurl -X PATCH https://www.tapflowai.com/api/v1/projects/prj_8x2k/ideal-profile \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"titles": ["Senior ML Engineer"], "location": "Berlin", "approve": true}'/api/v1/projects/:id/candidatesRetrieve the talent pipeline with optional score and status filters. Works for both spot-checks and full pipeline sweeps.
After a search completes, filter by min_score=70 to get only high-fit candidates. Use pagination to process large pools without memory pressure.
Path / Query
idstringrequiredProject IDlimitintegeroptionalMax results per page (default 50, max 100)offsetintegeroptionalPagination offset (default 0)statusstringoptionalFilter by stage: scouted | analyzed | scored | shortlisted | shortlist_declined | held | contacted | replied | applied | rejectedmin_scoreintegeroptionalMinimum fit score 0–100max_scoreintegeroptionalMaximum fit score 0–100idsstringoptionalComma-separated candidate IDs (up to 100); skips paginationdata[].idstringCandidate IDdata[].namestringCandidate full namedata[].fitScoreintegerAI fit score 0–100data[].analysisStatusstringPipeline stagepagination.hasMorebooleanWhether more pages existcurl "https://www.tapflowai.com/api/v1/projects/prj_8x2k/candidates?min_score=70&limit=20" \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/candidates/:candidateIdOne person in full: profile, score, Deep-dive when there is one, and contact details found so far.
Call this on a candidate.scouted or candidate.shortlisted event before you push the person into your ATS.
Path / Query
idstringrequiredProject IDcandidateIdstringrequiredCandidate IDdata.idstringCandidate IDdata.fitScoreintegerScore 0–100data.analysisStatusstringPipeline stagedata.emailstring | nullPersonal email when foundcurl https://www.tapflowai.com/api/v1/projects/prj_8x2k/candidates/cnd_7kp2 \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/shortlistThe role's shortlist: the people ready for outreach.
Same as listCandidates with status=shortlisted. Page with limit (max 200) and offset.
Path / Query
idstringrequiredProject IDlimitintegeroptionalMax results (default 50, max 200)offsetintegeroptionalPagination offset (default 0)data[].idstringCandidate IDdata[].namestringCandidate full namepagination.hasMorebooleanWhether more pages existcurl https://www.tapflowai.com/api/v1/projects/prj_8x2k/shortlist \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/candidates/exportExport the role's people as JSON or CSV — up to 5,000 rows (1,000 on smaller plans).
When the export hit your plan's cap, the response carries the X-Tapflow-Truncated: true header — page with GET /projects/:id/candidates for the rest.
Path / Query
idstringrequiredProject IDRequest Body
formatstringoptionaljson (default) | csvdataarray | objectJSON: the candidates. CSV: { format, filename, row_count, content }curl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/candidates/export \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"format": "csv"}'/api/v1/projects/:id/pipelineCounts per stage for the role, the spread of fit levels, and the latest search.
A cheap health check for dashboards: one call instead of paging through every candidate.
Path / Query
idstringrequiredProject IDdata.stagesobject{ scouted, analyzed, shortlisted, contacted, replied, applied }data.fitDistributionobjectPeople per fit leveldata.activeMissionobject | null{ id, name, status } of the latest searchcurl https://www.tapflowai.com/api/v1/projects/prj_8x2k/pipeline \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/analyzeDeep-dive one candidate: a confirmed score, the deciding line with its profile quote, each role signal judged with evidence, strengths, concerns and a shortlist recommendation.
Returns 202 with a researchId. Poll GET /projects/:id/research/:researchId (usually 30–90 s) or listen for candidate.analyzed. Free through the API. Analyzing someone again runs a fresh read.
Path / Query
idstringrequiredProject IDRequest Body
candidateIdstringrequiredCandidate ID from the search resultsdata.statusstringqueueddata.candidateIdstringCandidate being Deep-diveddata.researchIdstringPoll GET /projects/:id/research/:researchIdcurl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/analyze \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"candidateId": "cnd_7kp2"}'/api/v1/projects/:id/research/:researchIdRead a queued Deep-dive: its status and, once finished, the candidate's full Deep-dive.
Read again after checkAgainInSeconds (also the Retry-After header) until it is null, or use candidate.analyzed. outcome is done or failed; deepDive holds the result.
Path / Query
idstringrequiredProject IDresearchIdstringrequiredresearchId returned by analyze or batch-analyzedata.statusstringqueued | running | completed | faileddata.outcomestring | nulldone | failed once finished, else nulldata.deepDive.scoreintegerConfirmed score 0–100data.deepDive.decidingLineobjectThe line that decides this person, with the profile quotedata.deepDive.signals[]objectEach role signal: label, status shown | not_shown | unknown, evidencedata.deepDive.shortlist.recommendedbooleanShortlist recommendationcurl https://www.tapflowai.com/api/v1/projects/prj_8x2k/research/rsr_4q9t \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/enrichFind and verify a candidate's personal email using waterfall enrichment across multiple data sources.
Free through the API. Run it once a Deep-dive confirms the person is worth contacting; use batch-enrich for many people.
Path / Query
idstringrequiredProject IDRequest Body
candidateIdstringrequiredCandidate to enrichdata.emailstring | nullVerified personal email, or null if not founddata.statusstringcompleted | not_founddata.emailStatusstringEmail status, or not_availablecurl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/enrich \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"candidateId": "cnd_7kp2"}'/api/v1/projects/:id/candidates/batch-analyzeQueue Deep-dives for up to 50 candidates in one call (10 on smaller plans). Each item succeeds or fails on its own.
Each queued item returns its own researchId to poll. Free through the API.
Path / Query
idstringrequiredProject IDRequest Body
candidateIdsstring[]requiredArray of candidate IDs (max 10, or 50 on larger plans)data.results[].idstringCandidate IDdata.results[].statusstringsuccess | errordata.results[].data.researchIdstringResearch run to poll (success)data.results[].error.codestringError code (error)data.summaryobjecttotal, succeeded, failedcurl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/candidates/batch-analyze \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"candidateIds": ["cnd_7kp2", "cnd_8lm4", "cnd_9np5"]}'/api/v1/projects/:id/candidates/batch-enrichFind personal emails for up to 50 shortlisted candidates in one call (10 on smaller plans). Per-item results so one miss doesn't block others.
Free through the API. Run this after batch-analyze on your shortlist.
Path / Query
idstringrequiredProject IDRequest Body
candidateIdsstring[]requiredArray of candidate IDs to enrich (max 10, or 50 on larger plans)data.results[].idstringCandidate IDdata.results[].statusstringsuccess | errordata.results[].data.emailstring | nullVerified email or nulldata.results[].data.emailStatusstringfound | not_availablecurl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/candidates/batch-enrich \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"candidateIds": ["cnd_7kp2", "cnd_8lm4"]}'/api/v1/billing/balanceCheck your credit balance. Only searches spend credits through the API; reads, Deep-dives and email lookups are free.
Check before starting a search. A search the balance can't cover returns 402 INSUFFICIENT_CREDITS and nothing is charged.
data.balance_creditsintegerCredits currently availabledata.balance_dollarsstringThe same balance in dollarsdata.planstringCurrent plan namecurl https://www.tapflowai.com/api/v1/billing/balance \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/projects/:id/candidates/:candidateId/stageMove a candidate through the hiring pipeline. Fires candidate.stage_changed webhook so downstream systems stay in sync.
Call this after your ATS or CRM confirms a stage change to keep Tapflow's funnel view accurate. Required for pipeline analytics.
Path / Query
idstringrequiredProject IDcandidateIdstringrequiredCandidate IDRequest Body
stagestringrequiredscouted | analyzed | scored | shortlisted | shortlist_declined | held | contacted | replied | applied | rejecteddata.idstringCandidate IDdata.stagestringNew stagedata.previousStagestringStage before this updatecurl -X PATCH https://www.tapflowai.com/api/v1/projects/prj_8x2k/candidates/cnd_7kp2/stage \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"stage": "shortlisted"}'/api/v1/projects/:id/outreachThe role's outreach sequences with each person's messages: who was contacted, who replied, what is still queued.
Take a sequence id from here to pause or resume it.
Path / Query
idstringrequiredProject IDdata[].idstringSequence IDdata[].candidateIdstring | nullCandidate IDdata[].statusstringSequence statusdata[].steps[]array{ id, step, subject, status, … }curl https://www.tapflowai.com/api/v1/projects/prj_8x2k/outreach \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/outreach/sequences/:sequenceId/pausePause an active outreach sequence. Queued messages are held — no emails or LinkedIn messages are sent while paused.
Pause before making major edits to message content or timing. Resume when you're ready — queued sends pick up from where they stopped.
Path / Query
sequenceIdstringrequiredOutreach sequence IDdata.idstringSequence IDdata.statusstringpauseddata.previousStatusstringStatus before pausedata.updatedAtstringISO timestamp of the status changecurl -X POST https://www.tapflowai.com/api/v1/outreach/sequences/seq_abc123/pause \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/outreach/sequences/:sequenceId/resumeResume a paused outreach sequence. Queued messages restart from the next scheduled send time.
Call after pause when edits are done. If the sequence is not paused, this returns 400 SEQUENCE_NOT_PAUSED — check the status field before calling.
Path / Query
sequenceIdstringrequiredOutreach sequence IDdata.idstringSequence IDdata.statusstringactivedata.previousStatusstringStatus before resume (paused)data.resumedMessagesintegerQueued messages put back on scheduledata.updatedAtstringISO timestamp of the status changecurl -X POST https://www.tapflowai.com/api/v1/outreach/sequences/seq_abc123/resume \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/meThe user behind the API key, with their notification settings.
Read notificationSurfacePrefs before you change them.
data.idstringUser IDdata.emailstringEmail addressdata.notificationSurfacePrefsobjectPer category: { toast, bell, email }curl https://www.tapflowai.com/api/v1/me \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/me/notification-prefsTurn notifications on or off per category and surface. Only the keys you send change.
Read the category names from GET /me. Each category takes toast, bell and email booleans.
data.notificationSurfacePrefsobjectThe settings after the changecurl -X PATCH https://www.tapflowai.com/api/v1/me/notification-prefs \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"billing": {"email": true}}'/api/v1/projects/:idPut your own id and metadata on a role, so matching never depends on titles.
Find the role later with GET /projects?externalId=…. Every webhook about the role carries project.externalId and project.metadata.
Path / Query
idstringrequiredProject IDRequest Body
externalIdstring | nulloptionalYour own id, up to 200 characters (null clears)metadataobject | nulloptionalYour own string key/values, up to 20 keys (null clears)data.externalIdstring | nullAs storedcurl -X PATCH https://www.tapflowai.com/api/v1/projects/prj_8x2k \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"externalId": "ats-job-4711", "metadata": {"brand": "north"}}'/api/v1/projects/:id/candidatesAdd a person you already know to a role, by LinkedIn URL or by name and company. Deep-dive and email lookup then work on them like on anyone a search found.
The role must have been started once. Added people never count toward a search goal. 409 PERSON_EXCLUDED means they are on your exclusion list; 503 PROFILE_READ_PENDING means send the same request again after Retry-After.
Path / Query
idstringrequiredProject IDRequest Body
linkedinUrlstringoptionallinkedin.com/in/… URLnamestringoptionalFirst and last name, with company, when there is no URLcompanystringoptionalCurrent employerlocationstringoptionalHelps find the right personexternalIdstring | nulloptionalYour own id, up to 200 characters (null clears)metadataobject | nulloptionalYour own string key/values, up to 20 keys (null clears)data.idstringCandidate ID (201 added, 200 already on the role)data.sourcestringaddedcurl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/candidates \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"name": "Rana Haddad", "company": "Zara", "location": "Amman", "externalId": "ats-person-8812"}'/api/v1/projects/:id/candidates/:candidateIdPut your own id and metadata on a candidate.
Every webhook about the person carries candidate.externalId and candidate.metadata.
Path / Query
idstringrequiredProject IDcandidateIdstringrequiredCandidate IDRequest Body
externalIdstring | nulloptionalYour own id, up to 200 characters (null clears)metadataobject | nulloptionalYour own string key/values, up to 20 keys (null clears)data.externalIdstring | nullAs storedcurl -X PATCH https://www.tapflowai.com/api/v1/projects/prj_8x2k/candidates/sp_4f2a \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"externalId": "ats-person-8812"}'/api/v1/projects/:id/candidates/:candidateId/forgetErase a person from every role in your account, archived ones included, and add them to your exclusion list so no search finds them again.
Pending emails to them are cancelled and never sent. Other accounts are not touched. Cannot be undone.
Path / Query
idstringrequiredProject IDcandidateIdstringrequiredCandidate IDdata.candidatesintegerCopies removed from your rolesdata.exclusionsAddedintegerNew exclusion entries (reason erased)curl -X POST https://www.tapflowai.com/api/v1/projects/prj_8x2k/candidates/sp_4f2a/forget \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/people/forgetThe same erasure, by any identity you hold: LinkedIn URL, email, or the sha256 of the email.
Works whether or not the person is on a role now; they are excluded either way.
Request Body
linkedinUrlstringoptionallinkedin.com/in/… URLemailstringoptionalAny of their emailsemailSha256stringoptionalsha256 hex of the lower-cased, trimmed emaildataobjectWhat was erased, by typecurl -X POST https://www.tapflowai.com/api/v1/people/forget \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"email": "person@example.com"}'/api/v1/exclusionsRead your exclusion list, or check whether one person is on it.
Only hashes are stored. Pass linkedinUrl, email or emailSha256 to check one person; page with pagination.nextCursor.
Path / Query
projectIdstringoptionalA role's entries, or account for account-wide onesemailstringoptionalCheck one person (or linkedinUrl, emailSha256)cursorstringoptionalpagination.nextCursordata[].kindstringlinkedin | email, with its sha256 valuecurl "https://www.tapflowai.com/api/v1/exclusions?email=person@example.com" \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/exclusionsAdd people no search of yours may admit: people who opted out, applied already, or were contacted recently.
An excluded person never takes a paid place, is never emailed and never looked up, including in searches already running. expiresAt ends an entry by itself.
Request Body
linkedinUrlsstring[]optionalLinkedIn profile URLsemailsstring[]optionalEmails (hashed on arrival)emailSha256string[]optionalsha256 hex of the lower-cased, trimmed emailprojectsstring[]optionalYour roles whose people are excludedprojectIdstringoptionalOnly for this role (default: the whole account)expiresAtstringoptionalISO time the entries stop applyingdata.addedintegerNew entriesdata.invalid[]objectValues that could not be readcurl -X POST https://www.tapflowai.com/api/v1/exclusions \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"emails": ["person@example.com"], "expiresAt": "2027-02-01T00:00:00Z"}'/api/v1/exclusions/:exclusionIdRemove an entry; later searches can find the person again.
Find the entry id with GET /exclusions?linkedinUrl=… first.
Path / Query
exclusionIdstringrequiredEntry IDdata.deletedbooleantruecurl -X DELETE https://www.tapflowai.com/api/v1/exclusions/exc_91ab \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/webhooksAdd a webhook endpoint for your account. It receives its events for every role, so one endpoint serves all your brands.
The signing secret is returned once in data.secret: store it before going live. Then POST /webhooks/:id/test to check your signature code.
Request Body
urlstringrequiredPublic HTTPS URLeventsstring[]requiredEvents to receivedata.idstringEndpoint IDdata.secretstringSigning secret, shown oncecurl -X POST https://www.tapflowai.com/api/v1/webhooks \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"url": "https://example.com/webhooks/tapflow", "events": ["search.needs_you", "search.ended", "candidate.shortlisted"]}'/api/v1/webhooksRead your webhook endpoints, their events and status.
Change one with PATCH /webhooks/:id (url, events, status active | paused), remove it with DELETE /webhooks/:id.
data[].statusstringactive | pausedcurl https://www.tapflowai.com/api/v1/webhooks \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/webhooks/:webhookIdChange an endpoint's URL or events, or pause it.
A paused endpoint gets no new deliveries. The secret stays the same.
Path / Query
webhookIdstringrequiredEndpoint IDRequest Body
urlstringoptionalPublic HTTPS URLeventsstring[]optionalEvents to receivestatusstringoptionalactive | pauseddataobjectThe endpointcurl -X PATCH https://www.tapflowai.com/api/v1/webhooks/wh_3k9x \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"status": "paused"}'/api/v1/webhooks/:webhookIdDelete an endpoint. Its queued retries are dropped.
To stop deliveries for a while instead, pause it with PATCH.
Path / Query
webhookIdstringrequiredEndpoint IDdata.deletedbooleantruecurl -X DELETE https://www.tapflowai.com/api/v1/webhooks/wh_3k9x \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/webhooks/:webhookId/rotate-secretGet a new signing secret, returned once.
Deliveries from now on, retries included, are signed with the new secret; the old one stops working at once.
Path / Query
webhookIdstringrequiredEndpoint IDdata.secretstringNew secret, shown oncecurl -X POST https://www.tapflowai.com/api/v1/webhooks/wh_3k9x/rotate-secret \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/webhooks/:webhookId/testSend one signed webhook.test event now and see what your endpoint answered.
Never retried. Ignore webhook.test in production handlers.
Path / Query
webhookIdstringrequiredEndpoint IDdata.deliveredbooleanYour endpoint answered 2xxdata.responseStatusinteger | nullWhat it answeredcurl -X POST https://www.tapflowai.com/api/v1/webhooks/wh_3k9x/test \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/webhooks/:webhookId/deliveriesRecent deliveries of an endpoint, with status, attempt and next retry.
A delivery is tried 5 times: now, then after 1, 5, 15 and 60 minutes. Send a failed one again with POST …/deliveries/:deliveryId/retry.
Path / Query
webhookIdstringrequiredEndpoint IDdata[].statusstringpending | delivering | retrying | delivered | failedcurl https://www.tapflowai.com/api/v1/webhooks/wh_3k9x/deliveries \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/webhooks/:webhookId/deliveries/:deliveryId/retrySend a failed delivery again, now.
Only failed deliveries; one still retrying is sent again by itself (409 INVALID_STATUS).
Path / Query
webhookIdstringrequiredEndpoint IDdeliveryIdstringrequiredDelivery IDdata.statusstringretryingcurl -X POST https://www.tapflowai.com/api/v1/webhooks/wh_3k9x/deliveries/whd_k3m7x9/retry \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/account/settingsRead account settings.
apiRoleOutreach off means roles created or started through the API never email anyone.
data.apiRoleOutreachstringallowed | offcurl https://www.tapflowai.com/api/v1/account/settings \ -H "Authorization: Bearer tap_live_YOUR_KEY"
/api/v1/account/settingsKeep the roles this key runs from ever emailing people. Each key and app has its own switch.
Off: this key's reach_out or get_applicants starts return 409 API_ROLE_OUTREACH_OFF; no email is written on its roles.
Request Body
apiRoleOutreachstringrequiredallowed | offdata.apiRoleOutreachstringAs storedcurl -X PATCH https://www.tapflowai.com/api/v1/account/settings \
-H "Authorization: Bearer tap_live_YOUR_KEY" \
-H "Content-Type: application/json" \
-d '{"apiRoleOutreach": "off"}'Paste your API key, pick an endpoint, fill params, and run it live.
Subscribe to real-time events with POST /webhooks or in Settings → API. Endpoints belong to your account and get events for every role. Payloads carry full resource data and your externalId/metadata. Signed with HMAC-SHA256; a failed delivery is tried again after 1, 5, 15 and 60 minutes.
Request headers
X-Tapflow-Eventcandidate.scoutedEvent typeX-Tapflow-Signaturea1b2c3d4e5f6...Hex HMAC-SHA256 of the raw body, keyed with your webhook secretX-Tapflow-Timestamp1767225600Unix seconds when the delivery was sentX-Tapflow-Deliverywhd_9x3k7m2pUnique delivery ID for idempotency (same as the body's id)Content-Typeapplication/json; charset=utf-8Always JSONExample payload
{
"id": "whd_k3m7x9",
"event": "candidate.scouted",
"created_at": "2026-05-05T10:23:41Z",
"data": {
"projectId": "prj_8x2k",
"action": "scouted",
"totalFound": 34,
"candidates": [
{
"id": "cnd_7kp2",
"name": "Priya Ramaswamy",
"title": "Staff ML Engineer",
"location": "San Francisco, CA",
"fitScore": 84,
"scoreState": "estimated",
"analysisStatus": "scouted"
}
]
}
}Request headers
X-Tapflow-Eventcandidate.analyzedEvent typeX-Tapflow-Signaturea1b2c3d4e5f6...Hex HMAC-SHA256 of the raw body, keyed with your webhook secretX-Tapflow-Timestamp1767225600Unix seconds when the delivery was sentX-Tapflow-Deliverywhd_9x3k7m2pUnique delivery ID for idempotency (same as the body's id)Content-Typeapplication/json; charset=utf-8Always JSONExample payload
{
"id": "whd_p9q2w8",
"event": "candidate.analyzed",
"created_at": "2026-05-05T10:25:02Z",
"data": {
"projectId": "prj_8x2k",
"candidateId": "cnd_7kp2",
"researchId": "rsr_4q9t",
"candidate": {
"id": "cnd_7kp2",
"name": "Priya Ramaswamy",
"fitScore": 86,
"scoreState": "confirmed",
"analysisStatus": "shortlisted",
"deepDive": {
"status": "completed",
"score": 86,
"fitLevel": "strong",
"decidingLine": {
"text": "Shipped distributed PyTorch training at scale",
"quote": "Led the migration of model training to 512-GPU clusters",
"polarity": "for"
},
"strengths": [
"7 years of production model deployment"
],
"concerns": [
"No people-management experience"
],
"signals": [
{
"label": "Has trained models on multi-node GPU clusters",
"kind": "great",
"status": "shown",
"evidence": "512-GPU clusters at DeepMind",
"source": "experience"
}
],
"unmetRequirements": [],
"unverifiedRequirements": [],
"shortlist": {
"recommended": true,
"reasoning": "Meets every must-have; strongest signal is the scale of training work."
}
}
}
}
}Request headers
X-Tapflow-Eventcandidate.analysis_failedEvent typeX-Tapflow-Signaturea1b2c3d4e5f6...Hex HMAC-SHA256 of the raw body, keyed with your webhook secretX-Tapflow-Timestamp1767225600Unix seconds when the delivery was sentX-Tapflow-Deliverywhd_9x3k7m2pUnique delivery ID for idempotency (same as the body's id)Content-Typeapplication/json; charset=utf-8Always JSONExample payload
{
"id": "whd_q1r5x7",
"event": "candidate.analysis_failed",
"created_at": "2026-05-05T10:25:40Z",
"data": {
"projectId": "prj_8x2k",
"candidateId": "cnd_8lm4",
"researchId": "rsr_5w2e",
"candidate": {
"id": "cnd_8lm4",
"name": "Daniel Okafor",
"deepDiveCompleted": false
}
}
}Request headers
X-Tapflow-Eventcandidate.enrichedEvent typeX-Tapflow-Signaturea1b2c3d4e5f6...Hex HMAC-SHA256 of the raw body, keyed with your webhook secretX-Tapflow-Timestamp1767225600Unix seconds when the delivery was sentX-Tapflow-Deliverywhd_9x3k7m2pUnique delivery ID for idempotency (same as the body's id)Content-Typeapplication/json; charset=utf-8Always JSONExample payload
{
"id": "whd_r4s6t1",
"event": "candidate.enriched",
"created_at": "2026-05-05T10:26:15Z",
"data": {
"projectId": "prj_8x2k",
"candidate": {
"id": "cnd_7kp2",
"emailStatus": "found_personal"
},
"email": "priya.ramaswamy@gmail.com",
"emailStatus": "found_personal"
}
}Request headers
X-Tapflow-Eventcandidate.stage_changedEvent typeX-Tapflow-Signaturea1b2c3d4e5f6...Hex HMAC-SHA256 of the raw body, keyed with your webhook secretX-Tapflow-Timestamp1767225600Unix seconds when the delivery was sentX-Tapflow-Deliverywhd_9x3k7m2pUnique delivery ID for idempotency (same as the body's id)Content-Typeapplication/json; charset=utf-8Always JSONExample payload
{
"id": "whd_u7v8w3",
"event": "candidate.stage_changed",
"created_at": "2026-05-05T11:00:00Z",
"data": {
"projectId": "prj_8x2k",
"candidateId": "cnd_7kp2",
"stage": "shortlisted",
"previousStage": "analyzed"
}
}Request headers
X-Tapflow-Eventoutreach.repliedEvent typeX-Tapflow-Signaturea1b2c3d4e5f6...Hex HMAC-SHA256 of the raw body, keyed with your webhook secretX-Tapflow-Timestamp1767225600Unix seconds when the delivery was sentX-Tapflow-Deliverywhd_9x3k7m2pUnique delivery ID for idempotency (same as the body's id)Content-Typeapplication/json; charset=utf-8Always JSONExample payload
{
"id": "whd_y1z2a4",
"event": "outreach.replied",
"created_at": "2026-05-05T14:30:00Z",
"data": {
"projectId": "prj_8x2k",
"messageId": "out_b5c6d7",
"candidateId": "cnd_7kp2",
"channel": "email",
"fromEmail": "priya.ramaswamy@gmail.com",
"subject": "Re: Staff ML Engineer at Acme",
"bodySnippet": "Thanks for reaching out! I'm definitely open to hearing more about the role...",
"intent": "interested",
"sentiment": "positive"
}
}Request headers
X-Tapflow-Eventmission.completedEvent typeX-Tapflow-Signaturea1b2c3d4e5f6...Hex HMAC-SHA256 of the raw body, keyed with your webhook secretX-Tapflow-Timestamp1767225600Unix seconds when the delivery was sentX-Tapflow-Deliverywhd_9x3k7m2pUnique delivery ID for idempotency (same as the body's id)Content-Typeapplication/json; charset=utf-8Always JSONExample payload
{
"id": "whd_e8f9g0",
"event": "mission.completed",
"created_at": "2026-05-05T10:30:00Z",
"data": {
"projectId": "prj_8x2k",
"missionId": "mis_h1i2j3",
"search": {
"id": "mis_h1i2j3",
"state": "finished",
"goal": {
"class": "shortlist",
"count": 10,
"requirePersonalEmail": true
},
"progress": {
"stage": "shortlisted",
"have": 10,
"count": 10
},
"profilesRead": 640
}
}
}Request headers
X-Tapflow-Eventrole.review_readyEvent typeX-Tapflow-Signaturea1b2c3d4e5f6...Hex HMAC-SHA256 of the raw body, keyed with your webhook secretX-Tapflow-Timestamp1767225600Unix seconds when the delivery was sentX-Tapflow-Deliverywhd_9x3k7m2pUnique delivery ID for idempotency (same as the body's id)Content-Typeapplication/json; charset=utf-8Always JSONExample payload
{
"id": "whd_r4v5w6",
"event": "role.review_ready",
"created_at": "2026-05-05T10:02:00Z",
"data": {
"projectId": "prj_8x2k",
"review": {
"mode": "ask",
"state": "waiting_for_you",
"questions": [
{
"id": "q_1",
"question": "Must they have run event streaming in production?",
"kind": "make_or_break",
"options": [
{
"value": "required",
"label": "Yes, required"
},
{
"value": "plus",
"label": "A plus"
}
],
"recommended": "plus",
"answer": [
"plus"
],
"answeredBy": "tapflow"
}
],
"roleAnalysis": {
"state": "ready",
"summary": "A senior ML engineer who ships ranking models to production."
}
}
}
}Request headers
X-Tapflow-Eventcandidate.shortlistedEvent typeX-Tapflow-Signaturea1b2c3d4e5f6...Hex HMAC-SHA256 of the raw body, keyed with your webhook secretX-Tapflow-Timestamp1767225600Unix seconds when the delivery was sentX-Tapflow-Deliverywhd_9x3k7m2pUnique delivery ID for idempotency (same as the body's id)Content-Typeapplication/json; charset=utf-8Always JSONExample payload
{
"id": "whd_s7t8u9",
"event": "candidate.shortlisted",
"created_at": "2026-05-05T10:25:12Z",
"data": {
"projectId": "prj_8x2k",
"decidedBy": "agent",
"candidate": {
"id": "sp_4f2a",
"name": "Priya Ramaswamy",
"email": "priya.ramaswamy@gmail.com",
"emailStatus": "found_personal",
"fitScore": 86,
"analysisStatus": "shortlisted",
"projectId": "prj_8x2k"
}
}
}Request headers
X-Tapflow-Eventsearch.progressEvent typeX-Tapflow-Signaturea1b2c3d4e5f6...Hex HMAC-SHA256 of the raw body, keyed with your webhook secretX-Tapflow-Timestamp1767225600Unix seconds when the delivery was sentX-Tapflow-Deliverywhd_9x3k7m2pUnique delivery ID for idempotency (same as the body's id)Content-Typeapplication/json; charset=utf-8Always JSONExample payload
{
"id": "whd_p1q2r3",
"event": "search.progress",
"created_at": "2026-05-05T10:26:00Z",
"data": {
"projectId": "prj_8x2k",
"search": {
"id": "mis_h1i2j3",
"state": "running",
"goal": {
"class": "shortlist",
"count": 10,
"requirePersonalEmail": true
},
"progress": {
"stage": "shortlisted",
"have": 4,
"count": 10
},
"profilesRead": 212,
"heldBack": {
"noPersonalEmail": 3,
"needsVerification": 0,
"workEmailOnly": 0
},
"needsYou": null,
"checkIn": null,
"conclusion": null,
"endReason": null
}
}
}Request headers
X-Tapflow-Eventcredits.lowEvent typeX-Tapflow-Signaturea1b2c3d4e5f6...Hex HMAC-SHA256 of the raw body, keyed with your webhook secretX-Tapflow-Timestamp1767225600Unix seconds when the delivery was sentX-Tapflow-Deliverywhd_9x3k7m2pUnique delivery ID for idempotency (same as the body's id)Content-Typeapplication/json; charset=utf-8Always JSONExample payload
{
"id": "whd_k4l5m6",
"event": "credits.low",
"created_at": "2026-05-05T15:00:00Z",
"data": {
"balance_remaining": 9840,
"threshold": 10000
}
}Verify every incoming webhook to protect against spoofed events.
Security note
Skip HMAC verification and anyone can POST fake events to your endpoint. Always validate the X-Tapflow-Signature header on the raw request body before processing.
const crypto = require("crypto");
function verifyWebhook(rawBody, signature, secret) {
// rawBody must be the unmodified Buffer — do NOT parse JSON first.
const expected = crypto.createHmac("sha256", secret)
.update(rawBody)
.digest("hex");
if (typeof signature !== "string" || signature.length !== expected.length) return false;
// Constant-time comparison prevents timing attacks.
return crypto.timingSafeEqual(
Buffer.from(expected),
Buffer.from(signature)
);
}
// Express example:
app.post("/webhook", express.raw({ type: "application/json" }), (req, res) => {
const sig = req.headers["x-tapflow-signature"];
if (!verifyWebhook(req.body, sig, process.env.TAPFLOW_WEBHOOK_SECRET)) {
return res.status(401).json({ error: "Invalid signature" });
}
const event = JSON.parse(req.body);
// process event.event (e.g. "candidate.analyzed") and event.data …
res.json({ ok: true });
});import hashlib, hmac, json, os
from flask import Flask, request, abort
app = Flask(__name__)
WEBHOOK_SECRET = os.environ["TAPFLOW_WEBHOOK_SECRET"]
@app.route("/webhook", methods=["POST"])
def webhook():
raw_body = request.get_data() # do NOT call request.json yet
sig = request.headers.get("X-Tapflow-Signature", "")
expected = hmac.new(
WEBHOOK_SECRET.encode(),
raw_body,
hashlib.sha256
).hexdigest()
# Constant-time comparison prevents timing attacks.
if not hmac.compare_digest(expected, sig):
abort(401)
event = json.loads(raw_body)
event_type = event["event"] # e.g. "candidate.analyzed"
# process event …
return {"ok": True}package main
import (
"crypto/hmac"
"crypto/sha256"
"encoding/hex"
"fmt"
"io"
"net/http"
"os"
)
func verifyWebhook(body []byte, signature, secret string) bool {
mac := hmac.New(sha256.New, []byte(secret))
mac.Write(body)
expected := hex.EncodeToString(mac.Sum(nil))
// hmac.Equal does constant-time comparison.
return hmac.Equal([]byte(expected), []byte(signature))
}
func webhookHandler(w http.ResponseWriter, r *http.Request) {
body, _ := io.ReadAll(r.Body)
sig := r.Header.Get("X-Tapflow-Signature")
if !verifyWebhook(body, sig, os.Getenv("TAPFLOW_WEBHOOK_SECRET")) {
http.Error(w, "Unauthorized", http.StatusUnauthorized)
return
}
// parse body and process event …
fmt.Fprintf(w, `{"ok":true}`)
}Every error response includes a machine code, HTTP status, plain-English cause, and a recovery hint. No guessing.
MISSING_API_KEY401No Authorization: Bearer header was sentAdd Authorization: Bearer tap_live_… to every requestINVALID_API_KEY_FORMAT401The key does not start with tap_live_ or tap_test_Copy the full key from Settings → APIINVALID_API_KEY401The key doesn't match any key on recordCheck for typos; create a new key in Settings → APIAPI_KEY_REVOKED401The key was revokedCreate a new key in Settings → APIAPI_KEY_ROTATED401The key was rotated and the old secret's grace window has closedDeploy the new secret issued at rotation timeTOO_MANY_FAILED_AUTH_ATTEMPTS429Too many failed authentications from your IPFix the key, then wait for the Retry-After periodINSUFFICIENT_SCOPE403The key lacks a scope this endpoint needs (read, write or batch)Edit scopes in Settings → APIACCESS_DENIED403The project belongs to a different companyUse the API key for the company that owns the projectNOT_FOUND404The project, candidate, research run or search does not exist hereConfirm the ID; it may have been archivedVALIDATION_ERROR400The request body failed validationThe message names the invalid fieldBATCH_SIZE_EXCEEDED400candidateIds is longer than your plan allowsSplit into smaller batches (10 per call; 50 on larger plans)INSUFFICIENT_CREDITS402The credit balance can't cover the search's Start price. Nothing was chargedTop up credits in Settings → Billing or ask for a smaller countDEEP_DIVE_UNAVAILABLE409The candidate has no search criteria to be read against (not found by a search, not added to a started role)Deep-dive people a search found, or add the person with POST /projects/:id/candidatesRESEARCH_IN_PROGRESS409Other research is already running for this candidatePoll details.researchId until it finishes, then queue the Deep-dive againICP_NOT_APPROVED409The ideal profile is not ready to search (see blockers)PATCH the ideal profile, then approve itSEARCH_NOT_STARTED409The start could not proceed; details.reason says why. Nothing was chargedIf details.retryable, send it again shortly; otherwise fix the reason (e.g. set the location), then start againAPI_ROLE_OUTREACH_OFF409This key or app may not contact peopleUse goal scout or shortlist, or turn it on in Settings → APIPERSON_EXCLUDED409The person you are adding is on your exclusion listFind the entry with GET /exclusions?linkedinUrl=…, then DELETE /exclusions/:idROLE_NOT_STARTED409People can only be added to a role that has been started onceStart the role, then add peoplePERSON_NOT_FOUND404No LinkedIn profile was found for that name at that companySend their LinkedIn URL insteadPROFILE_READ_PENDING503The person's profile is still being read; nothing was addedSend the same request again after Retry-After (the same Idempotency-Key works)SEQUENCE_NOT_ACTIVE400Only an active sequence can be pausedRead the sequence status firstSEQUENCE_NOT_PAUSED400Only a paused sequence can be resumedRead the sequence status firstINVALID_IDEMPOTENCY_KEY400Idempotency-Key is longer than 255 charactersUse a UUIDIDEMPOTENCY_KEY_CONFLICT409The Idempotency-Key was already used for a different endpoint or bodyUse a new key per distinct requestIDEMPOTENT_REQUEST_IN_FLIGHT409The first request with this Idempotency-Key is still runningRetry after the Retry-After periodIDEMPOTENCY_UNAVAILABLE503Tapflow couldn't confirm whether the request was acceptedRetry with the same Idempotency-KeyRATE_LIMIT_EXCEEDED429More requests per minute than your plan allowsWait for Retry-After seconds, then back off exponentiallySANDBOX_UNSUPPORTED501A tap_test_ key called an endpoint with no sandbox answerUse a tap_live_ key for this endpointINTERNAL_ERROR500Unexpected server errorRetry with backoff; if it persists, open a support ticket with the requestIdLimits are per API key, per minute. Every response includes rate limit headers.
Response headers on every call
X-RateLimit-Limit500Max requests per minute for your planX-RateLimit-Remaining483Requests remaining in the current windowX-RateLimit-Reset1746446460Unix timestamp when the window resetsRetry-After12Seconds to wait before retrying (only on 429)Retry with exponential backoff
async function fetchWithBackoff(url, options, maxRetries = 5) {
for (let attempt = 0; attempt < maxRetries; attempt++) {
const res = await fetch(url, options);
if (res.status !== 429) return res; // not rate-limited — done
// Read Retry-After (seconds) or fall back to exponential backoff.
const retryAfter = parseInt(res.headers.get("Retry-After") || "0", 10);
const backoff = retryAfter
? retryAfter * 1000
: Math.min(1000 * 2 ** attempt + Math.random() * 500, 30000);
console.log(`Rate limited. Waiting ${backoff}ms before retry ${attempt + 1}...`);
await new Promise((r) => setTimeout(r, backoff));
}
throw new Error("Max retries exceeded");
}Full multi-step workflows for LangChain, CrewAI, OpenAI Functions, and AutoGen — not stubs.
LangChain's tool-calling interface maps naturally onto Tapflow's REST endpoints. Use ReAct agent for autonomous multi-step sourcing.
# LangChain + Tapflow: full sourcing workflow # Pairs well with LangChain's ReAct agent — each tool wraps one Tapflow endpoint. from langchain.tools import tool from langchain_openai import ChatOpenAI from langchain.agents import create_react_agent, AgentExecutor import requests, os BASE = "https://www.tapflowai.com/api/v1" HEADERS = {"Authorization": f"Bearer {os.environ['TAPFLOW_KEY']}"} @tool def list_projects() -> dict: """List all open recruiting projects. Call first to pick the right project.""" return requests.get(f"{BASE}/projects", headers=HEADERS).json() @tool def start_search(project_id: str, goal: str = "shortlist", count: int = 10) -> dict: """Start the role's search toward a goal (scout, shortlist, reach_out...). The role's ideal profile is the query.""" return requests.post( f"{BASE}/projects/{project_id}/search", json={"goal": goal, "count": count}, headers=HEADERS, ).json() @tool def search_status(project_id: str) -> dict: """Where the role's search stands: state, progress toward the goal, what it needs from you.""" return requests.get(f"{BASE}/projects/{project_id}/search", headers=HEADERS).json() @tool def list_candidates(project_id: str, min_score: int = 70) -> dict: """Fetch high-fit candidates (min_score=70 filters out weak matches).""" return requests.get( f"{BASE}/projects/{project_id}/candidates", params={"min_score": min_score, "limit": 20}, headers=HEADERS, ).json() @tool def analyze_candidate(project_id: str, candidate_id: str) -> dict: """Queue a Deep-dive (free through the API). Returns a researchId to poll.""" return requests.post( f"{BASE}/projects/{project_id}/analyze", json={"candidateId": candidate_id}, headers=HEADERS, ).json() @tool def check_balance() -> dict: """Check the credit balance before starting a search (searches are the only paid call).""" return requests.get(f"{BASE}/billing/balance", headers=HEADERS).json() llm = ChatOpenAI(model="gpt-5-mini") tools = [list_projects, start_search, search_status, list_candidates, analyze_candidate, check_balance] agent = create_react_agent(llm, tools) executor = AgentExecutor(agent=agent, tools=tools) result = executor.invoke({ "input": "Shortlist 5 people for our open ML engineer role and Deep-dive the best one" })
CrewAI separates sourcing and outreach into specialized agents. Tapflow is the sourcing tool; your outreach agent acts on the results.
# CrewAI + Tapflow: multi-agent recruiting workflow # Tapflow is the sourcing tool; your outreach agent acts on the results. from crewai import Agent, Task, Crew from crewai.tools import BaseTool import requests, os BASE = "https://www.tapflowai.com/api/v1" HEADERS = {"Authorization": f"Bearer {os.environ['TAPFLOW_KEY']}"} class SearchTool(BaseTool): name = "search_tapflow_candidates" description = "Start a Tapflow role's search toward a shortlist and read who it found so far." def _run(self, project_id: str, count: int = 10) -> dict: # 1. List projects to confirm project_id exists projects = requests.get(f"{BASE}/projects", headers=HEADERS).json() ids = [p["id"] for p in projects.get("data", [])] if project_id not in ids: return {"error": f"Project {project_id} not found", "available": ids} # 2. Start the search (the role's ideal profile is the query) started = requests.post( f"{BASE}/projects/{project_id}/search", json={"goal": "shortlist", "count": count}, headers=HEADERS, ).json() # 3. The search runs on its own: read where it stands and who it found so far status = requests.get(f"{BASE}/projects/{project_id}/search", headers=HEADERS).json() candidates = requests.get( f"{BASE}/projects/{project_id}/candidates", params={"min_score": 75, "limit": count}, headers=HEADERS, ).json() return {"started": started, "status": status, "candidates": candidates} sourcing_agent = Agent( role="Technical Sourcer", goal="Find 10 qualified ML engineers for our open role", backstory="You specialize in technical recruiting and use Tapflow to source candidates.", tools=[SearchTool()], ) outreach_agent = Agent( role="Recruiting Coordinator", goal="Qualify the sourced candidates and prepare outreach messages", backstory="You review sourced candidates and draft personalized outreach.", ) source_task = Task( description="Shortlist ML engineers for project prj_8x2k", expected_output="A list of at least 5 qualified candidates with scores above 75", agent=sourcing_agent, ) outreach_task = Task( description="Review the sourced candidates and draft personalized outreach for the top 5", expected_output="5 personalized outreach messages ready to send", agent=outreach_agent, context=[source_task], ) crew = Crew(agents=[sourcing_agent, outreach_agent], tasks=[source_task, outreach_task]) result = crew.kickoff()
Register Tapflow endpoints as OpenAI functions. The model calls them autonomously — this example shows the schema plus a full dispatcher.
// OpenAI Function Calling: Tapflow tool schema + full workflow // Register these functions and the model calls them autonomously. const TAPFLOW_FUNCTIONS = [ { name: "tapflow_list_projects", description: "List all open recruiting projects. Call first to pick the right project.", parameters: { type: "object", properties: {}, required: [] }, }, { name: "tapflow_start_search", description: "Start a role's search toward a goal. The role's ideal profile is the query.", parameters: { type: "object", properties: { project_id: { type: "string", description: "Tapflow project ID (from list_projects)" }, goal: { type: "string", enum: ["scout", "shortlist", "reach_out", "get_applicants"], default: "shortlist" }, count: { type: "integer", description: "Target in the goal's unit. Omit for the goal's default", default: GOAL_CLASS_COUNT_RANGES.shortlist.default }, }, required: ["project_id"], }, }, { name: "tapflow_search_status", description: "Where a role's search stands: state, progress toward the goal, what it needs from you.", parameters: { type: "object", properties: { project_id: { type: "string" } }, required: ["project_id"], }, }, { name: "tapflow_list_candidates", description: "Fetch high-fit candidates from a project pipeline.", parameters: { type: "object", properties: { project_id: { type: "string" }, min_score: { type: "integer", description: "Minimum fit score 0-100", default: 70 }, }, required: ["project_id"], }, }, { name: "tapflow_analyze", description: "Queue a Deep-dive for one candidate (free through the API). Returns a researchId.", parameters: { type: "object", properties: { project_id: { type: "string" }, candidate_id: { type: "string", description: "Candidate ID from list_candidates" }, }, required: ["project_id", "candidate_id"], }, }, ]; // Dispatcher — call the real Tapflow API when the model invokes a function async function dispatchTapflow(name, args) { const BASE = "https://www.tapflowai.com/api/v1"; const HEADERS = { Authorization: `Bearer ${process.env.TAPFLOW_KEY}` }; if (name === "tapflow_list_projects") return fetch(`${BASE}/projects`, { headers: HEADERS }).then(r => r.json()); if (name === "tapflow_start_search") return fetch(`${BASE}/projects/${args.project_id}/search`, { method: "POST", headers: { ...HEADERS, "Content-Type": "application/json" }, body: JSON.stringify({ goal: args.goal ?? "shortlist", count: args.count }), }).then(r => r.json()); if (name === "tapflow_search_status") return fetch(`${BASE}/projects/${args.project_id}/search`, { headers: HEADERS }).then(r => r.json()); if (name === "tapflow_list_candidates") return fetch(`${BASE}/projects/${args.project_id}/candidates?min_score=${args.min_score ?? 70}`, { headers: HEADERS }).then(r => r.json()); if (name === "tapflow_analyze") return fetch(`${BASE}/projects/${args.project_id}/analyze`, { method: "POST", headers: { ...HEADERS, "Content-Type": "application/json" }, body: JSON.stringify({ candidateId: args.candidate_id }), }).then(r => r.json()); }
AutoGen's two-agent pattern — AssistantAgent reasons, UserProxyAgent executes. Tapflow API calls live in the proxy's function registry.
# AutoGen + Tapflow: autonomous recruiting pipeline # AssistantAgent drives sourcing; UserProxyAgent executes API calls. import autogen import requests, json, os BASE = "https://www.tapflowai.com/api/v1" HEADERS = {"Authorization": f"Bearer {os.environ['TAPFLOW_KEY']}"} config_list = [{"model": "gpt-5-mini", "api_key": os.environ["OPENAI_API_KEY"]}] assistant = autogen.AssistantAgent( name="TapflowRecruiter", system_message="""You are an autonomous recruiting agent using the Tapflow API. Workflow: 1. Call list_projects() to find the relevant project 2. Call start_search(project_id) to start the role's search 3. Call search_status(project_id) until it has people, then list_candidates(project_id, min_score=75) 4. Call analyze_candidate(project_id, candidate_id) for your top picks Check check_balance() before starting a search; Deep-dives are free.""", llm_config={"config_list": config_list}, ) user_proxy = autogen.UserProxyAgent( name="APIExecutor", code_execution_config={"work_dir": ".", "use_docker": False}, human_input_mode="NEVER", ) # Register Tapflow functions the proxy can call def list_projects(): """List all open recruiting projects.""" return requests.get(f"{BASE}/projects", headers=HEADERS).json() def start_search(project_id: str, goal: str = "shortlist", count: int = 10): """Start the role's search toward a goal. The role's ideal profile is the query.""" return requests.post( f"{BASE}/projects/{project_id}/search", json={"goal": goal, "count": count}, headers=HEADERS, ).json() def search_status(project_id: str): """Where the role's search stands.""" return requests.get(f"{BASE}/projects/{project_id}/search", headers=HEADERS).json() def list_candidates(project_id: str, min_score: int = 75): """Fetch high-fit candidates from the pipeline.""" return requests.get( f"{BASE}/projects/{project_id}/candidates", params={"min_score": min_score, "limit": 20}, headers=HEADERS, ).json() def analyze_candidate(project_id: str, candidate_id: str): """Queue a Deep-dive (free through the API). Results arrive via webhook.""" return requests.post( f"{BASE}/projects/{project_id}/analyze", json={"candidateId": candidate_id}, headers=HEADERS, ).json() def check_balance(): """Check the credit balance before starting a search (searches are the only paid call).""" return requests.get(f"{BASE}/billing/balance", headers=HEADERS).json() user_proxy.initiate_chat( assistant, message="Shortlist 5 people for project prj_8x2k and Deep-dive the best one" )
Copy-paste workflows that combine multiple endpoints into complete agent pipelines.
Push enriched profiles into Greenhouse, Lever, or Ashby the moment Tapflow discovers them — no polling, no drift.
Every new opening in your ATS becomes a Tapflow search that fills its shortlist by itself and streams people back to you.
Batch-enrich shortlisted candidates, send first-touch outreach, and surface replies back to your hiring manager only when there's a response.
Deep-dive a large candidate pool for free — the agent slices it into plan-safe batches and keeps the balance ready for the next search.
Sign up, generate an API key from Settings, and make your first call. Reads, Deep-dives and email lookups are free; searches cost half the app's Start price, paid from credits — top up from $5.