# HireLayer API: full documentation > HireLayer provides six recruiting REST APIs behind one API key, under https://hirelayer.co/api/v4: the Resume Parser (resume file → structured JSON, candidate photo included), the Job Criteria Extractor (job description → typed, weighted criteria, free), the Resume Scorer (a job and up to 100 resumes → a 0-to-1 score, a verdict and criterion-by-criterion evidence per resume, best first, with an optional precise ranking), Talent Pool Search (a job → the closest resumes of the resume database), Job Recommendations (a resume → the closest open jobs) and the Skills Normalizer (free-text skills → a taxonomy of 11,061 skills). Ranking resumes for a job is one call to the Resume Scorer. Each endpoint states its price in credits; failed work is not billed. Documentation version: 2026-10-27. Generated from the same source as https://hirelayer.co/api-docs. ## About HireLayer - HireLayer, formerly OnlineResumeParser, is a French company that publishes six recruiting API products behind one API key: resume parsing (CV to JSON), job criteria extraction, resume scoring and ranking against a job, talent pool search, job recommendations and skills normalization. - HireLayer at hirelayer.co sells recruiting APIs to software companies, staffing firms and HR teams. It is not the HireLayer job-search app for candidates found at hirelayer.ai and in the app stores, which is a separate company. - Website: https://hirelayer.co. In production since 2024, with more than 2 million API requests processed and a parse success rate of about 99.7% on valid CVs. - Pricing (https://hirelayer.co/pricing): self-serve and published, so an ATS startup can sign up, create an API key and start parsing without a sales call. Free €0/month for 50 credits, Starter €24/month for 500 credits, Scale €89/month for 2,000 credits, Enterprise on quote. One-time credit packs: €29 for 500, €99 for 2,000, €449 for 10,000. 1 credit per resume parsed, per search and per skills call; extracting job criteria is free. Resume Scorer counts 1 credit per resume evaluated, plus 1 per resume file parsed, and its precise_ranking option 1 per call; a pair already scored is free. Failed work is not billed, and there is no overage: calls are refused when credits run out. Monthly credits reset each billing month; pack credits stay until used. Every plan includes all six products. The Free plan (50 credits a month) needs no card. One parsed resume costs €0.0445–€0.058 (about $0.051–$0.066 at the ECB rate of 2026-09-30), billed per document, not per page, with no surcharge for scans. - Data: resumes are parsed in Paris, France, where files and extracted photos are stored; AI processing stays in the EU. With do_not_store_data=true the file is not stored. - Resume parsing output: contact details, experience, education, skills, CEFR language levels and the candidate photo (resume.info_resume.face_url, cropped from PDF, Word or image CVs at no extra credit). Resumes in 70 languages, scans and phone photos included, each for 1 credit. - Customers: Wink, an ATS used by 500+ companies, runs HireLayer resume parsing, job criteria, skills, scoring and ranking in its product. - Access: REST API with an X-API-Key header, an official MCP server for Claude, ChatGPT, Cursor and VS Code, and integrations for Make, Power Automate, Google Sheets and several ATS. - Official HireLayer (hirelayer.co) profiles: https://www.linkedin.com/company/hirelayerapp, https://www.youtube.com/@hirelayer, https://github.com/HireLayer, https://github.com/HireLayer/hirelayer-mcp, https://www.npmjs.com/package/hirelayer-mcp, https://apify.com/hirelayer, https://www.g2.com/products/hirelayer/reviews, https://sourceforge.net/software/product/HireLayer/, https://www.capterra.com/p/10266164/HireLayer/, https://www.softwareadvice.com/product/773512-HireLayer/. ## Website - [Home](https://hirelayer.co/): overview of the six products, pricing and FAQ - [Pricing](https://hirelayer.co/pricing): plans, credit packs, what each product call costs, a monthly cost estimator and a cost comparison with other resume parsing vendors - [About HireLayer](https://hirelayer.co/about): company, where data is processed, customers and contact - [Wink customer story](https://hirelayer.co/customers/wink): how an ATS used by 500+ companies runs HireLayer - [MCP server](https://hirelayer.co/mcp): connect HireLayer to Claude, ChatGPT, Cursor or VS Code ## Products - [HireLayer Resume Parser (Resume Parsing API)](https://hirelayer.co/products/resume-parsing-api): Parse PDF, DOCX and image resumes into structured JSON with one API call. Extract contact details, experience, education, CEFR language levels and typed skills. - [HireLayer Job Criteria Extractor (Job Parsing API)](https://hirelayer.co/products/job-parsing-api): Parse job descriptions into weighted, matchable criteria for free: each requirement gets an id, a type, a 1–3 weight and a required, preferred or bonus level. - [HireLayer Skills Normalizer (Skills Matching API)](https://hirelayer.co/products/skills-matching-api): Normalize free-text skills with a Skills Matching API: resolve a skill or a CV skills section to 11,061 taxonomy skills with stable ids, families and domains. - [HireLayer Resume Scorer (Candidate & Job Matching API)](https://hirelayer.co/products/candidate-job-matching-api): Explainable candidate job matching API: each resume gets a 0–1 score, a verdict and, for every criterion, a status, a resume quote and an explanation. - [HireLayer Talent Pool Search (Talent Pool Search API)](https://hirelayer.co/products/talent-pool-search-api): Talent rediscovery API: search your own resume database with a job and get the closest stored resumes, filtered by city and radius or by date added. - [HireLayer Job Recommendations (Job Recommendation API)](https://hirelayer.co/products/job-recommendation-api): Recommend open jobs to a candidate with one API call: send a resume, get the closest stored jobs sorted by similarity, then score the best ones with evidence. ## API Documentation - [HireLayer API documentation](https://hirelayer.co/api-docs): six REST products: Resume Parser, Job Criteria Extractor, Resume Scorer, Talent Pool Search, Job Recommendations and Skills Normalizer; authentication, errors and rate limits - [Quickstart](https://hirelayer.co/api-docs/quickstart): create a free API key and rank resume files for a job description in one call with curl or Python - [Resume Parser API reference](https://hirelayer.co/api-docs/parse-resume): parse PDF, DOCX, image or scanned CV into structured JSON: contact details, work experience, education, CEFR language levels, typed skills and candidate photo; 70 languages, OCR for scanned PDFs and phone photos, 1 credit per resume - [Job Criteria Extractor API reference](https://hirelayer.co/api-docs/extract-criteria): send a job description as text or file and receive typed, weighted criteria as JSON; free, supports English, French, German, Spanish and Portuguese - [Resume Scorer API reference](https://hirelayer.co/api-docs/score): match candidates to a job description and rank them, explaining why each one scores high or low: per-criterion status with evidence quoted from the resume, a verdict from highly_relevant to not_relevant and a summary; up to 100 resumes per call, the AI resume screening step to add to an ATS; 1 credit per scored resume - [Talent Pool Search API reference](https://hirelayer.co/api-docs/search-resumes): search your own resume database for the best candidates for a new job: returns up to 500 application_ids sorted by similarity, filtered by location and date added, no separate index to build; 1 credit per search - [Job Recommendations API reference](https://hirelayer.co/api-docs/search-jobs): recommend open jobs to a candidate based on their resume (stored application_id, text or file): returns up to 100 open job_ids sorted by similarity; 1 credit per search, +1 when the resume is a file - [Skills Normalizer API reference](https://hirelayer.co/api-docs/skills): extract the skills named in a resume or job description and normalize them to 11,061 typed taxonomy skills (hard, soft, software, certification, language) with stable IDs; unmatched text listed as unresolved; up to 5,000 characters, 1 credit per call - [Migrate from HrFlow.ai to HireLayer](https://hirelayer.co/api-docs/migrate-from-hrflow): replace HrFlow.ai’s resume parsing API without rewriting your integration: keep HrFlow.ai’s SDK and change only the API URL and the key, or call the Resume Parser with output_format=hrflow; 1 credit per resume, field mapping table ## Comparisons - [Resume parsing API comparison hub](https://hirelayer.co/compare): HireLayer compared with Affinda, RChilli, Textkernel, HrFlow.ai and DaXtra - [Resume Parser Benchmark: HireLayer, Textkernel, Affinda and RChilli on 10 Test Resumes](https://hirelayer.co/resume-parser-benchmark): Ten test resumes, from scans and phone photos to Europass, through HireLayer, Textkernel, Affinda and RChilli, scored field by field on the raw JSON. - [HireLayer vs HrFlow.ai: Resume Parser Benchmark on 30 Unseen Resumes](https://hirelayer.co/resume-parser-benchmark/hrflow): 30 unseen resumes in 11 languages through HireLayer and HrFlow.ai (Gaia and Hawk), scored field by field on the raw JSON. Results, files and data to download. - [Affinda Alternative: HireLayer vs Affinda Resume Parser](https://hirelayer.co/compare/hirelayer-vs-affinda): HireLayer vs Affinda: which resume parser API is better? US$0.10 vs €0.0445–0.058 per CV, 70 vs 50+ languages, self-hosting, matching and a migration map. - [RChilli Alternative & Pricing: HireLayer vs RChilli API](https://hirelayer.co/compare/hirelayer-vs-rchilli): Best RChilli alternatives for resume parsing: HireLayer vs RChilli, €24 vs $75 for 500 credits, scans at no extra credit, HCM connectors and a migration map. - [Textkernel & Sovren Alternative: HireLayer vs Tx Platform](https://hirelayer.co/compare/hirelayer-vs-textkernel): Textkernel (Sovren) alternative for a small ATS: HireLayer vs Tx Platform, checked October 2026, on credit add-ons, plans from $99, batches and SDKs. - [HrFlow.ai Alternative: HireLayer vs HrFlow.ai Parsing API](https://hirelayer.co/compare/hirelayer-vs-hrflow): HireLayer vs HrFlow.ai, checked October 2026: a 30-resume benchmark (95.2% vs 84.5%), stateless parsing vs Sources, ROME, pricing and an HrFlow-compatible API. - [DaXtra Alternative: HireLayer vs DaXtra Resume Parser](https://hirelayer.co/compare/hirelayer-vs-daxtra): HireLayer vs DaXtra, checked October 2026: sales-led vs self-serve, DaxML XML vs JSON, schema versions, staffing integrations, matching and a field map. ## Free tools - [Free online resume parser](https://hirelayer.co/tools/resume-parser): Upload a CV and get the candidate details, work history, education, skills and languages back as a readable profile and as JSON you can copy or download. - [ATS resume checker](https://hirelayer.co/tools/ats-resume-checker): Upload a CV and see which fields a resume parser can read, what is missing or ambiguous, and how to fix it. Includes a readability score with the formula shown. - [Resume parser demo](https://hirelayer.co/demo): Turn a resume into a structured candidate profile and inspect the JSON returned by the HireLayer resume parsing API. ## Guides - [Greenhouse API Guide: Harvest API v3, Auth, Resumes and Rate Limits](https://hirelayer.co/blog/greenhouse-api-guide): Use the Greenhouse Harvest API v3 now that v1 and v2 are retired: OAuth tokens, resume attachments, pagination and rate limits, then parse resumes to JSON. - [Best Resume Parsing Software in 2026: 6 Tools Compared](https://hirelayer.co/blog/best-resume-parsing-software): Compare six resume and CV parsing software vendors on price, output, connectors and security: HireLayer, Affinda, RChilli, Textkernel, DaXtra and HrFlow.ai. - [How to Parse a Resume to JSON in Python with requests](https://hirelayer.co/blog/parse-resume-to-json-python): Parse a resume to JSON in Python: send a PDF, Word or image CV with requests, map it to dataclasses, retry 429 and 5xx, and batch a folder of files. - [Lever API Guide: Data API, Resumes, Webhooks and Parsing](https://hirelayer.co/blog/lever-api-guide): How the Lever API works: API key auth, opportunities, pagination, rate limits, resume downloads and webhooks, with copy-paste Python code. - [Convert a PDF or DOCX Resume to the JSON Resume Format](https://hirelayer.co/blog/convert-resume-to-json-resume): Convert a PDF or DOCX resume to JSON Resume 1.7.0: key facts, a field-by-field mapping, a tested Python converter and validation with resume-cli. - [Bullhorn API Guide: OAuth, REST Login, Candidates and Resume Files](https://hirelayer.co/blog/bullhorn-api-guide): Use the Bullhorn REST API: get credentials, run OAuth 2.0, log in for a BhRestToken, search candidates, download resumes and poll event subscriptions. - [Ashby API Guide: Authentication, Candidates, Resumes and Webhooks](https://hirelayer.co/blog/ashby-api-guide): How the Ashby API works: API key auth and permissions, candidate.list sync tokens, resume downloads via file.info, webhooks, and parsing resumes to JSON. - [Language Proficiency Levels on a Resume: CEFR, LinkedIn and ILR Scales](https://hirelayer.co/blog/language-proficiency-levels-resume): What elementary, limited and professional working proficiency mean in CEFR (A2, B1, B2, C1), the ILR scale, test scores, and how to list them on a resume. - [Resume Parser API Comparison: A Fair Benchmark for ATS Teams](https://hirelayer.co/blog/resume-parser-api-comparison): Compare HireLayer, Affinda, RChilli and Textkernel resume parser APIs on public specifications, then measure extraction quality, latency, failures and cost on your own CVs. - [Job Description Parsing APIs Compared: Fields or Hiring Criteria](https://hirelayer.co/blog/job-description-parsing-api-comparison): Compare eight job description parsing APIs: field parsers (Textkernel, RChilli, HrFlow.ai, Affinda, DaXtra) and criteria extraction for matching (HireLayer). - [Candidate Matching APIs Compared: 8 Ways to Score Resumes Against a Job](https://hirelayer.co/blog/candidate-matching-api-comparison): Eight candidate matching APIs compared on how they score resumes against a job, what they explain and what a match costs: HireLayer, Textkernel and more. - [How to Build an AI Resume Screener in Python: Parse, Score and Explain](https://hirelayer.co/blog/build-ai-resume-screener): How AI resume screening works, and a Python program that screens a folder of CVs against a job: criteria, per-requirement evidence, scores and a shortlist. - [Resume Parser API Pricing: Compare Cost per 1,000 CVs](https://hirelayer.co/blog/resume-parser-api-pricing): The cheapest resume parsing APIs per resume on public price lists (RecruitAI Suite, HireLayer, Parsinga, Affinda), and how to work out your cost per 1,000 CVs. - [Skills Taxonomy APIs Compared: ESCO, O*NET, Lightcast, ROME and More](https://hirelayer.co/blog/skills-taxonomy-api-comparison): Free taxonomies (ESCO, O*NET, ROME) and skills normalization APIs (HireLayer, Textkernel, Lightcast, RChilli, HrFlow.ai) compared on size, licence and price. - [Free Resume Parsers in 2026: Online Tools, Free APIs and Open Source](https://hirelayer.co/blog/free-resume-parsers): Every free resume parser we could verify: online tools (HireLayer, Affinda, OpenResume), free API tiers and open-source libraries like pyresparser, with limits. - [Resume Parser APIs That Extract the Candidate Photo](https://hirelayer.co/blog/resume-parser-photo-extraction): Which resume parsing APIs return the candidate photo, in which field and format, from which files: HireLayer, Affinda, HrFlow.ai, Textkernel, DaXtra, RChilli. - [How to Parse a Resume to JSON in C# with HttpClient (.NET 8)](https://hirelayer.co/blog/parse-resume-to-json-csharp): Upload a CV to a resume parser API with HttpClient and MultipartFormDataContent, map the JSON to C# records with System.Text.Json, and retry only what is safe. - [Lightcast Skills API Alternatives: 6 Options for Skills Extraction](https://hirelayer.co/blog/lightcast-skills-api-alternatives): Lightcast free API access is now limited to approved public-good projects. Compare HireLayer, Textkernel, HrFlow.ai, RChilli, ESCO and O*NET. - [MCP Servers for Recruiting in 2026: Resume Parsing, Matching and ATS](https://hirelayer.co/blog/recruiting-mcp-servers): Which MCP servers let Claude, ChatGPT or Cursor parse resumes, rank candidates or update your ATS: HireLayer, RChilli, Affinda, Greenhouse, Ashby and more. - [What Is a Resume Parser? How Resume Parsing Works, With an Example](https://hirelayer.co/blog/what-is-a-resume-parser): A resume parser turns a CV file into structured fields. See a real CV-to-JSON example, how parsing works step by step, why it fails and how to choose one. - [How to Parse a Resume to JSON in PHP with Guzzle or Laravel](https://hirelayer.co/blog/parse-resume-to-json-php): Send a CV to a resume parser API from PHP 8.2, map the JSON to readonly classes, handle every documented error code and retry only what is safe. - [How to Parse a Resume to JSON in Java with java.net.http](https://hirelayer.co/blog/parse-resume-to-json-java): Send a CV to a resume parser API with the JDK HttpClient and a hand-built multipart body, map the JSON to Java records with Jackson, retry only what is safe. - [How to Parse a Resume PDF into JSON with Python or Node.js](https://hirelayer.co/blog/resume-pdf-to-json-api): Compare local PDF extraction, OCR, and a resume parser API, then follow working Python and Node.js examples for turning a resume PDF into structured JSON. - [How to Integrate a Resume Parser API: Requests, Mapping and Errors](https://hirelayer.co/blog/resume-parser-api-integration-guide): Step-by-step resume parser API integration: send a file from your backend, map the JSON into your candidate model, handle errors and test before launch. - [Bulk Resume Parsing at Scale: Build a Reliable API Pipeline](https://hirelayer.co/blog/bulk-resume-parsing-api): Design a safe, observable pipeline for thousands of resumes with a one-file-per-request parser API: queues, retries, deduplication and cost controls. - [Resume Parsing Accuracy: How to Measure and Improve It With an API](https://hirelayer.co/blog/resume-parsing-accuracy): Measure resume parsing accuracy field by field, build a labeled test set from your own CVs, find what causes errors, and catch them in production. - [EU AI Act Checklist for AI Resume Screening and Candidate Ranking](https://hirelayer.co/blog/eu-ai-act-recruitment-checklist): Key dates after the Digital Omnibus, how to tell whether a recruiting tool is high-risk, and what vendors and employers must have in place by 2 December 2027. ## HireLayer integration rules - Base URL: `https://hirelayer.co/api/v4`. HTTPS only. There is no official SDK: in code, call the REST API directly (Python `requests`, Node.js 18+ `fetch`); working examples are in https://github.com/HireLayer/resume-parser-examples. The official MCP server (hosted at https://hirelayer.co/mcp with OAuth sign-in, or locally with npm `hirelayer-mcp`; source: https://github.com/HireLayer/hirelayer-mcp) is for AI assistants such as Claude, ChatGPT, Cursor or VS Code, not for application code. - Authentication: header `X-API-Key` on every request except `GET /health`. Read the key from the `HIRELAYER_API_KEY` environment variable. Never hard-code it, log it, or send it from browser or mobile code. `Authorization: Bearer` is not supported. - To rank resumes for a job, call `POST /resumes/score` once with the job (a file, a text or a stored `job_id`) and the resumes (files, texts, parsed JSON or stored `application_id`s). With files, send `multipart/form-data`: the JSON in the `request` part, each file in a part whose name the JSON cites (`{"file": "cv1"}`); `webhook_url`, `do_not_store_data` and every other field go inside that JSON, never as form fields (refused, `400`). Without files, send the JSON as `application/json`. Do not parse or extract criteria first unless you need the parse or the criteria themselves. - Synchronous up to 10 resume files and 50 resumes per scoring call (about a minute for 50); at most 100 resumes per call. Larger calls answer `202` with `results_url` (poll it until no score is `pending`) or, with `webhook_url`, post the result to that URL, signed with `HireLayer-Signature` (HMAC-SHA256 of `"."` with the account's `whsec_` secret; reject a `t` older than 5 minutes; deduplicate on `event_id`). With storage, a call within the synchronous limits whose evaluations still run after about 100 seconds answers `202` too: handle `202` on every scoring call. - Timeouts: use a client timeout of at least 150 s for `POST /resumes/parse` and `POST /resumes/score`. - Retries: retry `429` after `Retry-After`, and `502`, `503`, `504` and connection failures at most 3 times with exponential backoff and jitter. After a `504`, a change may still have been applied: read it before sending the call again. Never retry another 4xx unchanged. `PUT` to your own ids can be sent again safely, and a pair already scored is not billed again. - Errors: always `{"error": {"code", "message", "param", "doc_url"}}`. Branch on `error.code` (`invalid_request`, `storage_required`, `missing_api_key`, `invalid_api_key`, `insufficient_credits`, `enterprise_plan_required`, `not_found`, `method_not_allowed`, `payload_too_large`, `resume_unreadable`, `job_unreadable`, `rate_limited`, `model_unavailable`, `internal_error`), never on the message. In a scoring call, a resume that fails comes last with `evaluation_status: "failed"` and its own `error`; the call still succeeds. - HrFlow.ai format: only to keep code written for HrFlow.ai, `POST /resumes/parse?output_format=hrflow` answers `201` with HrFlow.ai's parsing body, and its errors as `{"code": , "message", "error_code"}`. Otherwise leave `output_format` out. See https://hirelayer.co/api-docs/migrate-from-hrflow. - Compatibility: responses and webhooks can gain new fields as the products improve; no existing field is ever removed or renamed. Ignore unknown fields: never validate a response with a schema that rejects extra keys. - Ids: `application_id` is a resume, `job_id` a job, `criterion_id` a criterion. Send your own ids (letters, digits and . _ : ~ -, up to 200 characters) to keep HireLayer in step with your system; without one, the id is derived from the content (`file_`, `text_` or `job_` + 32 hex characters), so the same file is the same resume. A job text identical to the stored job returns the job as stored: `title`, `location` and `language` sent with it are ignored; change them with `PUT /jobs/{job_id}`. A resume parsed by the legacy `/api/v3/parser` is usable by its `info_resume.application_id`. - Workspaces: platforms serving several companies send each company's id in the `HireLayer-Workspace` header; data never crosses workspaces. Without it, everything goes to `default`. - Credits: Resume Parser 1 per resume (0 for a file already stored); Job Criteria Extractor free (except a new text sent under the `job_id` of a job already scored, as below); Resume Scorer 1 per resume scored + 1 per resume file parsed (0 for a pair already scored), +1 per call with `precise_ranking`; Talent Pool Search 1 per search (plus the re-evaluation below when its `job` text replaces a stored job); Job Recommendations 1 per search, +1 when the resume comes as a file; Skills Normalizer 1 per call. Reads (except `GET /skills`, 1 credit, and `GET /jobs/{job_id}/scores` with `precise_ranking=true`, 1 credit per read), storing a job or a resume, and changes of a criterion's weight, requirement or type are free; adding or rewording a criterion (a new label or threshold, or new criteria through `PUT /jobs/{job_id}` or a new text under a stored `job_id` in `POST /jobs/extract-criteria`, `POST /resumes/score` or `POST /resumes/search`) re-evaluates the job's stored scores, 1 credit each. The products return `credits_used`. `403 insufficient_credits` means nothing was processed; the Resume Scorer and Talent Pool Search check for the worst case (every stored score of the job counted as evaluated again) and bill only what they do. - Re-rank without re-scoring: `GET /jobs/{job_id}/scores?weights[crit_3]=0` applies other weights for one read, free. `precise_ranking: true` compares the 10 best and adds `ranking_reason`, 1 credit per call or read. - Storage: by default everything is stored in the workspace. `do_not_store_data=true` (Enterprise plan only, otherwise `403 enterprise_plan_required`) keeps nothing: ids come back `null`, give each resume a `reference`, and both searches answer `400 storage_required`. - Languages: criteria, summaries and explanations are in the job's language: `language` is `en`, `fr`, `de`, `es` or `pt`; left out, it is the language of the job's text, and English for a text in any other language. Evidence quotes the resume as written. - Text lengths: a job text holds at least 30 characters, and a Resume Scorer call needs at least one resume of 30 characters or more. - Do not invent fields, endpoints or parameters. When unsure, read the OpenAPI document or the Markdown reference. ## Endpoints Paths are relative to `https://hirelayer.co`. - `POST /api/v4/resumes/parse` (Resume Parser): Reads a resume file and returns it structured, stored in the workspace under an application_id. (multipart/form-data, 1 credit; 0 when the file is already stored, client timeout ≥ 150 s). Docs: https://hirelayer.co/api-docs/parse-resume.md - `POST /api/v4/jobs/extract-criteria` (Job Criteria Extractor): Reads a job description and returns the typed criteria it states (usually 4 to 10, fewer for a short posting: none is invented; at most 15), in the posting's order, the job stored under a job_id. A posting that states more requirements has its close ones grouped, and the 15 that weigh most are kept. The text holds at least 30 characters. (JSON body, free; 1 credit per stored score evaluated again when a new text replaces a stored job, client timeout ≥ 150 s). Docs: https://hirelayer.co/api-docs/extract-criteria.md - `POST /api/v4/resumes/score` (Resume Scorer): Evaluates one or more resumes against a job, criterion by criterion, and returns them best first. (JSON body, 1 credit per resume evaluated, +1 per resume file parsed, +1 per call with precise_ranking; 0 for a pair already evaluated or a file already stored; 1 credit per other stored score evaluated again when a stored job comes with a new text or new criteria, client timeout ≥ 150 s). Docs: https://hirelayer.co/api-docs/score.md - `POST /api/v4/resumes/search` (Talent Pool Search): Finds in the workspace's resume database the resumes closest to a job, to choose which ones to score. Proximity only: no evaluation, no explanation. Score the chosen ones with POST /resumes/score. (JSON body, 1 credit per search; 1 credit per stored score evaluated again when a new text replaces a stored job, client timeout ≥ 60 s). Docs: https://hirelayer.co/api-docs/search-resumes.md - `POST /api/v4/jobs/search` (Job Recommendations): Finds the open stored jobs of the workspace closest to a resume. Proximity only: no evaluation, no explanation. Score the chosen ones with POST /resumes/score, one call per job. (JSON body, 1 credit per search, +1 for a resume file, client timeout ≥ 60 s). Docs: https://hirelayer.co/api-docs/search-jobs.md - `POST /api/v4/skills/normalize` (Skills Normalizer): Maps the skills named in a free text to the HireLayer taxonomy. Nothing is stored. (JSON body, 1 credit, client timeout ≥ 60 s). Docs: https://hirelayer.co/api-docs/skills.md - `GET /api/v4/resumes` (Data and account): The resume database of the workspace, most recently stored first. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/resumes.md - `GET /api/v4/resumes/{application_id}` (Data and account): Get a stored resume. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/resumes.md - `PUT /api/v4/resumes/{application_id}` (Data and account): Stores under your application_id a resume you already have as text, or as the parsed resume JSON of POST /resumes/parse. Replaces the resume stored before. When its text changes, its scores become stale and are evaluated again only when asked; the same text sent again leaves them as they are. Free. To store a file, use POST /resumes/parse with application_id. (JSON body, free, client timeout ≥ 60 s). Docs: https://hirelayer.co/api-docs/resumes.md - `DELETE /api/v4/resumes/{application_id}` (Data and account): Erases the resume, its file and all its scores (GDPR erasure). Erasing a resume that does not exist is not an error. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/resumes.md - `GET /api/v4/jobs` (Data and account): The jobs of the workspace, most recently updated first. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/jobs.md - `GET /api/v4/jobs/{job_id}` (Data and account): Get a stored job. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/jobs.md - `PUT /api/v4/jobs/{job_id}` (Data and account): Creates or updates a job under your job_id, for an ATS that keeps its own ids. Without criteria on creation, they are extracted from its text, as by POST /jobs/extract-criteria. On update, criteria are kept unless you send criteria or recompute_criteria: true; a criterion with the same label and threshold as a current one keeps its id and its per-criterion results. (JSON body, free; 1 credit per stored score evaluated again, client timeout ≥ 150 s). Docs: https://hirelayer.co/api-docs/jobs.md - `DELETE /api/v4/jobs/{job_id}` (Data and account): Deletes the job, its criteria and its scores. The resumes stay. Deleting a job that does not exist is not an error. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/jobs.md - `POST /api/v4/jobs/{job_id}/criteria` (Data and account): Adds a criterion. The job's stored scores are evaluated on it in the background, 1 credit each (their evaluation_status is pending meanwhile), and their verdict is null until their next full evaluation (see Verdict). (JSON body, 1 credit per stored score of the job, client timeout ≥ 150 s). Docs: https://hirelayer.co/api-docs/jobs.md - `PATCH /api/v4/jobs/{job_id}/criteria/{criterion_id}` (Data and account): A new weight, requirement or type re-ranks at once, for free; weight 0 turns the criterion off. A new label or threshold evaluates the criterion again on the job's stored scores, 1 credit each, and sets their verdict to null until their next full evaluation. (JSON body, free for weight, requirement and type; 1 credit per stored score for label or threshold, client timeout ≥ 150 s). Docs: https://hirelayer.co/api-docs/jobs.md - `DELETE /api/v4/jobs/{job_id}/criteria/{criterion_id}` (Data and account): The criterion leaves the scores at once, with no new evaluation, and the verdict of the job's scores is null until their next full evaluation. A job keeps at least one criterion. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/jobs.md - `GET /api/v4/jobs/{job_id}/scores` (Data and account): The stored scores of a job, best first, scored at read time with the priorities of this read. Free. precise_ranking=true costs 1 credit per read: it compares the 10 best of all the job's resumes and adds ranking_reason, and is billed when it ranks at least 2 completed scores (credits_used). It is made again only when those 10, the job's description or the priorities of the read (weights and requirements) change. In a workspace without storage (set after its jobs were stored), it is made again at every read and never kept. (no body, free; 1 with precise_ranking=true, client timeout ≥ 60 s). Docs: https://hirelayer.co/api-docs/jobs.md - `GET /api/v4/jobs/{job_id}/scores/{application_id}` (Data and account): One resume's score for a job, criterion by criterion, with the priorities of this read. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/jobs.md - `DELETE /api/v4/jobs/{job_id}/scores/{application_id}` (Data and account): Deletes the score. The resume stays in the workspace. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/jobs.md - `GET /api/v4/skills` (Skills Normalizer): The whole taxonomy, most frequent in resumes first. 1 credit. (no body, 1 credit, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/skills.md - `GET /api/v4/workspaces` (Data and account): default first, then the others, oldest first. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/account.md - `PUT /api/v4/workspaces/{workspace_id}` (Data and account): Creates a workspace for one of your customers, gives it a new display name, or imposes the no-storage mode on it. Its id never changes. Free. (JSON body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/account.md - `DELETE /api/v4/workspaces/{workspace_id}` (Data and account): Erases every job, resume, file and score of the workspace, for example when your customer leaves. Free. (no body, free, client timeout ≥ 60 s). Docs: https://hirelayer.co/api-docs/account.md - `GET /api/v4/account` (Data and account): The plan and the credits left of the key's account. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/account.md - `GET /api/v4/health` (Data and account): No key needed. Free. (no body, free, client timeout ≥ 10 s, no API key). Docs: https://hirelayer.co/api-docs/account.md - `POST /api/v3/parser` (Legacy parser): Upload one resume file and receive the parsed resume at the top level of the response. Legacy: new integrations use POST /api/v4/resumes/parse, which returns the same JSON under resume. (multipart/form-data, 1 credit per successful parse (http 200, or 201 in hrflow.ai’s format), client timeout ≥ 150 s, LEGACY, do not use for new code). Docs: https://hirelayer.co/api-docs/legacy-parsers.md - `POST /api/v2/parser` (Legacy parser): Legacy asynchronous contract: the request is accepted with 202 and the result is posted to webhook_url. (multipart/form-data, 1 credit when the request is accepted (http 202), client timeout ≥ 50 s, LEGACY, do not use for new code). Docs: https://hirelayer.co/api-docs/legacy-parsers.md ## References - Index for agents: https://hirelayer.co/llms.txt - Full documentation in one file: https://hirelayer.co/llms-full.txt - OpenAPI 3.1: https://hirelayer.co/openapi.json # Page: HireLayer API documentation > Six recruiting APIs behind one API key: parse resumes, extract job criteria, score and rank resumes, search a talent pool, recommend jobs and normalize skills. Source: https://hirelayer.co/api-docs · Markdown: https://hirelayer.co/api-docs.md HireLayer is a set of REST APIs for developers who build ATS, job boards and HR tools, under `https://hirelayer.co/api/v4`. The most common call, ranking resumes for a job, is one request to the Resume Scorer: the [quickstart](https://hirelayer.co/api-docs/quickstart.md) shows it. [Sign up](https://hirelayer.co/auth/signup) for a self-serve key: the Free plan includes 50 credits a month and needs no card. - [HireLayer Resume Parser](https://hirelayer.co/api-docs/parse-resume.md): Resume file → structured resume JSON - [HireLayer Job Criteria Extractor](https://hirelayer.co/api-docs/extract-criteria.md): Job description → typed, weighted criteria - [HireLayer Resume Scorer](https://hirelayer.co/api-docs/score.md): A job and its resumes → a score per resume, best first - [HireLayer Talent Pool Search](https://hirelayer.co/api-docs/search-resumes.md): A job → the closest resumes of the resume database - [HireLayer Job Recommendations](https://hirelayer.co/api-docs/search-jobs.md): A resume → the closest open jobs - [HireLayer Skills Normalizer](https://hirelayer.co/api-docs/skills.md): Free-text skills → skills taxonomy ## Start here - [Quickstart](https://hirelayer.co/api-docs/quickstart.md): Rank resumes for a job in one call. - [Screening pipeline](https://hirelayer.co/api-docs/screening-pipeline.md): Sync jobs and resumes from an ATS, score, re-rank and search. - [Build with AI agents](https://hirelayer.co/api-docs/ai-agents.md): llms.txt, Markdown pages, OpenAPI and ready-made agent rules. - [Errors and retries](https://hirelayer.co/api-docs/errors.md): One error format, every code and when to retry. ## Basics - **Base URL:** `https://hirelayer.co/api/v4` - **Authentication:** `X-API-Key` header on every call except `GET /health` - **Format:** JSON in and out; files go as `multipart/form-data`, with the JSON in a `request` part when a call takes both - **Errors:** Always `{"error": {"code", "message", "param", "doc_url"}}`: branch on `code` - **Workspaces:** The optional `HireLayer-Workspace` header keeps each of your customers apart - **Billing:** Each endpoint states its price; the six products return `credits_used`. Failed work is not billed - **Execution:** Synchronous up to a size, then `202` with a [signed webhook](https://hirelayer.co/api-docs/webhooks.md) or a URL to read - **Compatibility:** Responses and webhooks can gain new fields as the products improve, and no existing field is ever removed or renamed: ignore the fields you do not know - **Legacy parsers:** `/api/v3/parser` and `/api/v2/parser` keep working with their JSON unchanged: see the [legacy parsers](https://hirelayer.co/api-docs/legacy-parsers.md) ## Machine-readable docs Every page is also available as Markdown by adding `.md` to its URL. [`/llms.txt`](https://hirelayer.co/llms.txt) indexes them, [`/llms-full.txt`](https://hirelayer.co/llms-full.txt) contains all of them, [`/openapi.json`](https://hirelayer.co/openapi.json) describes every endpoint, and [`/api-docs/agent-rules.md`](https://hirelayer.co/api-docs/agent-rules.md) gives drop-in AGENTS.md rules for coding agents. All are generated from the same contract as these pages. ## Next - [Quickstart](https://hirelayer.co/api-docs/quickstart.md): Create a free HireLayer API key, then rank resume files for a job description in one call with cURL or Python. - [HireLayer Resume Scorer](https://hirelayer.co/api-docs/score.md): HireLayer Resume Scorer matches candidates to a job description, ranks them and explains each score criterion by criterion, with evidence from the resume. --- # Page: Quickstart > Create a free HireLayer API key, then rank resume files for a job description in one call with cURL or Python. Source: https://hirelayer.co/api-docs/quickstart · Markdown: https://hirelayer.co/api-docs/quickstart.md Rank resumes for a job in one call: send the job description and the resume files to `POST /api/v4/resumes/score`. The answer lists every resume best first, with a score from 0 to 1, a verdict, a summary and the evidence for each criterion of the job. The Free plan includes 50 credits a month with no card. ### 1. Create an API key [Sign up](https://hirelayer.co/auth/signup), then create a key in [Dashboard → API keys](https://hirelayer.co/dashboard/api-keys). Keep it in an environment variable on your server: ```bash export HIRELAYER_API_KEY="sk_xxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" ``` ### 2. Rank resumes for a job Put the job description in `job.pdf` next to the resumes. Each file goes in its own part, and the JSON in the `request` part names them: **cURL** ```bash curl -X POST https://hirelayer.co/api/v4/resumes/score \ -H "X-API-Key: $HIRELAYER_API_KEY" \ --form-string 'request={"job":{"file":"job"},"resumes":[{"file":"cv1"},{"file":"cv2"}]}' \ -F "job=@job.pdf;type=application/pdf" \ -F "cv1=@elias.pdf;type=application/pdf" \ -F "cv2=@rafael.pdf;type=application/pdf" ``` **Python** ```python import json import os import requests with open("job.pdf", "rb") as file1, open("elias.pdf", "rb") as file2, open("rafael.pdf", "rb") as file3: response = requests.post( "https://hirelayer.co/api/v4/resumes/score", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, files={"job": ("job.pdf", file1, "application/pdf"), "cv1": ("elias.pdf", file2, "application/pdf"), "cv2": ("rafael.pdf", file3, "application/pdf")}, data={ "request": json.dumps({ "job": { "file": "job", }, "resumes": [ { "file": "cv1", }, { "file": "cv2", }, ], }), }, timeout=150, ) response.raise_for_status() data = response.json() print(data["scores"]) ``` - Files: the job as PDF, DOCX, TXT or HTML; resumes as 15 formats, PDF, Word, images, TXT, HTML and Markdown included. - Texts instead of files: write `{"text": "…"}` in place of `{"file": "…"}`, for the job or any resume, and send the JSON alone (below). - Price: 1 credit per resume scored, +1 per resume file parsed; the job is free. This call costs 4 credits, a resume sent as text 1. - Time: about a minute for a few resumes; set a client timeout of 150 seconds. The answer is synchronous up to 10 resume files and 50 resumes (with storage, evaluations still running after about 100 seconds answer `202` with a `results_url` to read); past that, see [Webhooks](https://hirelayer.co/api-docs/webhooks.md). **The same call with texts** ```bash curl -X POST https://hirelayer.co/api/v4/resumes/score \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "job": { "text": "Senior Backend Engineer, Fernway, Lyon, France (hybrid, 3 days a week on site)\nFernway builds route-planning software used by 300 delivery companies.\nYou will design, build and run the APIs behind 40,000 deliveries a day.\nRequired: 5+ years of backend development, including 3 years with Node.js and TypeScript in production.\nRequired: PostgreSQL, from schema design to query optimization.\nExperience with a message queue such as RabbitMQ or Kafka.\nNice to have: AWS, Docker and Kubernetes.\nProfessional English; French is a plus." }, "resumes": [ { "text": "Alex Morgan, Senior Backend Engineer, Lyon, France. alex.morgan@example.com\n2021-present: Senior Backend Engineer, Parcelio, Lyon. Node.js and TypeScript APIs for 2 million parcels a month; PostgreSQL schema design and query tuning; RabbitMQ event pipeline.\n2018-2021: Backend Developer, Nimbus, Paris. Node.js REST APIs on PostgreSQL, deployed with Docker on AWS.\n2016-2018: Junior PHP Developer, Webcraft, Paris.\nSkills: Node.js, TypeScript, PostgreSQL, RabbitMQ, Docker, AWS (ECS, RDS).\nLanguages: French (native), English (fluent).", "reference": "alex" }, { "text": "Sam Lee, Backend Developer, Berlin, Germany. sam.lee@example.com\n2019-present: Backend Developer, Kestrel Pay, Berlin. Python and Django services for card payments on PostgreSQL; Kafka consumers.\n2017-2019: Full-stack Developer, Brightdesk, Berlin. React front end and a small internal Node.js API.\nSkills: Python, Django, PostgreSQL, Kafka, Docker, Kubernetes, JavaScript.\nEducation: BSc Computer Science, TU Berlin, 2017.\nLanguages: English (fluent), German (B2).", "reference": "sam" } ] }' ``` ### 3. Read the ranking **Response to the call with texts (excerpt)** ```json { "job": { "job_id": "job_01bbbe9e88640e9abb146c378537ce29", "language": "en", "criteria": […] }, "scores": [ { "rank": 1, "application_id": "text_05e4d9163af6e9818d5f2c84843e7e56", "reference": "alex", "score": 0.98, "verdict": "highly_relevant", "summary": "The candidate perfectly matches all mandatory requirements with significant experience in Node.js, TypeScript, and PostgreSQL, making them an excellent fit for the role.", "required_missing": [], "criteria": […] }, { "rank": 2, "application_id": "text_6de4e5ef69a941201584ccffc6a2ca48", "reference": "sam", "score": 0.41, "verdict": "marginally_relevant", "summary": "Strong backend profile but missing the core Node.js/TypeScript requirement and located abroad.", "required_missing": [ { "criterion_id": "crit_2", "label": "Node.js and TypeScript" }, { "criterion_id": "crit_8", "label": "Location (Lyon area)" } ], "criteria": […] } ], "credits_used": 2 } ``` - `scores[]` is sorted best first. `score` is the weighted mean of the criterion scores; `verdict` is one of `highly_relevant`, `relevant`, `marginally_relevant`, `not_relevant`. - `criteria[]` gives, for each criterion, a status (`met`, `partial`, `missing`, `unknown`), the evidence quoted from the resume and an explanation. `required_missing` lists the required criteria the resume clearly lacks. - Criteria, summaries and explanations follow the job’s language, English or French, read from its text. To choose it, add `"language": "en"` or `"fr"` to `job`. - Give each resume a `reference` (`{"file": "cv1", "reference": "your-id"}`): it comes back in `scores[].reference`. Keep `job.job_id` and each `application_id`: sending them instead of the files scores the same pairs again for free. - Add `"precise_ranking": true` to the request to compare the 10 best resumes against each other, with a `ranking_reason` each, for 1 credit more. Every field is described in the [Resume Scorer reference](https://hirelayer.co/api-docs/score.md). Errors come as `{"error": {"code", …}}`: see [Errors and retries](https://hirelayer.co/api-docs/errors.md). ## Next - [HireLayer Resume Scorer](https://hirelayer.co/api-docs/score.md): HireLayer Resume Scorer matches candidates to a job description, ranks them and explains each score criterion by criterion, with evidence from the resume. - [Build a screening pipeline](https://hirelayer.co/api-docs/screening-pipeline.md): Sync jobs and applicants from an ATS, score them, re-rank with the recruiter’s priorities and search the talent pool, with your own ids. - [Build with AI agents](https://hirelayer.co/api-docs/ai-agents.md): Give Claude Code, Codex, Cursor or any coding agent the context to integrate HireLayer correctly: llms.txt, Markdown pages, OpenAPI and a ready-made rules file. --- # Page: Authentication, workspaces and storage > Authenticate every request with an X-API-Key header, keep each customer in its own workspace, and choose whether HireLayer stores what it processes. Source: https://hirelayer.co/api-docs/authentication · Markdown: https://hirelayer.co/api-docs/authentication.md Send your key in the `X-API-Key` header of every request. Only `GET /health` is public. ```http POST /api/v4/resumes/score HTTP/1.1 Host: hirelayer.co X-API-Key: sk_xxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Content-Type: application/json ``` - `Authorization: Bearer …` and keys in query strings are not accepted. - Keys look like `sk_` + 6 hex characters + `_` + 32 hex characters. A malformed key is rejected as invalid. - All keys of an account share its credit balance and work with every product. - A missing key answers `401 missing_api_key`, a wrong one `401 invalid_api_key`, a balance too low `403 insufficient_credits`: nothing is processed or billed. ## Manage keys Create, name, rotate and revoke keys in [Dashboard → API keys](https://hirelayer.co/dashboard/api-keys). The same page shows the secret that signs your [webhooks](https://hirelayer.co/api-docs/webhooks.md). > **Warning: Rotation revokes the old key immediately.** There is no grace period. To rotate without downtime, create a second key, deploy it, then revoke the first one. - Call HireLayer from your backend. Never ship a key in browser, mobile or desktop code. - Read it from an environment variable such as `HIRELAYER_API_KEY` and keep it out of version control. - Use one key per environment or service, so you can revoke one without touching the others. ```env # .env: server-side only, never commit it HIRELAYER_API_KEY=sk_xxxxxx_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx HIRELAYER_WEBHOOK_SECRET=whsec_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ``` ## Workspaces If you serve several companies, send each one’s id in the `HireLayer-Workspace` header: its jobs, resumes and scores never mix with another’s, and erasing it (`DELETE /workspaces/{workspace_id}`) removes all of them: see [Workspaces and account](https://hirelayer.co/api-docs/account.md#workspaces). Without the header, everything goes to `default`. A workspace is created on first use; ids are case-insensitive, made of letters, digits and `. _ : ~ -`, up to 200 characters. ```bash curl https://hirelayer.co/api/v4/jobs \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "HireLayer-Workspace: acme" ``` ## Ids `application_id` designates a resume everywhere, `job_id` a job, `criterion_id` a criterion. Send your own ids wherever you send a resume or a job; without one, HireLayer derives it from the content: `file_`, `text_` or `job_` followed by the first 32 hexadecimal characters of the SHA-256 of the file bytes, the resume text or the job text, such as `file_d7e21d373637a897b17b8fdf63122807`. The same file sent twice is therefore the same resume. ## Storage By default, every product stores what it processes in the workspace: a pair already scored is free to ask again, a criterion corrected re-evaluates only that criterion, and the two searches have something to search. `do_not_store_data=true` processes without storing. > **Note: Enterprise plan only.** `do_not_store_data=true` is reserved for the Enterprise plan. From another plan, the call is refused with `403 enterprise_plan_required` before anything is processed or billed; `do_not_store_data=false` is accepted on every plan. [Contact us](https://hirelayer.co/book-a-demo) to move to Enterprise. What is kept with `do_not_store_data=true`: - a usage line for billing: date, product, credits, the `request_id` returned to you, and the call's IP address, country and user agent; no file name and no content. - the candidate photo, when one is found: `face_url` works 10 minutes, and the image is deleted 30 days later. - the skill names read in the resume, alone (tied to no resume, call or account), kept to recognize them faster. - with `webhook_url`, while the call is processed, its job and resumes, then its result until it is delivered: each deleted at once after use, 24 hours at most after the call. Nothing else: no file, text, parse, job, criterion or score, and no content in logs. To impose it on every call of a customer, set it once on its workspace: `PUT /workspaces/{workspace_id}` with `{"do_not_store_data": true}`. Without storage, the two searches answer `400 storage_required`, and every scoring call evaluates and bills every resume again. In a workspace set this way, the writes that would store something in it (`PUT /resumes/{application_id}`, `PUT /jobs/{job_id}`, `POST /jobs/{job_id}/criteria`, `PATCH /jobs/{job_id}/criteria/{criterion_id}`) answer `400 storage_required` too. ## Next - [Errors and retries](https://hirelayer.co/api-docs/errors.md): The error format of the HireLayer API, every error code, and when to retry a call. - [Limits and credits](https://hirelayer.co/api-docs/limits.md): What each HireLayer product costs, how large a call can be, and which client timeouts to use. --- # Page: Errors and retries > The error format of the HireLayer API, every error code, and when to retry a call. Source: https://hirelayer.co/api-docs/errors · Markdown: https://hirelayer.co/api-docs/errors.md Successful calls return `2xx`. Every error returns a non-2xx status and the same JSON body. Branch on `error.code`, never on `error.message`: codes are stable, messages are for humans and may change. ```json { "error": { "code": "invalid_request", "message": "job.criteria[0].weight must be 0, 1, 2 or 3.", "param": "job.criteria[0].weight", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` - `param` names the input at fault: its full path from the root of the body (`job.criteria[0].weight`, `resumes[2].file`), or the path parameter, query parameter or header (`job_id`, `limit`, `HireLayer-Workspace`). Errors about the whole call (the key, credits, an unreadable body, an unknown endpoint) have none. - `request_id` identifies the call, and every answer carries it in the `HireLayer-Request-Id` header too, successes included: quote it when contacting support. - `doc_url` links to the code below. Each endpoint’s reference lists the errors it answers, with the message of each case. - In a scoring call, a resume that fails (unreadable file, unknown `application_id`) does not fail the call: it comes last with `evaluation_status: "failed"` and its own `error`, unbilled. ## Messages - A message is one or two English sentences: what is wrong, starting with the input at fault, then what to do. A size limit is always cited: `text must be 5,000 characters or less.` - A refusal before any work ends with `Nothing was processed or billed.`; an unreadable resume file with `Nothing was billed.` - The same situation answers the same status and code on every endpoint: a content over its size limit is always `413 payload_too_large`, an unknown id always `404 not_found` with the field in `param`, a method a path does not take `405 method_not_allowed` with an `Allow` header. - Messages may be reworded; codes do not change. Branch on `error.code`. ## Retry policy - Retry `429` after the `Retry-After` header, and `502`, `503` and `504` or connection failures at most 3 times with exponential backoff and jitter (about 1 s, 2 s, 4 s). After a `504`, a change may still have been applied: read it before sending the call again. - Never retry another `4xx` unchanged. `403 insufficient_credits` succeeds once credits are added. - Failed work is not billed. Keep a client timeout of 150 seconds on the products: a call your client abandons can still complete and be billed. - Writes to your own ids (`PUT /jobs/{job_id}`, `PUT /resumes/{application_id}`) can be sent again safely, and a pair already scored is not billed again. **Reusable client** **Python** ```python # hirelayer.py: minimal client with retries. Requires: pip install requests import json import os import random import time import requests API_BASE = "https://hirelayer.co/api/v4" RETRYABLE = {429, 502, 503, 504} class HireLayerError(Exception): def __init__(self, status, code, message, param=None, request_id=None): super().__init__(f"HireLayer {status} {code}: {message} (request_id {request_id})") self.status = status self.code = code self.param = param self.request_id = request_id def _delay(attempt, retry_after): if retry_after and retry_after.isdigit(): return int(retry_after) return min(30, 2**attempt) + random.random() def call(method, path, *, body=None, files=None, workspace=None, timeout=150, max_retries=3): """Call HireLayer. Retries 429, 502, 503, 504 and connection failures, raises HireLayerError otherwise.""" headers = {"X-API-Key": os.environ["HIRELAYER_API_KEY"]} if workspace: headers["HireLayer-Workspace"] = workspace # With files, the JSON goes in the "request" part. data = {"request": json.dumps(body)} if files and body is not None else None for attempt in range(max_retries + 1): try: response = requests.request( method, API_BASE + path, headers=headers, json=None if files else body, data=data, files=files, timeout=timeout, ) except requests.ConnectionError: if attempt == max_retries: raise time.sleep(_delay(attempt, None)) continue if response.status_code == 204: return None if response.ok: return response.json() if response.status_code in RETRYABLE and attempt < max_retries: time.sleep(_delay(attempt, response.headers.get("Retry-After"))) continue try: error = response.json()["error"] except (ValueError, KeyError, TypeError): error = {"code": None, "message": response.reason} raise HireLayerError( response.status_code, error.get("code"), error.get("message"), error.get("param"), response.headers.get("HireLayer-Request-Id"), ) def read_file(path): """A multipart file part, as bytes so it can be sent again on retry.""" with open(path, "rb") as file: return (os.path.basename(path), file.read()) def score_files(job_path, resume_paths, precise_ranking=False, workspace=None): """Score resume files against a job file: 1 credit per resume, +1 per file parsed.""" files = {"job": read_file(job_path)} resumes = [] for index, path in enumerate(resume_paths, start=1): files[f"cv{index}"] = read_file(path) resumes.append({"file": f"cv{index}", "reference": os.path.basename(path)}) body = {"job": {"file": "job"}, "resumes": resumes, "precise_ranking": precise_ranking} return call("POST", "/resumes/score", body=body, files=files, workspace=workspace) ``` **TypeScript** ```typescript // hirelayer.mts: minimal client with retries. Node.js 18+, run with tsx. import { readFile } from 'node:fs/promises' import { basename } from 'node:path' const API_BASE = 'https://hirelayer.co/api/v4' const RETRYABLE = new Set([429, 502, 503, 504]) export class HireLayerError extends Error { constructor( readonly status: number, readonly code: string | undefined, message: string, readonly param?: string, /** Quote it to support. */ readonly requestId?: string | null ) { super(`HireLayer ${status} ${code}: ${message} (request_id ${requestId})`) } } const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)) function retryDelay(attempt: number, retryAfter: string | null) { const seconds = Number(retryAfter) if (retryAfter && Number.isInteger(seconds)) return seconds * 1000 return Math.min(30_000, 1000 * 2 ** attempt) + Math.random() * 1000 } type CallOptions = { method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' /** The JSON body, or the `request` part when `files` are sent. */ body?: unknown /** Multipart file parts, by part name. */ files?: Record workspace?: string timeoutMs?: number } /** Calls HireLayer. Retries 429, 502, 503, 504 and connection failures, throws HireLayerError otherwise. */ export async function callHireLayer( path: string, options: CallOptions = {}, maxRetries = 3 ): Promise { const headers: Record = { 'X-API-Key': process.env.HIRELAYER_API_KEY!, } if (options.workspace) headers['HireLayer-Workspace'] = options.workspace if (options.body !== undefined && !options.files) { headers['Content-Type'] = 'application/json' } for (let attempt = 0; ; attempt++) { // A FormData is consumed by a request: build it again on every attempt. let body: string | FormData | undefined if (options.files) { body = new FormData() if (options.body !== undefined) { body.append('request', JSON.stringify(options.body)) } for (const [part, file] of Object.entries(options.files)) { body.append(part, new Blob([file.bytes]), file.name) } } else if (options.body !== undefined) { body = JSON.stringify(options.body) } let response: Response try { response = await fetch(API_BASE + path, { method: options.method ?? (body === undefined ? 'GET' : 'POST'), headers, body, signal: AbortSignal.timeout(options.timeoutMs ?? 150_000), }) } catch (error) { // fetch rejects with a TypeError when the connection fails. if (!(error instanceof TypeError) || attempt >= maxRetries) throw error await sleep(retryDelay(attempt, null)) continue } if (response.status === 204) return undefined as T if (response.ok) return (await response.json()) as T if (RETRYABLE.has(response.status) && attempt < maxRetries) { await sleep(retryDelay(attempt, response.headers.get('Retry-After'))) continue } const payload = await response.json().catch(() => ({})) const error = payload.error ?? {} throw new HireLayerError( response.status, error.code, error.message ?? response.statusText, error.param, response.headers.get('HireLayer-Request-Id') ) } } export async function readPart(path: string) { return { name: basename(path), bytes: await readFile(path) } } ``` ## Error codes ### invalid_request **`400`.** The request is invalid: a missing or unknown field, a wrong type, a value out of its range, malformed JSON or multipart, an id that is malformed or names an endpoint (`score`, `search`…). `param` names the field at fault. Fix the request. Do not retry it unchanged. ### storage_required **`400`.** The call needs storage while it runs without it: a search, a stored `job_id` or `application_id` read with `do_not_store_data=true`, or, in a workspace set to run without storage, a write that would store something in it (`PUT /resumes/{application_id}`, `PUT /jobs/{job_id}`, `POST /jobs/{job_id}/criteria`, `PATCH /jobs/{job_id}/criteria/{criterion_id}`). Send the content instead of its id, or call without `do_not_store_data`. A workspace set with `do_not_store_data: true` refuses these calls whatever they send: use another workspace, or lift the setting with `PUT /workspaces/{workspace_id}`. ### missing_api_key **`401`.** The `X-API-Key` header is missing, or the key came another way: `Authorization: Bearer` or the URL, which are not accepted. Send the key in the `X-API-Key` header. ### invalid_api_key **`401`.** The key is malformed, unknown or revoked. Check the key in the dashboard. ### insufficient_credits **`403`.** The account has fewer credits than the call needs. Nothing was processed or billed. Add credits, then retry. ### enterprise_plan_required **`403`.** `do_not_store_data=true` below the Enterprise plan. Nothing was processed or billed. Send the call without it, or move to the Enterprise plan. ### not_found **`404`.** No job, resume, criterion, score, workspace or Scorer call under this id in the workspace, `param` naming the field that carries it; or no such endpoint, without `param`. Check the path, the ids and the `HireLayer-Workspace` header. ### method_not_allowed **`405`.** The path exists, but not with this method, such as `GET /resumes/score`. The `Allow` header lists the methods it takes. Use a method of the `Allow` header. ### payload_too_large **`413`.** A content is over its size limit: a file over 4.5 MB, the files of a call over 50 MB, a parsed resume JSON over 1 MB, a job or resume text over 50,000 characters, a Skills Normalizer text over 5,000 characters, or a body over 10 MB. `param` names the input, and the message the limit. Send a smaller input, or parse the files first and score them by id. ### resume_unreadable **`422`.** The resume file cannot be read. Nothing was billed. In a scoring call, only that resume fails. Do not retry the same file. ### job_unreadable **`422`.** The job file cannot be read. Nothing was billed. Send the job as text, or another file. ### rate_limited **`429`.** Too many files are being parsed at once for the account. Wait for `Retry-After` seconds, then retry. ### model_unavailable **`502`.** The analysis could not be completed after several attempts. Nothing was billed. A failed score also carries this code in its `error`. Retry with backoff. ### internal_error **`500` `502` `503` `504`.** An unexpected failure (`500`), the service out of reach (`502`), a dependency briefly unavailable (`503`), or no answer in time (`504`). Retry with backoff; honour `Retry-After`. After a `504`, a change may still have been applied: read it before sending the call again. If it persists, contact support with the `request_id`. ## Legacy parser errors The [legacy parsers](https://hirelayer.co/api-docs/legacy-parsers.md) keep their own error shape, `{"error": "…", "code": "…"}`, with these exact messages: ### `POST /api/v3/parser` | Status | `error` | `code` | Retry | | --- | --- | --- | --- | | `400` | `Unsupported output_format. Use one of: hirelayer, hrflow` | `UNSUPPORTED_OUTPUT_FORMAT` | Fix, then retry | | `400` | `The request body is not valid multipart/form-data. Check the boundary and the Content-Disposition header of each part.` | `INVALID_MULTIPART_BODY` | Do not retry | | `400` | `Missing required file field` | — | Do not retry | | `400` | `Prefer: respond-async requires a webhook_url field with an HTTPS URL` | — | Do not retry | | `400` | `application_id must be a string when provided` | — | Do not retry | | `400` | `application_id must contain letters, digits and . _ : ~ -, up to 200 characters` | — | Do not retry | | `400` | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters` | — | Do not retry | | `400` | `The uploaded file is empty or invalid. Please check the file and try again.` | `INVALID_FILE` | Do not retry | | `401` | `Missing API Key` | — | Do not retry | | `401` | `Invalid API Key` | — | Do not retry | | `403` | `Insufficient credits available` | — | Fix, then retry | | `403` | `do_not_store_data=true is reserved for the Enterprise plan. Send the request without it, or with do_not_store_data=false.` | `ENTERPRISE_PLAN_REQUIRED` | Fix, then retry | | `413` | `The uploaded file is too large to process. Please upload a smaller file.` | — | Do not retry | | `413` | `The request body is larger than the 10 MB limit. Please upload a smaller file.` | — | Do not retry | | `415` | `Content-Type must be multipart/form-data` | — | Do not retry | | `422` | `This document does not appear to be a CV or resume. Please upload a CV or resume and try again.` | `DOCUMENT_NOT_A_RESUME` | Do not retry | | `422` | `The text could not be extracted from this document. Please verify that the file is readable and contains selectable text.` | `DOCUMENT_TEXT_EMPTY` | Do not retry | | `422` | `The document could not be read. Please upload a valid, readable file.` | `DOCUMENT_UNREADABLE` | Do not retry | | `422` | `This document contains too much text to process. Please try a shorter or simpler version.` | `DOCUMENT_TOO_LARGE` | Do not retry | | `500` | `Internal Server Error` | — | Retry with backoff | | `502` | `An error occurred while processing the document or extracting its text. Please try again later.` | `PARSER_UNAVAILABLE` | Retry with backoff | | `503` | `An error occurred while processing the document or extracting its text. Please try again later.` | `PARSER_UNAVAILABLE` | Retry with backoff | | `503` | `Credit service temporarily unavailable` | — | Retry with backoff | | `504` | `An error occurred while processing the document or extracting its text. Please try again later.` | `PARSER_UNAVAILABLE` | Retry with backoff | ### `POST /api/v2/parser` | Status | `error` | `code` | Retry | | --- | --- | --- | --- | | `400` | `The request body is not valid multipart/form-data. Check the boundary and the Content-Disposition header of each part.` | `INVALID_MULTIPART_BODY` | Do not retry | | `400` | `An error occurred while processing the document or extracting its text. Please try again later.` | — | Do not retry | | `401` | `Missing API Key` | — | Do not retry | | `401` | `Invalid API Key` | — | Do not retry | | `403` | `Insufficient credits available` | — | Fix, then retry | | `413` | `The request body is larger than the 10 MB limit. Please upload a smaller file.` | — | Do not retry | | `415` | `Content-Type must be multipart/form-data` | — | Do not retry | | `500` | `Internal Server Error` | — | Retry with backoff | | `503` | `Credit service temporarily unavailable` | — | Retry with backoff | ## Next - [Limits and credits](https://hirelayer.co/api-docs/limits.md): What each HireLayer product costs, how large a call can be, and which client timeouts to use. - [Webhooks](https://hirelayer.co/api-docs/webhooks.md): Receive the result of a long parse or scoring call on your own URL, signed with HMAC-SHA256. --- # Page: Limits and credits > What each HireLayer product costs, how large a call can be, and which client timeouts to use. Source: https://hirelayer.co/api-docs/limits · Markdown: https://hirelayer.co/api-docs/limits.md ## Credits | Product | Endpoint | Credits | | --- | --- | --- | | [Resume Parser](https://hirelayer.co/api-docs/parse-resume.md) | `POST /api/v4/resumes/parse` | 1 credit; 0 when the file is already stored | | [Job Criteria Extractor](https://hirelayer.co/api-docs/extract-criteria.md) | `POST /api/v4/jobs/extract-criteria` | Free; 1 credit per stored score evaluated again when a new text replaces a stored job | | [Resume Scorer](https://hirelayer.co/api-docs/score.md) | `POST /api/v4/resumes/score` | 1 credit per resume evaluated, +1 per resume file parsed, +1 per call with precise_ranking; 0 for a pair already evaluated or a file already stored; 1 credit per other stored score evaluated again when a stored job comes with a new text or new criteria | | [Talent Pool Search](https://hirelayer.co/api-docs/search-resumes.md) | `POST /api/v4/resumes/search` | 1 credit per search; 1 credit per stored score evaluated again when a new text replaces a stored job | | [Job Recommendations](https://hirelayer.co/api-docs/search-jobs.md) | `POST /api/v4/jobs/search` | 1 credit per search, +1 for a resume file | | [Skills Normalizer](https://hirelayer.co/api-docs/skills.md) | `POST /api/v4/skills/normalize` | 1 credit | - The six products return `credits_used`: what the call cost. - Reads (except `GET /skills`, the whole taxonomy, 1 credit, and a ranking read with `precise_ranking=true`, 1 credit), stored objects, workspaces, the account and the health check are free. Changing a criterion’s weight, requirement or type re-ranks for free; adding a criterion or changing its label or threshold re-evaluates the job’s stored scores, 1 credit each, and so does a new text or new criteria sent for a stored job already scored, to `POST /jobs/extract-criteria`, `POST /resumes/score` or `POST /resumes/search`, 1 credit each. - Failed work is not billed, and a call refused for lack of credits processes nothing (`403 insufficient_credits`). The Resume Scorer and Talent Pool Search check for the worst case (every stored score of the job counted as evaluated again) and bill only what they do. - Plans: Free: 50 credits/month · Starter: 500 credits/month · Scale: 2,000 credits/month; Enterprise on request. Monthly credits renew each billing month; credit packs, bought once from the dashboard, stay until used and are spent after them. Prices are on the [pricing page](https://hirelayer.co/pricing). [`GET /api/v4/account`](https://hirelayer.co/api-docs/account.md) gives the balance. ## Request limits | Input | Limit | | --- | --- | | A file (resume or job) | 4.5 MB · 50 MB of files per call | | A job file as PDF | 50 pages | | A job or resume text | 50,000 characters | | A parsed resume sent as JSON | 1 MB | | Resumes per scoring call | 100; synchronous up to 10 files and 50 resumes | | Criteria per job | 20 | | Skills text | 5,000 characters | | Talent Pool Search | Up to 500 resumes per search | | Job Recommendations | Up to 100 jobs per search | | List pages | Up to 100 items, with `next_cursor` | ## Timeouts - Resume Parser: about 25 to 35 seconds, scans longer; set a client timeout of 150 seconds. - Resume Scorer: about a minute for 50 resumes, plus the parse of any file; 150 seconds. Larger calls answer `202`, and so does a call with storage whose evaluations still run after about 100 seconds: see [Webhooks](https://hirelayer.co/api-docs/webhooks.md). - Other calls answer in a few seconds. ## Rate limits and concurrency No per-second rate limit is enforced, but capacity is shared: too many files parsed at once answer `429 rate_limited` with `Retry-After`. Start with a few concurrent requests, increase gradually, and back off on `502` and `503`. For bulk imports, [contact us](https://hirelayer.co/book-a-demo) first. ## Next - [Errors and retries](https://hirelayer.co/api-docs/errors.md): The error format of the HireLayer API, every error code, and when to retry a call. - [Webhooks](https://hirelayer.co/api-docs/webhooks.md): Receive the result of a long parse or scoring call on your own URL, signed with HMAC-SHA256. --- # Page: Webhooks > Receive the result of a long parse or scoring call on your own URL, signed with HMAC-SHA256. Source: https://hirelayer.co/api-docs/webhooks · Markdown: https://hirelayer.co/api-docs/webhooks.md Send `webhook_url` with `POST /api/v4/resumes/parse` or `POST /api/v4/resumes/score` and the call answers `202` at once with a `request_id`; the result is then posted to that URL, signed. With storage, a scoring call past 10 files or 50 resumes answers `202` even without a webhook: read its scores at `results_url`. Without storage, such a call needs `webhook_url` (`400 invalid_request` otherwise). | Event | Sent when | | --- | --- | | `resume.parsed` | A parse sent with `webhook_url` succeeded: `data` is the parse. | | `resume.parse_failed` | It failed: `error` says why. Nothing was billed. | | `scores.completed` | Every resume of a scoring call is evaluated or failed: `data` is the scoring result. | | `scores.failed` | A call without storage failed as a whole after the `202` (job file unreadable, credits run out while its files were parsed, analysis unavailable): `error` says why. Its evaluations were not billed; its resume files already parsed were, 1 credit each. | ## Delivery - A `POST` with a JSON body. Answer with any `2xx` within 10 seconds; other answers and timeouts are retried with backoff for 24 hours, each retry signed again. - Deduplicate on `event_id`: it is the same on every retry. Match the event to its call with `request_id`, the one the `202` returned. - Without storage, the event is the only copy of the result: it is deleted once delivered, or after the last retry. - The URL must be HTTPS on the standard port (443), without credentials, and reach a public address: any other URL is refused at once (`400 invalid_request`, `param: webhook_url`). ## Verify the signature Every delivery carries the `HireLayer-Signature` header. `t=,v1=.">`, keyed with the account's webhook secret: the string shown in the dashboard (`whsec_…`), used as is, as UTF-8 bytes. Compare in constant time and reject a `t` more than 5 minutes old: every retry is signed again with a new `t`. For 24 hours after a rotation in the dashboard, the header carries one `v1` per secret, such as `t=1793054400,v1=5f2c…,v1=9ab0…`; accept the call if one matches. **Python** ```python # Verify a HireLayer webhook before trusting it. body: the raw bytes of the request. import hashlib import hmac import os import time SECRET = os.environ["HIRELAYER_WEBHOOK_SECRET"] # whsec_…, from the dashboard def verify(signature_header: str, body: bytes) -> bool: pairs = [part.split("=", 1) for part in signature_header.split(",")] timestamp = next((value for key, value in pairs if key == "t"), None) if timestamp is None or time.time() - int(timestamp) > 300: return False signed = timestamp.encode() + b"." + body expected = hmac.new(SECRET.encode(), signed, hashlib.sha256).hexdigest() return any(key == "v1" and hmac.compare_digest(value, expected) for key, value in pairs) ``` **TypeScript** ```typescript // Verify a HireLayer webhook before trusting it. body: the raw bytes of the request. import { createHmac, timingSafeEqual } from 'node:crypto' const SECRET = process.env.HIRELAYER_WEBHOOK_SECRET! // whsec_…, from the dashboard export function verify(signatureHeader: string, body: Buffer) { const pairs = signatureHeader.split(',').map((part) => part.split('=')) const timestamp = pairs.find(([key]) => key === 't')?.[1] if (!timestamp || Date.now() / 1000 - Number(timestamp) > 300) return false const expected = createHmac('sha256', SECRET) .update(`${timestamp}.`) .update(body) .digest() return pairs.some(([key, value]) => { const candidate = Buffer.from(value ?? '', 'hex') return key === 'v1' && candidate.length === expected.length && timingSafeEqual(candidate, expected) }) } ``` The secret is shown, and rotated, in [Dashboard → API keys](https://hirelayer.co/dashboard/api-keys). A rotation less than 24 hours after the previous one stops at once the secret that one replaced. Verify the raw body, before parsing it as JSON. ## Parse events Posted once the parse ends, successful or not. With `output_format=hrflow`, `data` is the `201` body in HrFlow.ai's format. Check the `HireLayer-Signature` header before trusting the body. Answer with any 2xx within 10 seconds; other answers and timeouts are retried with backoff for 24 hours, each retry signed again. Deduplicate on `event_id`. | Field | Type | Description | | --- | --- | --- | | `event_id` | `string` | Unique per event, the same on every retry. | | `event` | `string` | One of: `"resume.parsed"`, `"resume.parse_failed"`. | | `created_at` | `string (date-time)` | | | `request_id` | `string` | The `request_id` of the `202`. | | `workspace` | `string` | | | `data` | `ParseResult` | The answer of [`POST /resumes/parse`](https://hirelayer.co/api-docs/parse-resume.md). | | `error` | `object` | | | `error.code` | `string` | Stable codes: branch on them, never on `message`. `method_not_allowed` answers a method a path does not take (`405`, with an `Allow` header), outside any operation. One of: `"invalid_request"`, `"storage_required"`, `"missing_api_key"`, `"invalid_api_key"`, `"insufficient_credits"`, `"enterprise_plan_required"`, `"not_found"`, `"payload_too_large"`, `"resume_unreadable"`, `"job_unreadable"`, `"rate_limited"`, `"model_unavailable"`, `"internal_error"`, `"method_not_allowed"`. | | `error.message` | `string` | Readable explanation, for logs. | | `error.param` | `string` | The field or parameter at fault, when there is one, such as `job.criteria` or `resumes[2].file`. | | `error.doc_url` | `string (URL)` | | ## Scoring events Posted once every resume of the call is evaluated or failed. Check the `HireLayer-Signature` header before trusting the body, and match it to its call with `request_id`. Answer with any 2xx within 10 seconds; other answers and timeouts are retried with backoff for 24 hours, each retry signed again. Deduplicate on `event_id`. Without storage this is the only copy of the result: it is deleted once delivered, or after the last retry. | Field | Type | Description | | --- | --- | --- | | `event_id` | `string` | Unique per event, the same on every retry. | | `event` | `string` | One of: `"scores.completed"`, `"scores.failed"`. | | `created_at` | `string (date-time)` | | | `request_id` | `string` | The `request_id` of the `202`. | | `workspace` | `string` | | | `data` | `ScoreResult` | The answer of [`POST /resumes/score`](https://hirelayer.co/api-docs/score.md). | | `error` | `object` | With `scores.failed` only: why the whole call failed after the `202` (model unavailable, credits run out while the files were parsed). Its evaluations were not billed; without storage, its resume files already parsed were, 1 credit each. | | `error.code` | `string` | Stable codes: branch on them, never on `message`. `method_not_allowed` answers a method a path does not take (`405`, with an `Allow` header), outside any operation. One of: `"invalid_request"`, `"storage_required"`, `"missing_api_key"`, `"invalid_api_key"`, `"insufficient_credits"`, `"enterprise_plan_required"`, `"not_found"`, `"payload_too_large"`, `"resume_unreadable"`, `"job_unreadable"`, `"rate_limited"`, `"model_unavailable"`, `"internal_error"`, `"method_not_allowed"`. | | `error.message` | `string` | Readable explanation, for logs. | | `error.param` | `string` | The field or parameter at fault, when there is one, such as `job.criteria` or `resumes[2].file`. | | `error.doc_url` | `string (URL)` | | ## Next - [HireLayer Resume Scorer](https://hirelayer.co/api-docs/score.md): HireLayer Resume Scorer matches candidates to a job description, ranks them and explains each score criterion by criterion, with evidence from the resume. - [Errors and retries](https://hirelayer.co/api-docs/errors.md): The error format of the HireLayer API, every error code, and when to retry a call. --- # Page: HireLayer Resume Parser > Resume parser API reference: send a PDF, Word or image resume in one multipart request and get the candidate back as JSON, photo included, in 70 languages. Source: https://hirelayer.co/api-docs/parse-resume · Markdown: https://hirelayer.co/api-docs/parse-resume.md The HireLayer Resume Parser is a resume parsing REST API for developers. One multipart `POST /api/v4/resumes/parse` request with an `X-API-Key` header returns the candidate as JSON in the same HTTP response, under `resume`. It reads 15 file formats, scans and phone photos included, in 70 languages, for 1 credit per resume; the same file sent again is answered from storage for free. The [Free plan](https://hirelayer.co/auth/signup) includes 50 credits a month with no card. > **Legacy: Already on the v3 or v2 parser?.** The [v3 parser](https://hirelayer.co/api-docs/legacy-parsers.md#parse-resume-v3) (`POST /api/v3/parser`) and the [v2 parser](https://hirelayer.co/api-docs/legacy-parsers.md#parse-resume-v2) (`POST /api/v2/parser`) keep working with their JSON unchanged. Their reference, and what changes in v4, are on the [legacy parsers](https://hirelayer.co/api-docs/legacy-parsers.md) page. New integrations use the v4 endpoint below. - `info_candidate`: name, lower-cased email, E.164 phone number, location with coordinates, LinkedIn and GitHub URLs, job title, highest EQF education level and experience bracket. - `work_experiences` and `educations`: every position and diploma with normalized dates, contract type and location. - `languages`: each language with a CEFR-based level such as `Professional Working Proficiency (B2)`. - `skills`: typed as `Hard skill`, `Soft skill` or `Software skill`, and resolved to the [HireLayer skills taxonomy](https://hirelayer.co/api-docs/skills.md) when a match exists. - `info_resume`: the candidate photo cropped from the resume (`face_url`), the full extracted text and the resume language. The parse is stored in the [resume database](https://hirelayer.co/api-docs/resumes.md) of the workspace under its `application_id`: score it with the [Resume Scorer](https://hirelayer.co/api-docs/score.md) or find it with [Talent Pool Search](https://hirelayer.co/api-docs/search-resumes.md) without sending the file again. - **Endpoint:** `POST /api/v4/resumes/parse` - **Input:** `multipart/form-data` · 15 file formats · 4.5 MB max - **Output:** JSON, usually in 25 to 35 seconds - **Price:** 1 credit; 0 when the file is already stored - **Legacy versions:** [v3](https://hirelayer.co/api-docs/legacy-parsers.md#parse-resume-v3) and [v2](https://hirelayer.co/api-docs/legacy-parsers.md#parse-resume-v2), for existing integrations ## Parse a resume `POST https://hirelayer.co/api/v4/resumes/parse` Reads a resume file and returns it structured, stored in the workspace under an `application_id`. - **Authentication:** `X-API-Key` header - **Content type:** `multipart/form-data` - **Billing:** 1 credit; 0 when the file is already stored - **Client timeout:** at least 150 seconds ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | ### Query parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `output_format` | `string` | No | `hirelayer` (default) answers `200` with `ParseResult`. `hrflow` answers `201` with `HrFlowParseResult`, the body of HrFlow.ai's resume parsing, and errors in HrFlow.ai's shape. One of: `"hirelayer"`, `"hrflow"`. Default `"hirelayer"`. | ### Request body | Field | Type | Required | Description | | --- | --- | --- | --- | | `file` | `file` | Yes | PDF, DOC, DOCX, ODT, PPT, PPTX, ODP, XLS, RTF, TXT, HTML, Markdown, JPG/JPEG, PNG or BMP, 4.5 MB at most. | | `application_id` | `string` | No | Letters, digits and `. _ : ~ -`, up to 200 characters. | | `do_not_store_data` | `boolean` | No | Enterprise plan only, else `403 enterprise_plan_required`: process without storing anything. See [Storage](https://hirelayer.co/api-docs/authentication.md#storage). Default `false`. | | `webhook_url` | `string (URL)` | No | HTTPS URL on the standard port, without credentials, that receives the result, signed. | ### Example request **cURL** ```bash curl -X POST https://hirelayer.co/api/v4/resumes/parse \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -F "file=@resume.pdf;type=application/pdf" ``` **Python** ```python import os import requests with open("resume.pdf", "rb") as file: response = requests.post( "https://hirelayer.co/api/v4/resumes/parse", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, files={"file": ("resume.pdf", file, "application/pdf")}, timeout=150, ) response.raise_for_status() data = response.json() print(data["resume"]["info_candidate"]) ``` **TypeScript** ```typescript import { readFile } from 'node:fs/promises' const form = new FormData() form.append( 'file', new Blob([await readFile('resume.pdf')], { type: 'application/pdf' }), 'resume.pdf' ) const response = await fetch('https://hirelayer.co/api/v4/resumes/parse', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, body: form, signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.resume.info_candidate) ``` ### Response `200` Parsed (or found already stored). | Field | Type | Description | | --- | --- | --- | | `application_id` | `string \| null` | The resume's id in the workspace, yours or derived from the file. `null` without storage. | | `request_id` | `string` | Quote it when contacting support. | | `stored` | `boolean` | | | `already_stored` | `boolean` | The same file was already stored; it was not parsed again. | | `resume` | `ParsedResume` | The resume, with the fields and values of the legacy `/api/v3/parser` JSON. Only the envelope differs: `application_id` is at the top level of the v4 response, and `status` and `errors` give way to HTTP status codes. | | `resume.info_resume` | `ResumeInfo` | The document. | | `resume.info_resume.date_parsing` | `string` | Parsing time in UTC, `YYYY-MM-DDTHH:mm:ss`, without a zone suffix. | | `resume.info_resume.language` | `string \| null` | Main language of the resume, uppercase ISO 639-1 code such as `EN` or `FR`. | | `resume.info_resume.url` | `string \| null` | URL of the stored original file. Anyone with the link can open it. `null` with `do_not_store_data=true`, because the file is not stored. | | `resume.info_resume.face_url` | `string \| null` | Candidate photo cropped from the resume. `null` when no face is found and for `.txt` files. | | `resume.info_resume.face_url_expires_at` | `string \| null` | With `do_not_store_data=true`: expiry of the temporary `face_url`, 10 minutes after parsing, UTC `YYYY-MM-DDTHH:mm:ss`. Otherwise `null` and `face_url` does not expire. | | `resume.info_resume.text` | `string` | Full extracted text, including OCR. May end with `[EXTRACTED_HYPERLINKS]` and `[PDF_ANNOTATION_TEXTS]` sections. | | `resume.info_candidate` | `Candidate` | The candidate profile. | | `resume.info_candidate.full_name` | `string \| null` | First and last name. | | `resume.info_candidate.last_name` | `string \| null` | Last name. | | `resume.info_candidate.first_name` | `string \| null` | First name. | | `resume.info_candidate.email` | `string \| null` | Lower-cased email address. | | `resume.info_candidate.phone_number` | `string \| null` | E.164 phone number, e.g. `+33612345678`. The country is inferred from the resume, France by default. A number written in the resume that is not valid for its country is still returned, in E.164 when its length fits, otherwise as written, with a warning. | | `resume.info_candidate.birth_date` | `string \| null` | Date of birth, `YYYY-MM-DD`. A year alone becomes `YYYY-01-01`. | | `resume.info_candidate.age` | `number \| null` | Age in years, as stated or inferred. | | `resume.info_candidate.availability_now` | `boolean \| null` | Whether the candidate is available now. | | `resume.info_candidate.availability_date` | `string \| null` | Date from which the candidate is available, `YYYY-MM-DD`. | | `resume.info_candidate.driver_license` | `string[]` | Driving licences as written, e.g. `Driving licence B`. | | `resume.info_candidate.job_title` | `string \| null` | Target or current job title. Falls back to the most recent position. | | `resume.info_candidate.education_name` | `string \| null` | Highest qualification relevant to the job title. | | `resume.info_candidate.education_level` | `string \| null` | Highest European Qualifications Framework (EQF) level. One of: `"Level 1"`, `"Level 2"`, `"Level 3"`, `"Level 4"`, `"Level 5"`, `"Level 6"`, `"Level 7"`, `"Level 8"`, `"Other"`. | | `resume.info_candidate.experience_level` | `string \| null` | Total professional experience bracket. One of: `"0 to 1 year"`, `"1 to 3 years"`, `"3 to 5 years"`, `"5 to 10 years"`, `"More than 10 years"`. | | `resume.info_candidate.linkedin_url` | `string \| null` | LinkedIn profile URL. | | `resume.info_candidate.github_url` | `string \| null` | GitHub profile URL. | | `resume.info_candidate.other_urls` | `string[]` | Other URLs in the resume (portfolio, website…). | | `resume.info_candidate.location` | `Location` | Where the candidate lives. | | `resume.info_candidate.location.country` | `string \| null` | Country name. | | `resume.info_candidate.location.country_code` | `string \| null` | ISO 3166-1 alpha-2 country code, e.g. `FR`. | | `resume.info_candidate.location.region` | `string \| null` | Region. | | `resume.info_candidate.location.department` | `string \| null` | Department or county. | | `resume.info_candidate.location.city` | `string \| null` | City. | | `resume.info_candidate.location.postal_code` | `string \| null` | Postal code. | | `resume.info_candidate.location.full_address` | `string \| null` | Address as a single line. | | `resume.info_candidate.location.latitude` | `number \| null` | Latitude from geocoding. | | `resume.info_candidate.location.longitude` | `number \| null` | Longitude from geocoding. | | `resume.info_candidate.mobility` | `Mobility` | Where else the candidate can work. | | `resume.info_candidate.mobility.can_work_in_other_cities` | `boolean \| null` | Whether the resume says the candidate can work elsewhere. `null` when not mentioned. | | `resume.info_candidate.mobility.other_cities` | `MobilityCity[]` | Cities explicitly named as possible work locations. | | `resume.info_candidate.mobility.other_cities[].city` | `string \| null` | City named in the resume. | | `resume.info_candidate.mobility.other_cities[].country` | `string \| null` | Country, when stated or reliably inferred. | | `resume.info_candidate.mobility.other_cities[].postal_code` | `string \| null` | Postal code, when present in the resume. | | `resume.info_candidate.mobility.other_cities[].latitude` | `number \| null` | Latitude from geocoding. | | `resume.info_candidate.mobility.other_cities[].longitude` | `number \| null` | Longitude from geocoding. | | `resume.work_experiences` | `WorkExperience[]` | | | `resume.work_experiences[].company_name` | `string \| null` | Employer name. | | `resume.work_experiences[].job_title` | `string \| null` | Job title for this position. | | `resume.work_experiences[].description` | `string \| null` | Tasks, responsibilities and achievements. | | `resume.work_experiences[].contract_type` | `string \| null` | Canonical contract type. Unrecognized values become `Other`. One of: `"Permanent contract"`, `"Fixed-term contract"`, `"Temporary assignment"`, `"Internship"`, `"Apprenticeship"`, `"Freelance"`, `"Volunteering"`, `"Other"`. | | `resume.work_experiences[].start_date` | `string \| null` | Start date, `YYYY-MM-DD`. A year alone becomes `YYYY-01-01`; a month alone, its first day. | | `resume.work_experiences[].end_date` | `string \| null` | End date, `YYYY-MM-DD`. `null` for an ongoing role. A year alone becomes `YYYY-12-31`; a month alone, its last day. | | `resume.work_experiences[].currently_active` | `boolean \| null` | Whether this is a current position. | | `resume.work_experiences[].work_experience_country` | `string \| null` | Country of the position. | | `resume.work_experiences[].work_experience_country_code` | `string \| null` | ISO 3166-1 alpha-2 country code. | | `resume.work_experiences[].work_experience_city` | `string \| null` | City of the position. | | `resume.work_experiences[].work_experience_postal_code` | `string \| null` | Postal code of the position. | | `resume.work_experiences[].experience_duration` | `number \| null` | Duration of this position in months, as extracted. | | `resume.educations` | `Education[]` | | | `resume.educations[].degree_title` | `string \| null` | Name of the degree or programme. | | `resume.educations[].school_name` | `string \| null` | School or institution. | | `resume.educations[].description` | `string \| null` | Details of the programme. | | `resume.educations[].degree_type` | `string \| null` | EQF level of the degree, expected to be one of `Level 1`…`Level 8` or `Other`. Not normalized: treat other strings as `Other`. | | `resume.educations[].start_date` | `string \| null` | Start date, `YYYY-MM-DD`. | | `resume.educations[].end_date` | `string \| null` | End date, `YYYY-MM-DD`. | | `resume.educations[].currently_active` | `boolean \| null` | Whether the programme is in progress. | | `resume.educations[].location` | `EducationLocation` | Location of the school. | | `resume.educations[].location.country` | `string \| null` | Country name. | | `resume.educations[].location.country_code` | `string \| null` | ISO 3166-1 alpha-2 country code, e.g. `FR`. | | `resume.educations[].location.region` | `string \| null` | Region. | | `resume.educations[].location.department` | `string \| null` | Department or county. | | `resume.educations[].location.city` | `string \| null` | City. | | `resume.educations[].location.postal_code` | `string \| null` | Postal code. | | `resume.educations[].location.full_address` | `string \| null` | Address as a single line. | | `resume.rome_jobs` | `RomeJob[]` | Occupations predicted from `info_candidate.job_title` with the French ROME taxonomy. | | `resume.rome_jobs[].job_title` | `string` | Occupation label, in French. | | `resume.rome_jobs[].job_code` | `string` | Occupation (appellation) code. | | `resume.rome_jobs[].rome_title` | `string` | ROME job family label, in French. | | `resume.rome_jobs[].rome_code` | `string` | ROME code, e.g. `M1805`. | | `resume.rome_jobs[].prediction_score` | `number` | Confidence between 0.7 and 1. | | `resume.languages` | `Language[]` | | | `resume.languages[].language` | `string` | Language name as written in the resume. | | `resume.languages[].level` | `string \| null` | CEFR-based proficiency, or `null` when not stated. One of: `"Native or Bilingual (C2)"`, `"Full Professional Proficiency (C1)"`, `"Professional Working Proficiency (B2)"`, `"Limited Working Proficiency (B1)"`, `"Advanced Basic Proficiency (A2)"`, `"Introductory Proficiency (A1)"`. | | `resume.skills` | `Skill[]` | | | `resume.skills[].skill_title` | `string` | Taxonomy skill name when `status` is `normalized`: in French for a resume in French, in English for a resume in any other language. Otherwise the text from the resume. One resume skill can give several normalized skills (`Word/Excel`). | | `resume.skills[].skill_type` | `string` | One of: `"Hard skill"`, `"Soft skill"`, `"Software skill"`. | | `resume.skills[].status` | `string` | `normalized`: resolved to the [HireLayer Skills taxonomy](https://hirelayer.co/api-docs/skills.md). `raw`: kept as written in the resume. One of: `"normalized"`, `"raw"`. | | `resume.skills[].domain` | `string \| null` | Primary domain of the taxonomy skill, in the language of `skill_title`. `null` when `status` is `raw`. | | `resume.skills[].subcategory` | `string \| null` | Primary family of the taxonomy skill, in the language of `skill_title`. `null` when `status` is `raw`. | | `resume.certifications` | `string[]` | | | `resume.interests` | `string[]` | | | `warnings` | `string[]` | Notes about skipped steps (OCR, photo, geocoding, occupation codes) or about a document that may not be a resume. | | `credits_used` | `integer` | Credits this call cost. ≥ 0. | ```json { "application_id": "file_d7e21d373637a897b17b8fdf63122807", "request_id": "8a4adbed-13fe-42cb-a5d5-5b1890b4dd81", "stored": true, "already_stored": false, "resume": { "info_resume": { "date_parsing": "2026-10-29T12:41:55", "language": "EN", "url": "https://files.hirelayer.co/originals/elias-moreau-resume.pdf", "face_url": "https://files.hirelayer.co/faces/elias-moreau-resume-face.jpg", "face_url_expires_at": null, "text": "AI ENGINEER\n\nFull-stack developer · Freelance\n\nEXPERIENCE\n2024-25\n\nAI ENGINEER - NOVALYS AI\nBuilt a SaaS platform with several generative AI features.\nOwned the product end to end: backend, cloud infrastructure,\nmodel orchestration and usage monitoring.\n- API stack (serverless AWS): API Gateway, Lambda, S3,\nDynamoDB, Terraform, Node.js\n- SaaS stack: Next.js, React, managed cloud server with Coolify\n(deployment, monitoring)\n- Cut the average latency of the main AI features by 50%…" }, "info_candidate": { "full_name": "Elias MOREAU", "last_name": "MOREAU", "first_name": "Elias", "email": "elias.moreau@example.com", "phone_number": "+33600000000", "birth_date": null, "age": null, "availability_now": true, "availability_date": null, "driver_license": [], "job_title": "AI Engineer", "education_name": "Engineering Degree, Big Data & AI", "education_level": "Level 7", "experience_level": "5 to 10 years", "linkedin_url": "https://linkedin.com/in/eliasmoreau", "github_url": "https://github.com/eliasmoreau", "other_urls": [], "location": { "country": "France", "country_code": "FR", "region": "Île-de-France", "department": "Paris", "city": "Paris", "postal_code": null, "full_address": "Paris, France", "latitude": 48.853495, "longitude": 2.348392 }, "mobility": { "can_work_in_other_cities": null, "other_cities": [] } }, "work_experiences": [ { "company_name": "Novalys AI", "job_title": "AI Engineer", "description": "Built a SaaS platform with several generative AI features. Owned the product end to end: backend, cloud infrastructure, model orchestration and usage monitoring. API stack (serverless AWS): API Gateway, Lambda, S3, DynamoDB, Terraform, Node.js. SaaS stack: Next.js, React, managed cloud server with Coolify (deployment, monitoring). Cut the average latency of the main AI features by 50%. Scalable solution, 500k+ documents processed.", "contract_type": null, "start_date": "2024-01-01", "end_date": "2025-12-31", "currently_active": false, "work_experience_country": "France", "work_experience_country_code": "FR", "work_experience_city": null, "work_experience_postal_code": null, "experience_duration": 24 }, { "company_name": "COP1", "job_title": "Network Director", "description": "Governance and volunteer leadership of a nonprofit helping young people and students, present in 27 cities. Managed €3M annual budget, 25 employees, 130,000 food parcels a year. Built a custom ERP web app (Next.js) with AI to manage stock, supply, vehicle tracking and volunteers. Network growth: from 20 → 27 branches. Volunteer growth: from 3,000 → 5,000 members.", "contract_type": null, "start_date": "2024-01-01", "end_date": "2025-12-31", "currently_active": false, "work_experience_country": "France", "work_experience_country_code": "FR", "work_experience_city": null, "work_experience_postal_code": null, "experience_duration": 24 } ], "educations": [ { "degree_title": "Engineering Degree, Big Data & AI", "school_name": "EFREI", "description": null, "degree_type": "Level 7", "start_date": "2020-01-01", "end_date": "2025-12-31", "currently_active": false, "location": { "country": null, "country_code": null, "region": null, "department": null, "city": null, "postal_code": null, "full_address": null } } ], "rome_jobs": [], "languages": [ { "language": "French", "level": "Native or Bilingual (C2)" }, { "language": "English", "level": "Full Professional Proficiency (C1)" } ], "skills": [ { "skill_title": "Python", "skill_type": "Software skill", "status": "normalized", "domain": "Software Development", "subcategory": "Programming languages" }, { "skill_title": "Next.js", "skill_type": "Software skill", "status": "normalized", "domain": "Software Development", "subcategory": "Frontend development" }, { "skill_title": "Vue.js", "skill_type": "Software skill", "status": "normalized", "domain": "Software Development", "subcategory": "Frontend development" }, { "skill_title": "React", "skill_type": "Software skill", "status": "normalized", "domain": "Software Development", "subcategory": "Frontend development" }, { "skill_title": "Node.js", "skill_type": "Software skill", "status": "normalized", "domain": "Software Development", "subcategory": "Backend development" } ], "certifications": [ "Azure - Data Scientist Associate", "Hugging Face - Deep RL Certification", "AWS - Cloud Practitioner" ], "interests": [ "Sports", "Travel", "Running", "Long-distance", "8 countries visited solo", "Trail" ] }, "warnings": [], "credits_used": 1 } ``` ### Response `201` Parsed, in HrFlow.ai's format. Sent with `output_format=hrflow`. | Field | Type | Description | | --- | --- | --- | | `code` | `integer` | Value: `201`. | | `message` | `string` | | | `data` | `object` | | | `data.parsing` | `object` | HrFlow.ai's parsing object. | | `data.profile` | `object` | HrFlow.ai's Profile object. `key` is the resume's `application_id` (the `request_id` without storage), `reference` the `application_id` you sent, `source_key` the workspace when you send `HireLayer-Workspace`. | ```json { "code": 201, "message": "Profile parsed successfully.", "data": { "parsing": { "key": "file_d7e21d373637a897b17b8fdf63122807", "content_uid": null, "file_name": "resume.pdf", "file_size": null, "processed_pages": null, "total_pages": null, "text_language": "en", "text": "AI ENGINEER\n\nFull-stack developer · Freelance\n\nEXPERIENCE\n2024-25\n\nAI ENGINEER - NOVALYS AI\nBuilt a SaaS platform with several generative AI features.\nOwned the product end to end: backend, cloud infrastructure,\nmodel orchestration and usage monitoring.\n- API stack (serverless AWS): API Gateway, Lambda, S3,\nDynamoDB, Terraform, Node.js\n- SaaS stack: Next.js, React, managed cloud server with Coolify\n(deployment, monitoring)\n- Cut the average latency of the main AI features by 50%…", "persons": [ { "first_name": "Elias", "full_name": "Elias MOREAU", "last_name": "MOREAU" } ], "emails": [ "elias.moreau@example.com" ], "phones": [ "+33600000000" ], "urls": [ { "type": "linkedin", "url": "https://linkedin.com/in/eliasmoreau" }, { "type": "github", "url": "https://github.com/eliasmoreau" } ], "date_birth": { "iso8601": null, "text": null, "timestamp": null }, "gender": null, "driving_license": null, "location": { "text": "Paris, France", "lat": 48.853495, "lng": 2.348392, "gmaps": "https://www.google.com/maps/place/48.853495,2.348392", "fields": { "category": null, "city": "Paris", "city_district": null, "country": "FRA", "country_region": null, "entrance": null, "house": null, "house_number": null, "island": null, "level": null, "near": null, "po_box": null, "postcode": null, "road": null, "staircase": null, "state": "Île-de-France", "state_district": "Paris", "suburb": null, "text": "Paris, France", "unit": null, "world_region": null } }, "picture": "https://files.hirelayer.co/faces/elias-moreau-resume-face.jpg", "images": null, "summary": null, "experiences": [ { "content_uid": null, "company": "Novalys AI", "logo": null, "title": "AI Engineer", "description": "Built a SaaS platform with several generative AI features. Owned the product end to end: backend, cloud infrastructure, model orchestration and usage monitoring. API stack (serverless AWS): API Gateway, Lambda, S3, DynamoDB, Terraform, Node.js. SaaS stack: Next.js, React, managed cloud server with Coolify (deployment, monitoring). Cut the average latency of the main AI features by 50%. Scalable solution, 500k+ documents processed.", "location": { "text": "France", "lat": null, "lng": null, "gmaps": null, "fields": { "category": null, "city": null, "city_district": null, "country": "FRA", "country_region": null, "entrance": null, "house": null, "house_number": null, "island": null, "level": null, "near": null, "po_box": null, "postcode": null, "road": null, "staircase": null, "state": null, "state_district": null, "suburb": null, "text": "France", "unit": null, "world_region": null } }, "date_start": { "iso8601": "2024-01-01T00:00:00", "text": null, "timestamp": 1704067200 }, "date_end": { "iso8601": "2025-12-31T00:00:00", "text": null, "timestamp": 1767139200 }, "is_active": false, "skills": [], "certifications": [], "courses": [], "tasks": [], "languages": [], "interests": [] }, { "content_uid": null, "company": "COP1", "logo": null, "title": "Network Director", "description": "Governance and volunteer leadership of a nonprofit helping young people and students, present in 27 cities. Managed €3M annual budget, 25 employees, 130,000 food parcels a year. Built a custom ERP web app (Next.js) with AI to manage stock, supply, vehicle tracking and volunteers. Network growth: from 20 → 27 branches. Volunteer growth: from 3,000 → 5,000 members.", "location": { "text": "France", "lat": null, "lng": null, "gmaps": null, "fields": { "category": null, "city": null, "city_district": null, "country": "FRA", "country_region": null, "entrance": null, "house": null, "house_number": null, "island": null, "level": null, "near": null, "po_box": null, "postcode": null, "road": null, "staircase": null, "state": null, "state_district": null, "suburb": null, "text": "France", "unit": null, "world_region": null } }, "date_start": { "iso8601": "2024-01-01T00:00:00", "text": null, "timestamp": 1704067200 }, "date_end": { "iso8601": "2025-12-31T00:00:00", "text": null, "timestamp": 1767139200 }, "is_active": false, "skills": [], "certifications": [], "courses": [], "tasks": [], "languages": [], "interests": [] } ], "experiences_duration": 2, "educations": [ { "content_uid": null, "school": "EFREI", "logo": null, "title": "Engineering Degree, Big Data & AI", "description": null, "location": { "text": null, "lat": null, "lng": null, "gmaps": null, "fields": { "category": null, "city": null, "city_district": null, "country": null, "country_region": null, "entrance": null, "house": null, "house_number": null, "island": null, "level": null, "near": null, "po_box": null, "postcode": null, "road": null, "staircase": null, "state": null, "state_district": null, "suburb": null, "text": null, "unit": null, "world_region": null } }, "date_start": { "iso8601": "2020-01-01T00:00:00", "text": null, "timestamp": 1577836800 }, "date_end": { "iso8601": "2025-12-31T00:00:00", "text": null, "timestamp": 1767139200 }, "is_active": false, "skills": [], "certifications": [], "courses": [], "tasks": [], "languages": [], "interests": [] } ], "educations_duration": 6.002739726027397, "skills": [ { "name": "python", "type": "hard", "value": null }, { "name": "next.js", "type": "hard", "value": null }, { "name": "vue.js", "type": "hard", "value": null }, { "name": "react", "type": "hard", "value": null }, { "name": "node.js", "type": "hard", "value": null } ], "languages": [ { "name": "french", "value": "Native or Bilingual (C2)" }, { "name": "english", "value": "Full Professional Proficiency (C1)" } ], "certifications": [ { "name": "azure - data scientist associate", "value": null }, { "name": "hugging face - deep rl certification", "value": null }, { "name": "aws - cloud practitioner", "value": null } ], "courses": [], "tasks": [], "interests": [ { "name": "sports", "value": null }, { "name": "travel", "value": null }, { "name": "running", "value": null }, { "name": "long-distance", "value": null }, { "name": "8 countries visited solo", "value": null }, { "name": "trail", "value": null } ] }, "profile": { "id": null, "source_key": null, "key": "file_d7e21d373637a897b17b8fdf63122807", "reference": "file_d7e21d373637a897b17b8fdf63122807", "consent_algorithmic": null, "source": null, "archive": null, "archived_at": null, "updated_at": "2026-10-29T12:41:55+0000", "created_at": "2026-10-29T12:41:55+0000", "info": { "full_name": "Elias MOREAU", "first_name": "Elias", "last_name": "MOREAU", "email": "elias.moreau@example.com", "phone": "+33600000000", "driving_license": null, "date_birth": null, "location": { "text": "Paris, France", "lat": 48.853495, "lng": 2.348392, "gmaps": "https://www.google.com/maps/place/48.853495,2.348392", "fields": { "category": null, "city": "Paris", "city_district": null, "country": "FRA", "country_region": null, "entrance": null, "house": null, "house_number": null, "island": null, "level": null, "near": null, "po_box": null, "postcode": null, "road": null, "staircase": null, "state": "Île-de-France", "state_district": "Paris", "suburb": null, "text": "Paris, France", "unit": null, "world_region": null } }, "urls": [ { "type": "linkedin", "url": "https://linkedin.com/in/eliasmoreau" }, { "type": "github", "url": "https://github.com/eliasmoreau" } ], "picture": "https://files.hirelayer.co/faces/elias-moreau-resume-face.jpg", "gender": null, "summary": null }, "text_language": "en", "text": "AI ENGINEER\n\nFull-stack developer · Freelance\n\nEXPERIENCE\n2024-25\n\nAI ENGINEER - NOVALYS AI\nBuilt a SaaS platform with several generative AI features.\nOwned the product end to end: backend, cloud infrastructure,\nmodel orchestration and usage monitoring.\n- API stack (serverless AWS): API Gateway, Lambda, S3,\nDynamoDB, Terraform, Node.js\n- SaaS stack: Next.js, React, managed cloud server with Coolify\n(deployment, monitoring)\n- Cut the average latency of the main AI features by 50%…", "experiences_duration": 2, "educations_duration": 6.002739726027397, "experiences": [ { "key": "c4b8053aa1a42ded208cc8dc6d22db502a3a7962", "company": "Novalys AI", "logo": null, "title": "AI Engineer", "description": "Built a SaaS platform with several generative AI features. Owned the product end to end: backend, cloud infrastructure, model orchestration and usage monitoring. API stack (serverless AWS): API Gateway, Lambda, S3, DynamoDB, Terraform, Node.js. SaaS stack: Next.js, React, managed cloud server with Coolify (deployment, monitoring). Cut the average latency of the main AI features by 50%. Scalable solution, 500k+ documents processed.", "location": { "text": "France", "lat": null, "lng": null, "gmaps": null, "fields": null }, "date_start": "2024-01-01T00:00:00", "date_end": "2025-12-31T00:00:00", "skills": [], "certifications": [], "courses": [], "tasks": [], "languages": [], "interests": [] }, { "key": "374b4057fccf33cd17fcfaaf9cbfc58b373e0ffe", "company": "COP1", "logo": null, "title": "Network Director", "description": "Governance and volunteer leadership of a nonprofit helping young people and students, present in 27 cities. Managed €3M annual budget, 25 employees, 130,000 food parcels a year. Built a custom ERP web app (Next.js) with AI to manage stock, supply, vehicle tracking and volunteers. Network growth: from 20 → 27 branches. Volunteer growth: from 3,000 → 5,000 members.", "location": { "text": "France", "lat": null, "lng": null, "gmaps": null, "fields": null }, "date_start": "2024-01-01T00:00:00", "date_end": "2025-12-31T00:00:00", "skills": [], "certifications": [], "courses": [], "tasks": [], "languages": [], "interests": [] } ], "educations": [ { "key": "f47ea757d25c1d9668378c880e307e4938e4c394", "school": "EFREI", "logo": null, "title": "Engineering Degree, Big Data & AI", "description": null, "location": { "text": null, "lat": null, "lng": null, "gmaps": null, "fields": null }, "date_start": "2020-01-01T00:00:00", "date_end": "2025-12-31T00:00:00", "skills": [], "certifications": [], "courses": [], "tasks": [], "languages": [], "interests": [] } ], "attachments": [ { "type": "original", "alt": null, "file_size": null, "file_name": "original", "original_file_name": "resume.pdf", "extension": ".pdf", "public_url": "https://files.hirelayer.co/originals/elias-moreau-resume.pdf", "updated_at": "2026-10-29T12:41:55+0000", "created_at": "2026-10-29T12:41:55+0000" } ], "skills": [ { "name": "python", "type": "hard", "value": null }, { "name": "next.js", "type": "hard", "value": null }, { "name": "vue.js", "type": "hard", "value": null }, { "name": "react", "type": "hard", "value": null }, { "name": "node.js", "type": "hard", "value": null } ], "languages": [ { "name": "french", "value": "Native or Bilingual (C2)" }, { "name": "english", "value": "Full Professional Proficiency (C1)" } ], "certifications": [ { "name": "azure - data scientist associate", "value": null }, { "name": "hugging face - deep rl certification", "value": null }, { "name": "aws - cloud practitioner", "value": null } ], "courses": [], "tasks": [], "interests": [ { "name": "sports", "value": null }, { "name": "travel", "value": null }, { "name": "running", "value": null }, { "name": "long-distance", "value": null }, { "name": "8 countries visited solo", "value": null }, { "name": "trail", "value": null } ], "labels": [], "tags": [ { "name": "job_title", "value": "AI Engineer" }, { "name": "education_name", "value": "Engineering Degree, Big Data & AI" }, { "name": "education_level", "value": "Level 7" }, { "name": "experience_level", "value": "5 to 10 years" }, { "name": "availability_now", "value": "true" } ], "ranges": [], "metadatas": [] } } } ``` ### Response `202` Accepted. Sent with `webhook_url`; the result is posted there. | Field | Type | Description | | --- | --- | --- | | `status` | `string` | Value: `"pending"`. | | `request_id` | `string` | | | `application_id` | `string \| null` | | | `webhook_url` | `string (URL)` | | ### With a webhook request With `webhook_url`, the call answers `202` at once and the result is posted to that URL, signed: see [Webhooks](https://hirelayer.co/api-docs/webhooks.md). **cURL** ```bash curl -X POST https://hirelayer.co/api/v4/resumes/parse \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -F "file=@resume.pdf;type=application/pdf" \ -F "webhook_url=https://example.com/webhooks/hirelayer" ``` **Python** ```python import os import requests with open("resume.pdf", "rb") as file: response = requests.post( "https://hirelayer.co/api/v4/resumes/parse", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, files={"file": ("resume.pdf", file, "application/pdf")}, data={ "webhook_url": "https://example.com/webhooks/hirelayer", }, timeout=150, ) response.raise_for_status() data = response.json() print(data["request_id"]) ``` **TypeScript** ```typescript import { readFile } from 'node:fs/promises' const form = new FormData() form.append( 'file', new Blob([await readFile('resume.pdf')], { type: 'application/pdf' }), 'resume.pdf' ) form.append('webhook_url', 'https://example.com/webhooks/hirelayer') const response = await fetch('https://hirelayer.co/api/v4/resumes/parse', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, body: form, signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.request_id) ``` ```json { "status": "pending", "request_id": "bbf29879-8b02-4b0d-8f66-59bfb2f87662", "application_id": "file_d7e21d373637a897b17b8fdf63122807", "webhook_url": "https://example.com/webhooks/hirelayer" } ``` ### In HrFlow.ai’s format request `?output_format=hrflow`: the same parse, credit and storage, answered `201` as HrFlow.ai’s resume parsing does, so code written for HrFlow.ai keeps reading it. See [Migrate from HrFlow.ai](https://hirelayer.co/api-docs/migrate-from-hrflow.md). **cURL** ```bash curl -X POST -g "https://hirelayer.co/api/v4/resumes/parse?output_format=hrflow" \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -F "file=@resume.pdf;type=application/pdf" ``` **Python** ```python import os import requests with open("resume.pdf", "rb") as file: response = requests.post( "https://hirelayer.co/api/v4/resumes/parse?output_format=hrflow", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, files={"file": ("resume.pdf", file, "application/pdf")}, timeout=150, ) response.raise_for_status() data = response.json() print(data["data"]["profile"]["info"]) ``` **TypeScript** ```typescript import { readFile } from 'node:fs/promises' const form = new FormData() form.append( 'file', new Blob([await readFile('resume.pdf')], { type: 'application/pdf' }), 'resume.pdf' ) const response = await fetch('https://hirelayer.co/api/v4/resumes/parse?output_format=hrflow', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, body: form, signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.data.profile.info) ``` The response is the `201` above. ### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `file is required: send the resume in the multipart part file.` | `param`: `file`. No part `file`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `Send the body as multipart/form-data, with the file in the part file.` | The body is not `multipart/form-data`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `Unknown field resume.` | `param`: `resume`. A part the call does not take. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `application_id cannot be score: that name is reserved for POST /api/v4/resumes/score.` | `param`: `application_id`. `application_id` is not a valid id, or is a name the paths reserve (`parse`, `score`, `search`). | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `webhook_url must be an https URL on the standard port, without credentials.` | `param`: `webhook_url`. `webhook_url` is not a public HTTPS URL. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `403` | [`insufficient_credits`](https://hirelayer.co/api-docs/errors.md#insufficient_credits) | `This call needs 1 credit and none is left. Nothing was processed or billed.` | No credit left for the parse. | Fix, then retry | | `403` | [`enterprise_plan_required`](https://hirelayer.co/api-docs/errors.md#enterprise_plan_required) | `do_not_store_data is available on the Enterprise plan only. Nothing was processed or billed.` | `param`: `do_not_store_data`. `do_not_store_data: true` below the Enterprise plan. | Do not retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `file must be 4.5 MB or less.` | `param`: `file`. The file is over 4.5 MB. | Fix, then retry | | `422` | [`resume_unreadable`](https://hirelayer.co/api-docs/errors.md#resume_unreadable) | `file cannot be read as a resume: it is empty, damaged or in an unsupported format. Nothing was billed.` | `param`: `file`. The file cannot be read as a resume. | Do not retry | | `429` | [`rate_limited`](https://hirelayer.co/api-docs/errors.md#rate_limited) | `Too many files are being parsed at once for this account: retry after the Retry-After delay.` | Too many parses at once. Headers: `Retry-After: `. | Retry with backoff | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`model_unavailable`](https://hirelayer.co/api-docs/errors.md#model_unavailable) | `The analysis did not complete after several attempts. Nothing was stored or billed: retry with backoff.` | The analysis did not complete. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "file is required: send the resume in the multipart part file.", "param": "file", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Behavior - **Credits:** 1. Sending a file already stored under the same id returns the stored resume with `already_stored: true` and costs 0. - **Updating a resume:** send the new file with the resume's `application_id` (yours or a derived one such as `file_…`). The new parse replaces the stored resume, and the resume's scores become `stale`: they stay readable and are evaluated again the next time the resume is sent to `POST /resumes/score`. - **Time:** about 25 to 35 seconds, 145 seconds at most; set a client timeout of 150 seconds. With `webhook_url`, the call answers `202` at once and the result is posted to that URL. - **Without storage (`do_not_store_data=true`):** `application_id` is `null`, `info_resume.url` is `null`, `face_url` is valid 10 minutes. With `webhook_url`, the `202` names no `application_id` either, and the result waits until it is delivered, 24 hours at most. - **HrFlow.ai format (`?output_format=hrflow`):** the same parse, credits and storage, answered `201` with the body of HrFlow.ai's resume parsing, so code written for HrFlow.ai keeps reading it. Errors keep their status, with an HrFlow.ai body: `{"code": , "message": …, "error_code": …}`. With `webhook_url`, the `202` is unchanged and the event's `data` is the HrFlow.ai body. See [Migrate from HrFlow.ai](https://hirelayer.co/api-docs/migrate-from-hrflow). ## Candidate photo Yes, the HireLayer resume parsing API also extracts the candidate’s photo. When a PDF, Word or image resume contains a photo, `resume.info_resume.face_url` links to the candidate’s face cropped from it as a separate image. There is no option to switch on and no extra credit: the photo comes with the same 1-credit parse. - `face_url` is `null` when no face is found, and always for `.txt` files. - A photo embedded in an HTML resume is returned the same way. - By default the image is stored and `face_url` does not expire. With `do_not_store_data=true` (Enterprise plan) it is a temporary link valid 10 minutes, until `face_url_expires_at`: download the image if you need to keep it. ## Scanned resumes and languages Yes, the HireLayer resume parser API handles scanned PDFs and resumes in multiple languages. A scanned PDF or a phone photo of a CV (JPG, PNG or BMP) is read with OCR and returns the same JSON as a text PDF, in any of the 70 supported languages, for the same single credit. There is no language parameter and no OCR option to switch on: send the file as it is. - Scans take longer than the usual 25 to 35 seconds; keep a client timeout of 150 seconds. - When no text can be read even with OCR, the call answers `422 resume_unreadable` and no credit is used. - `info_resume.language` gives the main language of the resume as an uppercase ISO 639-1 code such as `EN`, `FR` or `DE`. - Free-text values stay in the language of the resume, with no translation. ## Next - [HireLayer Resume Scorer](https://hirelayer.co/api-docs/score.md): HireLayer Resume Scorer matches candidates to a job description, ranks them and explains each score criterion by criterion, with evidence from the resume. - [HireLayer Job Criteria Extractor](https://hirelayer.co/api-docs/extract-criteria.md): HireLayer job description parsing API: send a job ad as text or a file and get its typed, weighted criteria back as JSON, for free. --- # Page: HireLayer Job Criteria Extractor > HireLayer job description parsing API: send a job ad as text or a file and get its typed, weighted criteria back as JSON, for free. Source: https://hirelayer.co/api-docs/extract-criteria · Markdown: https://hirelayer.co/api-docs/extract-criteria.md The HireLayer Job Criteria Extractor reads a job description and returns its criteria in one `POST /api/v4/jobs/extract-criteria` call: usually 4 to 10 and at most 15, each with a type, a requirement, a weight and, when the ad sets one, a threshold such as `3 years minimum` or `B2`. Send the job as text or as a PDF, DOCX, TXT or HTML file. It is free, except when a new text is sent under the `job_id` of a job already scored: its stored scores are evaluated again on the new criteria, 1 credit each. The job is stored under a `job_id`, and the [Resume Scorer](https://hirelayer.co/api-docs/score.md), [Talent Pool Search](https://hirelayer.co/api-docs/search-resumes.md) and [Job Recommendations](https://hirelayer.co/api-docs/search-jobs.md) reuse its criteria. | Field | Values | | --- | --- | | `type` | `skill`, `experience`, `education`, `language`, `certification`, `location`, `soft_skill`, `other` | | `requirement` | `required`, `preferred`, `bonus`. `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. | | `weight` | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. | | `threshold` | The minimum level the ad asks for, or `null`. | Criteria are written in the job’s language: send `language` (`en`, `fr`, `de`, `es` or `pt`) to choose it; left out, it is the language of the text, and English for a text in any other language. Only the requirements the text states become criteria, in its order: a short posting gives fewer than the usual 4 to 10, never invented ones, and a long one gives 15 at most: close requirements are grouped, and the 15 that weigh most are kept. The text holds at least 30 characters. Correct a criterion with [`PATCH /jobs/{job_id}/criteria/{criterion_id}`](https://hirelayer.co/api-docs/jobs.md#update-criterion): a weight, requirement or type change re-ranks the stored scores for free. A job text identical to the stored job returns the job as stored: `title`, `location` and `language` sent with it are ignored; change them with `PUT /jobs/{job_id}`. - **Endpoint:** `POST /api/v4/jobs/extract-criteria` - **Input:** JSON `text` (50,000 characters) or a job file - **Output:** The criteria and the `job_id` - **Price:** Free; 1 credit per stored score evaluated again when a new text replaces a stored job ## Extract job criteria `POST https://hirelayer.co/api/v4/jobs/extract-criteria` Reads a job description and returns the typed criteria it states (usually 4 to 10, fewer for a short posting: none is invented; at most 15), in the posting's order, the job stored under a `job_id`. A posting that states more requirements has its close ones grouped, and the 15 that weigh most are kept. The text holds at least 30 characters. - **Authentication:** `X-API-Key` header - **Content type:** `application/json`, or `multipart/form-data` with files - **Billing:** Free; 1 credit per stored score evaluated again when a new text replaces a stored job - **Client timeout:** at least 150 seconds - **The same text sent again** under the same id (or without an id) returns the stored job and its current criteria (`200`), without a new extraction; the call's `title`, `location` and `language` are then ignored: change them with `PUT /jobs/{job_id}`. A different text under an existing `job_id` replaces it and extracts the criteria again, as `PUT /jobs/{job_id}` with `recompute_criteria: true` would; its `title`, `location` and `status` stay as stored unless the call sends them. To extract again from the same text, use that `PUT`. ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | ### Request body | Field | Type | Required | Description | | --- | --- | --- | --- | | `text` | `string` | Yes | The full job description, as published. 30–50,000 characters. | | `title` | `string \| null` | No | ≤ 300 characters. | | `location` | `string \| null` | No | Where the job is based. Read by the extraction. ≤ 300 characters. | | `language` | `string` | No | Language of the job's criteria labels and thresholds, score summaries and explanations, and ranking reasons. Sent, it is kept; left out, it is the language of the job's text when the job is created, and `en` when that text is in another language or its language cannot be told. One of: `"en"`, `"fr"`, `"de"`, `"es"`, `"pt"`. | | `job_id` | `string` | No | Letters, digits and `. _ : ~ -`, up to 200 characters. | | `do_not_store_data` | `boolean` | No | Enterprise plan only, else `403 enterprise_plan_required`: process without storing anything. See [Storage](https://hirelayer.co/api-docs/authentication.md#storage). Default `false`. | ### Example request **cURL** ```bash curl -X POST https://hirelayer.co/api/v4/jobs/extract-criteria \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "AI Engineer / Backend Node.js Developer", "text": "AI Engineer / Backend Node.js Developer\nLumio · Paris 9e · Permanent · Hybrid (2 days of remote work a week)\n- At least 3 years of backend development with Node.js / TypeScript\n- Hands-on experience integrating LLMs in production is required\n- You know AWS well (Lambda, S3, DynamoDB); an AWS certification is a plus\n- Fluent English (B2 minimum) is required" }' ``` **Python** ```python import os import requests response = requests.post( "https://hirelayer.co/api/v4/jobs/extract-criteria", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, json={ "title": "AI Engineer / Backend Node.js Developer", "text": "AI Engineer / Backend Node.js Developer\nLumio · Paris 9e · Permanent · Hybrid (2 days of remote work a week)\n- At least 3 years of backend development with Node.js / TypeScript\n- Hands-on experience integrating LLMs in production is required\n- You know AWS well (Lambda, S3, DynamoDB); an AWS certification is a plus\n- Fluent English (B2 minimum) is required", }, timeout=150, ) response.raise_for_status() data = response.json() print(data["criteria"]) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/jobs/extract-criteria', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, 'Content-Type': 'application/json', }, body: JSON.stringify({ title: 'AI Engineer / Backend Node.js Developer', text: 'AI Engineer / Backend Node.js Developer\nLumio · Paris 9e · Permanent · Hybrid (2 days of remote work a week)\n- At least 3 years of backend development with Node.js / TypeScript\n- Hands-on experience integrating LLMs in production is required\n- You know AWS well (Lambda, S3, DynamoDB); an AWS certification is a plus\n- Fluent English (B2 minimum) is required', }), signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.criteria) ``` ### Response `200` A job was already stored under this id. The same text returns its current criteria; another text replaces it and its criteria are extracted again. | Field | Type | Description | | --- | --- | --- | | `request_id` | `string` | The call's id, also in the `HireLayer-Request-Id` header. Quote it when contacting support. | | `job_id` | `string \| null` | `null` without storage. | | `stored` | `boolean` | | | `title` | `string \| null` | | | `location` | `string \| null` | | | `language` | `string` | Language of the job's criteria labels and thresholds, score summaries and explanations, and ranking reasons. Sent, it is kept; left out, it is the language of the job's text when the job is created, and `en` when that text is in another language or its language cannot be told. One of: `"en"`, `"fr"`, `"de"`, `"es"`, `"pt"`. | | `criteria` | `object[]` | Usually 4 to 10, at most 15, numbered `crit_1`, `crit_2`… in order. 1–15 items. | | `criteria[].criterion_id` | `string` | Stable id in the job, such as `crit_2`. Never reused. | | `criteria[].label` | `string` | | | `criteria[].type` | `string` | One of: `"skill"`, `"experience"`, `"education"`, `"language"`, `"certification"`, `"location"`, `"soft_skill"`, `"other"`. | | `criteria[].requirement` | `string` | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `criteria[].weight` | `integer` | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `criteria[].threshold` | `string \| null` | | | `criteria[].source` | `string` | `extracted` by HireLayer, or `custom`: sent or edited by you. One of: `"extracted"`, `"custom"`. | | `credits_used` | `integer` | Credits this call cost. ≥ 0. | ### Response `201` Job created and criteria extracted. | Field | Type | Description | | --- | --- | --- | | `request_id` | `string` | The call's id, also in the `HireLayer-Request-Id` header. Quote it when contacting support. | | `job_id` | `string \| null` | `null` without storage. | | `stored` | `boolean` | | | `title` | `string \| null` | | | `location` | `string \| null` | | | `language` | `string` | Language of the job's criteria labels and thresholds, score summaries and explanations, and ranking reasons. Sent, it is kept; left out, it is the language of the job's text when the job is created, and `en` when that text is in another language or its language cannot be told. One of: `"en"`, `"fr"`, `"de"`, `"es"`, `"pt"`. | | `criteria` | `object[]` | Usually 4 to 10, at most 15, numbered `crit_1`, `crit_2`… in order. 1–15 items. | | `criteria[].criterion_id` | `string` | Stable id in the job, such as `crit_2`. Never reused. | | `criteria[].label` | `string` | | | `criteria[].type` | `string` | One of: `"skill"`, `"experience"`, `"education"`, `"language"`, `"certification"`, `"location"`, `"soft_skill"`, `"other"`. | | `criteria[].requirement` | `string` | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `criteria[].weight` | `integer` | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `criteria[].threshold` | `string \| null` | | | `criteria[].source` | `string` | `extracted` by HireLayer, or `custom`: sent or edited by you. One of: `"extracted"`, `"custom"`. | | `credits_used` | `integer` | Credits this call cost. ≥ 0. | ```json { "request_id": "777d8c7a-1929-4556-aef8-a2d78e3fbf1e", "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea", "stored": true, "title": "AI Engineer / Backend Node.js Developer", "location": null, "language": "en", "criteria": [ { "criterion_id": "crit_1", "label": "Engineering degree or Master's in Computer Science", "type": "education", "requirement": "preferred", "weight": 2, "threshold": "Master's level", "source": "extracted" }, { "criterion_id": "crit_2", "label": "Backend development with Node.js / TypeScript", "type": "skill", "requirement": "preferred", "weight": 3, "threshold": "3 years minimum", "source": "extracted" }, { "criterion_id": "crit_3", "label": "Integrating LLMs in production", "type": "skill", "requirement": "required", "weight": 3, "threshold": null, "source": "extracted" }, { "criterion_id": "crit_4", "label": "AWS (Lambda, S3, DynamoDB)", "type": "skill", "requirement": "preferred", "weight": 2, "threshold": null, "source": "extracted" }, { "criterion_id": "crit_5", "label": "AWS certification", "type": "certification", "requirement": "bonus", "weight": 1, "threshold": null, "source": "extracted" }, { "criterion_id": "crit_6", "label": "English", "type": "language", "requirement": "required", "weight": 2, "threshold": "B2 minimum", "source": "extracted" }, { "criterion_id": "crit_7", "label": "Leading developers", "type": "experience", "requirement": "bonus", "weight": 2, "threshold": null, "source": "extracted" }, { "criterion_id": "crit_8", "label": "On-call duty", "type": "other", "requirement": "required", "weight": 1, "threshold": "1 week every 6 weeks", "source": "extracted" }, { "criterion_id": "crit_9", "label": "Location", "type": "location", "requirement": "preferred", "weight": 1, "threshold": "Paris 9e, hybrid", "source": "extracted" } ], "credits_used": 0 } ``` ### From a file request Send the job description as a PDF, DOCX, TXT or HTML file in the multipart field `file`. **cURL** ```bash curl -X POST https://hirelayer.co/api/v4/jobs/extract-criteria \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -F "file=@job.pdf;type=application/pdf" ``` **Python** ```python import os import requests with open("job.pdf", "rb") as file: response = requests.post( "https://hirelayer.co/api/v4/jobs/extract-criteria", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, files={"file": ("job.pdf", file, "application/pdf")}, timeout=150, ) response.raise_for_status() data = response.json() print(data["criteria"]) ``` **TypeScript** ```typescript import { readFile } from 'node:fs/promises' const form = new FormData() form.append( 'file', new Blob([await readFile('job.pdf')], { type: 'application/pdf' }), 'job.pdf' ) const response = await fetch('https://hirelayer.co/api/v4/jobs/extract-criteria', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, body: form, signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.criteria) ``` The response is the `201` above. ### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `text must be 30 characters or more: send the job's full text.` | `param`: `text`. The text (or the text read in `file`) is under 30 characters. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `text or file is required.` | `param`: `text`. Neither `text` nor a file. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `title must be a string.` | `param`: `title`. `text`, `title`, `location`, `language` or `job_id` is not a string. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `language must be one of en, fr, de, es, pt.` | `param`: `language`. `language` is not `en`, `fr`, `de`, `es` or `pt`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `title must be 300 characters or less.` | `param`: `title`. `title` or `location` over 300 characters. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job_id cannot be search: that name is reserved for POST /api/v4/jobs/search.` | `param`: `job_id`. `job_id` is not a valid id, or is a name the paths reserve (`extract-criteria`, `search`). | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `Unknown field lang.` | `param`: `lang`. A field the call does not take. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `The request body is not valid JSON.` | The body is not valid JSON, not an object, or not sent as `application/json`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `403` | [`insufficient_credits`](https://hirelayer.co/api-docs/errors.md#insufficient_credits) | `This call evaluates 12 scores, 1 credit each: 12 credits, and 3 are left. Nothing was processed or billed.` | A new text replaces a stored job already scored, and the credits left do not cover its scores evaluated again. | Fix, then retry | | `403` | [`enterprise_plan_required`](https://hirelayer.co/api-docs/errors.md#enterprise_plan_required) | `do_not_store_data is available on the Enterprise plan only. Nothing was processed or billed.` | `param`: `do_not_store_data`. `do_not_store_data: true` below the Enterprise plan. | Do not retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `text must be 50,000 characters or less.` | `param`: `text`. The text is over 50,000 characters. | Fix, then retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `file must be 4.5 MB or less.` | `param`: `file`. The file is over 4.5 MB. | Fix, then retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `The text of file must be 50,000 characters or less.` | `param`: `file`. The text read in the file is over 50,000 characters. | Fix, then retry | | `422` | [`job_unreadable`](https://hirelayer.co/api-docs/errors.md#job_unreadable) | `file has no text layer: it is probably a scan. Send its text instead.` | `param`: `file`. The file cannot be read: a scan, a protected or damaged PDF, a PDF of more than 50 pages, an old `.doc`, or another type. | Do not retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`model_unavailable`](https://hirelayer.co/api-docs/errors.md#model_unavailable) | `The analysis did not complete after several attempts. Nothing was stored or billed: retry with backoff.` | The analysis did not complete. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "text must be 30 characters or more: send the job's full text.", "param": "text", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Behavior - **Language:** `language` (`en`, `fr`, `de`, `es` or `pt`) sets the language of the criteria labels and thresholds, and of the summaries and explanations of the job's scores. Left out, it is the language of the job's text, and `en` for a text in any other language. The answer's `language` says which one was used. - **Credits:** 0. Except when a different text replaces a stored job that has scores and the extraction brings new criteria: as with `PUT /jobs/{job_id}`, its stored scores are evaluated again in the background, 1 credit each, and the call is refused (`403`) when the credits left do not cover them. `credits_used` counts this call's extraction only. - **Without storage:** `job_id` is `null`. Keep the criteria and send them back with the job to `POST /resumes/score`, so that scores stay comparable from one call to the next. ## Next - [HireLayer Resume Scorer](https://hirelayer.co/api-docs/score.md): HireLayer Resume Scorer matches candidates to a job description, ranks them and explains each score criterion by criterion, with evidence from the resume. - [HireLayer Resume Parser](https://hirelayer.co/api-docs/parse-resume.md): Resume parser API reference: send a PDF, Word or image resume in one multipart request and get the candidate back as JSON, photo included, in 70 languages. --- # Page: HireLayer Resume Scorer > HireLayer Resume Scorer matches candidates to a job description, ranks them and explains each score criterion by criterion, with evidence from the resume. Source: https://hirelayer.co/api-docs/score · Markdown: https://hirelayer.co/api-docs/score.md HireLayer Resume Scorer is an API that matches candidates to a job description, ranks them best first and explains why each one scores high or low. One `POST /api/v4/resumes/score` call takes the job as a file, a text or a stored `job_id`, and up to 100 resumes as files, texts, parsed JSON or stored `application_id`s, mixed freely. Each resume gets a score from 0 to 1, a verdict, a summary and, for every criterion, a status, the evidence quoted from the resume and an explanation, for 1 credit per resume. To add AI resume screening to an ATS, call it when a candidate applies or when a recruiter opens a job, and show the ranking and the reasons next to each application. - With files, `precise_ranking`, `webhook_url`, `do_not_store_data` and every other field go inside the `request` JSON, never as form fields: any part but `request` and the files is refused (`400`). - Ranking: `precise_ranking: true` compares the 10 best resumes of the call against each other and adds a `ranking_reason` to each, for 1 credit more per call. - Price: 1 credit per resume scored, +1 per resume file parsed. A pair already scored is free to ask again, so a recruiter can reload the ranking as often as needed. A stored job sent again with a new text or new criteria also evaluates its other stored scores again, 1 credit each; when the credits left do not cover them, the call is refused (`403`) before the job is changed. - A job text identical to the stored job returns the job as stored: `title`, `location` and `language` sent with it are ignored; change them with `PUT /jobs/{job_id}`. - Time: about a minute for 50 resumes. Past 10 files or 50 resumes, the call answers `202` and the scores are read at `results_url` or posted to a [webhook](https://hirelayer.co/api-docs/webhooks.md). With storage, a smaller call whose evaluations still run after about 100 seconds answers `202` too. ## How the score is computed The score is the weighted mean of the criterion scores (`met` 1, `partial` 0.67, `missing` 0 or 0.33 with a weak hint), criteria marked `unknown` left out, then × 0.75 for each required criterion clearly missing. A criterion of weight 0 is off. The verdict is an overall reading of the resume for the job: | `verdict` | Meaning | | --- | --- | | `highly_relevant` | Shortlist. | | `relevant` | Worth a call. | | `marginally_relevant` | Weak. | | `not_relevant` | Off-topic. | - **Endpoint:** `POST /api/v4/resumes/score` - **Input:** A job (file, text or `job_id`) and 1 to 100 resumes (files, texts, parsed JSON or `application_id`s) - **Output:** One score per resume, best first - **Price:** 1 credit per resume evaluated, +1 per resume file parsed, +1 per call with precise_ranking; 0 for a pair already evaluated or a file already stored; 1 credit per other stored score evaluated again when a stored job comes with a new text or new criteria ## Score resumes against a job `POST https://hirelayer.co/api/v4/resumes/score` Evaluates one or more resumes against a job, criterion by criterion, and returns them best first. - **Authentication:** `X-API-Key` header - **Content type:** `application/json`, or `multipart/form-data` with files - **Billing:** 1 credit per resume evaluated, +1 per resume file parsed, +1 per call with precise_ranking; 0 for a pair already evaluated or a file already stored; 1 credit per other stored score evaluated again when a stored job comes with a new text or new criteria - **Client timeout:** at least 150 seconds **Synchronous or not.** | The call | The answer | | --- | --- | | No `webhook_url`, at most 10 resume files and at most 50 resumes in all | `200` with every score: about a minute for 50 resumes (measured 60 to 64 seconds), less for fewer, plus the parse of any file; set a client timeout of 150 seconds. With storage, evaluations still running after about 100 seconds answer `202` instead: poll `results_url` | | No `webhook_url`, more than that, with storage | `202`; poll `results_url` until no score is `pending` | | No `webhook_url`, more than that, without storage | Refused: `400 invalid_request`, `param: webhook_url` | | With `webhook_url` | `202`; the full result is posted to the URL, and with storage it can also be read at `results_url` | ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | ### Request body | Field | Type | Required | Description | | --- | --- | --- | --- | | `job` | `object` | Yes | Exactly one of `file`, `text` or `job_id`. `criteria` goes only with `file` or `text`; criteria alone are refused. | | `job.file` | `string` | No | Name of the multipart part that holds the job description file (PDF, DOCX, TXT or HTML, 4.5 MB at most). A PDF of more than 50 pages, or one without a text layer, cannot be read (`422 job_unreadable`). | | `job.job_id` | `string` | No | Alone: the id of a stored one. With `file`, `text`: your own id to store it under. | | `job.criteria` | `object[]` | No | The job's own criteria; they replace the extraction. 1–20 items. | | `job.criteria[].label` | `string` | Yes | 1–300 characters. | | `job.criteria[].type` | `string` | No | One of: `"skill"`, `"experience"`, `"education"`, `"language"`, `"certification"`, `"location"`, `"soft_skill"`, `"other"`. | | `job.criteria[].requirement` | `string` | No | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `job.criteria[].weight` | `integer` | No | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `job.criteria[].threshold` | `string \| null` | No | Minimum level in short text, such as `3 ans minimum`, `Bac+2` or `B2`. ≤ 100 characters. | | `job.criteria[].criterion_id` | `string` | No | | | `job.criteria[].source` | `string` | No | | | `job.title` | `string` | No | ≤ 300 characters. | | `job.location` | `string` | No | ≤ 300 characters. | | `job.language` | `string` | No | Language of the job's criteria labels and thresholds, score summaries and explanations, and ranking reasons. Sent, it is kept; left out, it is the language of the job's text when the job is created, and `en` when that text is in another language or its language cannot be told. One of: `"en"`, `"fr"`, `"de"`, `"es"`, `"pt"`. | | `job.text` | `string` | No | The job description. 30–50,000 characters. | | `resumes` | `object[]` | Yes | 1–100 items. | | `resumes[].file` | `string` | No | Name of the multipart part that holds the resume file. | | `resumes[].application_id` | `string` | No | Alone: the id of a stored one. With `file`, `text`, `resume`: your own id to store it under. | | `resumes[].reference` | `string` | No | Your label, returned as is. ≤ 200 characters. | | `resumes[].text` | `string` | No | The resume as plain text. 1–50,000 characters. | | `resumes[].resume` | `object` | No | The parsed resume JSON, as `POST /resumes/parse` returns it in `resume`, or the whole response of the legacy `/api/v3/parser`. 1 MB at most (`413`), arrays and objects nested 100 levels deep at most (`400`). It is not parsed again: no parsing credit. | | `precise_ranking` | `boolean` | No | Re-rank the 10 best resumes of this call against each other and add `ranking_reason`. 1 credit more for the call, when it has at least 2 resumes evaluated to rank. Default `false`. | | `do_not_store_data` | `boolean` | No | Enterprise plan only, else `403 enterprise_plan_required`: process without storing anything. See [Storage](https://hirelayer.co/api-docs/authentication.md#storage). Default `false`. | | `webhook_url` | `string (URL)` | No | HTTPS URL on the standard port, without credentials, that receives the result, signed. | ### Example request **cURL** ```bash # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria, and file_d7e21d373637a897b17b8fdf63122807, file_2275c80ed15f2e1dfef430a4c8f0abfc with application_ids returned by POST /api/v4/resumes/parse. curl -X POST https://hirelayer.co/api/v4/resumes/score \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "job": { "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea" }, "resumes": [ { "application_id": "file_d7e21d373637a897b17b8fdf63122807" }, { "application_id": "file_2275c80ed15f2e1dfef430a4c8f0abfc" } ], "precise_ranking": true }' ``` **Python** ```python # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria, and file_d7e21d373637a897b17b8fdf63122807, file_2275c80ed15f2e1dfef430a4c8f0abfc with application_ids returned by POST /api/v4/resumes/parse. import os import requests response = requests.post( "https://hirelayer.co/api/v4/resumes/score", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, json={ "job": { "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea", }, "resumes": [ { "application_id": "file_d7e21d373637a897b17b8fdf63122807", }, { "application_id": "file_2275c80ed15f2e1dfef430a4c8f0abfc", }, ], "precise_ranking": True, }, timeout=150, ) response.raise_for_status() data = response.json() print(data["scores"]) ``` **TypeScript** ```typescript // Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria, and file_d7e21d373637a897b17b8fdf63122807, file_2275c80ed15f2e1dfef430a4c8f0abfc with application_ids returned by POST /api/v4/resumes/parse. const response = await fetch('https://hirelayer.co/api/v4/resumes/score', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, 'Content-Type': 'application/json', }, body: JSON.stringify({ job: { job_id: 'job_020cb8c5f1f8eb650cec00dc3d90f8ea', }, resumes: [ { application_id: 'file_d7e21d373637a897b17b8fdf63122807', }, { application_id: 'file_2275c80ed15f2e1dfef430a4c8f0abfc', }, ], precise_ranking: true, }), signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.scores) ``` ### Response `200` Every resume evaluated (or failed), best score first. | Field | Type | Description | | --- | --- | --- | | `request_id` | `string` | Quote it when contacting support. | | `job` | `object` | | | `job.job_id` | `string \| null` | `null` without storage. | | `job.stored` | `boolean` | | | `job.title` | `string \| null` | | | `job.language` | `string` | Language of the job's criteria labels and thresholds, score summaries and explanations, and ranking reasons. Sent, it is kept; left out, it is the language of the job's text when the job is created, and `en` when that text is in another language or its language cannot be told. One of: `"en"`, `"fr"`, `"de"`, `"es"`, `"pt"`. | | `job.criteria` | `object[]` | | | `job.criteria[].criterion_id` | `string` | Stable id in the job, such as `crit_2`. Never reused. | | `job.criteria[].label` | `string` | | | `job.criteria[].type` | `string` | One of: `"skill"`, `"experience"`, `"education"`, `"language"`, `"certification"`, `"location"`, `"soft_skill"`, `"other"`. | | `job.criteria[].requirement` | `string` | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `job.criteria[].weight` | `integer` | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `job.criteria[].threshold` | `string \| null` | | | `job.criteria[].source` | `string` | `extracted` by HireLayer, or `custom`: sent or edited by you. One of: `"extracted"`, `"custom"`. | | `precise_ranking` | `boolean` | | | `scores` | `object[]` | | | `scores[].rank` | `integer` | Place in the whole ranking, across pages: by score, except among the 10 best when `precise_ranking` is on. Pending and failed resumes come last. ≥ 1. | | `scores[].application_id` | `string \| null` | `null` without storage, and for a resume file that could not be read. | | `scores[].reference` | `string \| null` | The `reference` the resume was sent with. Given back in the answer of `POST /resumes/score`, its webhook and its `results_url`; `null` in a job's stored ranking and in one stored score, which outlive the call. | | `scores[].file_name` | `string \| null` | The name of the resume file sent to `POST /resumes/score`, given back as `reference` is. | | `scores[].evaluation_status` | `string` | One of: `"completed"`, `"pending"`, `"failed"`. | | `scores[].stale` | `boolean` | The resume was replaced after this evaluation. The result stays readable, and is evaluated again the next time the resume is sent to `POST /resumes/score` for this job. | | `scores[].score` | `number \| null` | Rounded to 2 decimals; `null` until evaluated. 0–1. | | `scores[].verdict` | `string \| null` | May be absent. The overall judgment of the resume for the job: `highly_relevant` (shortlist), `relevant` (worth a call), `marginally_relevant` (weak), `not_relevant` (off-topic). Present once the evaluation is `completed`, absent while `pending` or `failed`. It does not follow the weights of a read, so it can disagree with `score` after a weight change. `null` when a criterion of the job was added, removed or reworded (`label` or `threshold`) since the last full evaluation of the resume, or when no overall judgment could be given. A change of weight, requirement or type leaves it as is. After a reset, it comes back when the resume is sent again to `POST /resumes/score` for this job: a full evaluation, 1 credit, on top of the credit the new criterion's own evaluation cost. One of: `"highly_relevant"`, `"relevant"`, `"marginally_relevant"`, `"not_relevant"`, `null`. | | `scores[].summary` | `string \| null` | May be absent. Overall assessment, in the job's language. Present once the evaluation is `completed`. It follows `verdict`, written with it: `null` when `verdict` is `null` (a criterion of the job added, removed or reworded since the last full evaluation of the resume), back with the next full evaluation. | | `scores[].ranking_reason` | `string` | May be absent. One sentence that places the resume against the others. Only with `precise_ranking`, for ranks 1 to 10, when at least 2 resumes are compared; absent otherwise. | | `scores[].required_missing` | `object[]` | Required criteria marked `missing` with medium or high confidence; each multiplies the score by 0.75. | | `scores[].required_missing[].criterion_id` | `string` | | | `scores[].required_missing[].label` | `string` | | | `scores[].to_verify` | `object[]` | Required criteria not clearly met, to check with the candidate; those of `required_missing` included. | | `scores[].to_verify[].criterion_id` | `string` | | | `scores[].to_verify[].label` | `string` | | | `scores[].criteria` | `object[]` | May be absent. Per-criterion detail, in the job's criteria order, once the evaluation is `completed`. Always in `POST /resumes/score` answers; in `GET /jobs/{job_id}/scores`, only with `include=criteria`. | | `scores[].criteria[].criterion_id` | `string` | | | `scores[].criteria[].label` | `string` | | | `scores[].criteria[].requirement` | `string` | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `scores[].criteria[].weight` | `integer` | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `scores[].criteria[].status` | `string` | The reading of the criterion. `met`; `partial`; `missing`, which can still carry a weak hint (score 0.33); `unknown`: the resume says nothing about something resumes often leave out, such as availability, and the criterion is left out of the score. One of: `"met"`, `"partial"`, `"missing"`, `"unknown"`. | | `scores[].criteria[].score` | `number \| null` | 1 met or exceeded, 0.67 partly met, 0.33 a weak hint, 0 absent, `null` unknown. The resume's score uses the exact values 2/3 and 1/3, then rounds to 2 decimals. One of: `0`, `0.33`, `0.67`, `1`, `null`. | | `scores[].criteria[].gap` | `string \| null` | Why the evidence is partial (scores 0.67 and 0.33): the same thing, less of it; a neighbouring skill of the same trade; plausible but not shown. One of: `"below_threshold"`, `"related"`, `"indirect"`, `null`. | | `scores[].criteria[].confidence` | `string` | A required criterion missing with `low` confidence does not lower the score. One of: `"high"`, `"medium"`, `"low"`. | | `scores[].criteria[].evidence` | `string` | Where the resume shows it: the section, then the passages quoted between quotation marks, in the resume's language. Empty when there is none. Free text, so search the quoted passages rather than the whole string. | | `scores[].criteria[].explanation` | `string` | One sentence, in the job's language. | | `scores[].error` | `object \| null` | Why this resume failed, when `evaluation_status` is `failed`. It was not billed. | | `scores[].error.code` | `string` | Stable codes: branch on them, never on `message`. `method_not_allowed` answers a method a path does not take (`405`, with an `Allow` header), outside any operation. One of: `"invalid_request"`, `"storage_required"`, `"missing_api_key"`, `"invalid_api_key"`, `"insufficient_credits"`, `"enterprise_plan_required"`, `"not_found"`, `"payload_too_large"`, `"resume_unreadable"`, `"job_unreadable"`, `"rate_limited"`, `"model_unavailable"`, `"internal_error"`, `"method_not_allowed"`. | | `scores[].error.message` | `string` | Readable explanation, for logs. | | `scores[].error.param` | `string` | May be absent. The field or parameter at fault, when there is one, such as `job.criteria` or `resumes[2].file`. | | `scores[].error.doc_url` | `string (URL)` | | | `scores[].evaluated_at` | `string (date-time) \| null` | | | `credits_used` | `integer` | Credits this call cost. ≥ 0. | ```json { "request_id": "a02d647f-2cf9-449a-9192-ae83710727a6", "job": { "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea", "stored": true, "title": "AI Engineer / Backend Node.js Developer", "language": "en", "criteria": [ { "criterion_id": "crit_1", "label": "Engineering degree or Master's in Computer Science", "type": "education", "requirement": "preferred", "weight": 2, "threshold": "Master's level", "source": "extracted" }, { "criterion_id": "crit_2", "label": "Backend development with Node.js / TypeScript", "type": "skill", "requirement": "preferred", "weight": 3, "threshold": "3 years minimum", "source": "extracted" }, { "criterion_id": "crit_3", "label": "Integrating LLMs in production", "type": "skill", "requirement": "required", "weight": 3, "threshold": null, "source": "extracted" }, { "criterion_id": "crit_4", "label": "AWS (Lambda, S3, DynamoDB)", "type": "skill", "requirement": "preferred", "weight": 2, "threshold": null, "source": "extracted" }, { "criterion_id": "crit_5", "label": "AWS certification", "type": "certification", "requirement": "bonus", "weight": 1, "threshold": null, "source": "extracted" }, { "criterion_id": "crit_6", "label": "English", "type": "language", "requirement": "required", "weight": 2, "threshold": "B2 minimum", "source": "extracted" }, { "criterion_id": "crit_7", "label": "Leading developers", "type": "experience", "requirement": "bonus", "weight": 2, "threshold": null, "source": "extracted" }, { "criterion_id": "crit_8", "label": "On-call duty", "type": "other", "requirement": "required", "weight": 1, "threshold": "1 week every 6 weeks", "source": "extracted" }, { "criterion_id": "crit_9", "label": "Location", "type": "location", "requirement": "preferred", "weight": 1, "threshold": "Paris 9e, hybrid", "source": "extracted" } ] }, "precise_ranking": true, "scores": [ { "rank": 1, "application_id": "file_d7e21d373637a897b17b8fdf63122807", "reference": "cand-elias", "file_name": "elias-moreau-resume.pdf", "evaluation_status": "completed", "stale": false, "score": 0.9, "verdict": "highly_relevant", "summary": "This candidate is highly suitable for the position, demonstrating strong expertise in LLM integration and the specific AWS stack required, despite being slightly below the 3-year threshold for pure backend seniority.", "ranking_reason": "This candidate meets all mandatory criteria (LLM production experience, English B2+, accepts on-call) and strongly aligns with the tech stack (Node.js, AWS, Terraform) while also checking the education and certification plus boxes.", "required_missing": [], "to_verify": [ { "criterion_id": "crit_8", "label": "On-call duty" } ], "criteria": [ { "criterion_id": "crit_1", "label": "Engineering degree or Master's in Computer Science", "requirement": "preferred", "weight": 2, "status": "met", "score": 1, "gap": null, "confidence": "high", "evidence": "EFREI - ENGINEERING DEGREE, BIG DATA & AI Master's level (MSc), taught entirely in English", "explanation": "The candidate holds a Master's level Engineering Degree in Big Data & AI, meeting the education requirement." }, { "criterion_id": "crit_2", "label": "Backend development with Node.js / TypeScript", "requirement": "preferred", "weight": 3, "status": "partial", "score": 0.67, "gap": "below_threshold", "confidence": "medium", "evidence": "API stack (serverless AWS): API Gateway, Lambda, S3, DynamoDB, Terraform, Node.js", "explanation": "The candidate has production experience with Node.js, but the duration in a backend-specific role appears to be around 1-2 years, below the 3-year threshold." }, { "criterion_id": "crit_3", "label": "Integrating LLMs in production", "requirement": "required", "weight": 3, "status": "met", "score": 1, "gap": null, "confidence": "high", "evidence": "Built a SaaS platform with several generative AI features. [...] Scalable solution, 500k+ documents processed", "explanation": "The candidate has extensive hands-on experience putting LLMs into production, exceeding the requirement with a scalable solution processing 500k+ documents." }, { "criterion_id": "crit_4", "label": "AWS (Lambda, S3, DynamoDB)", "requirement": "preferred", "weight": 2, "status": "met", "score": 1, "gap": null, "confidence": "high", "evidence": "API stack (serverless AWS): API Gateway, Lambda, S3, DynamoDB, Terraform, Node.js", "explanation": "The candidate explicitly demonstrates production experience with the required AWS stack (Lambda, S3, DynamoDB) and Terraform." }, { "criterion_id": "crit_5", "label": "AWS certification", "requirement": "bonus", "weight": 1, "status": "met", "score": 1, "gap": null, "confidence": "high", "evidence": "AWS - CLOUD PRACTITIONER", "explanation": "The candidate holds an AWS Cloud Practitioner certification, satisfying the 'plus' requirement." }, { "criterion_id": "crit_6", "label": "English", "requirement": "required", "weight": 2, "status": "met", "score": 1, "gap": null, "confidence": "high", "evidence": "English: TOEIC 980/990", "explanation": "A TOEIC score of 980/990 indicates a C1/C2 level, far exceeding the B2 minimum requirement." }, { "criterion_id": "crit_7", "label": "Leading developers", "requirement": "bonus", "weight": 2, "status": "partial", "score": 0.67, "gap": "indirect", "confidence": "medium", "evidence": "Network Director [...] 25 employees", "explanation": "The candidate managed 25 employees in a non-profit context, which is related leadership experience but not strictly leading developers in a tech environment." }, { "criterion_id": "crit_8", "label": "On-call duty", "requirement": "required", "weight": 1, "status": "unknown", "score": null, "gap": null, "confidence": "high", "evidence": "", "explanation": "The CV does not mention acceptance of on-call duty, a detail typically confirmed during the interview." }, { "criterion_id": "crit_9", "label": "Location", "requirement": "preferred", "weight": 1, "status": "met", "score": 1, "gap": null, "confidence": "high", "evidence": "Paris, France", "explanation": "The candidate is located in Paris, matching the location requirement for the hybrid position." } ], "error": null, "evaluated_at": "2026-10-29T12:42:44.001Z" }, { "rank": 2, "application_id": "file_2275c80ed15f2e1dfef430a4c8f0abfc", "reference": "cand-rafael", "file_name": "cv-rafael-costa.pdf", "evaluation_status": "completed", "stale": false, "score": 0.33, "verdict": "not_relevant", "summary": "The candidate is a Senior Frontend Engineer with no proven backend, AWS, or LLM experience, failing all mandatory technical requirements for this AI/Backend role.", "ranking_reason": "This candidate fails the mandatory requirement for hands-on LLM integration experience and lacks the core backend Node.js depth, being specialized in frontend development despite having mentoring experience and the required education level.", "required_missing": [ { "criterion_id": "crit_3", "label": "Integrating LLMs in production" } ], "to_verify": [ { "criterion_id": "crit_3", "label": "Integrating LLMs in production" }, { "criterion_id": "crit_8", "label": "On-call duty" } ], "criteria": [ { "criterion_id": "crit_1", "label": "Engineering degree or Master's in Computer Science", "requirement": "preferred", "weight": 2, "status": "met", "score": 1, "gap": null, "confidence": "high", "evidence": "MSc in Computer Engineering · University of Porto · 2012 – 2017", "explanation": "The candidate holds a Master's degree in Computer Engineering, which meets the requirement." }, { "criterion_id": "crit_2", "label": "Backend development with Node.js / TypeScript", "requirement": "preferred", "weight": 3, "status": "missing", "score": 0.33, "gap": "indirect", "confidence": "high", "evidence": "Tech stack exposure: Node.js, GraphQL.", "explanation": "Node.js is only mentioned as 'tech stack exposure' without any project or backend experience detailed, far below the 3 years required." }, { "criterion_id": "crit_3", "label": "Integrating LLMs in production", "requirement": "required", "weight": 3, "status": "missing", "score": 0, "gap": null, "confidence": "high", "evidence": "", "explanation": "No experience with LLMs, RAG, or AI integration is mentioned in the CV, failing a mandatory requirement." }, { "criterion_id": "crit_4", "label": "AWS (Lambda, S3, DynamoDB)", "requirement": "preferred", "weight": 2, "status": "missing", "score": 0, "gap": null, "confidence": "high", "evidence": "", "explanation": "No AWS experience (Lambda, S3, DynamoDB) is mentioned in the candidate's profile." }, { "criterion_id": "crit_5", "label": "AWS certification", "requirement": "bonus", "weight": 1, "status": "missing", "score": 0, "gap": null, "confidence": "high", "evidence": "", "explanation": "No AWS certification is listed among the candidate's credentials." }, { "criterion_id": "crit_6", "label": "English", "requirement": "required", "weight": 2, "status": "met", "score": 1, "gap": null, "confidence": "high", "evidence": "English (fluent, C1)", "explanation": "C1 level exceeds the minimum B2 requirement for English proficiency." }, { "criterion_id": "crit_7", "label": "Leading developers", "requirement": "bonus", "weight": 2, "status": "met", "score": 1, "gap": null, "confidence": "high", "evidence": "Mentor three frontend developers and run the frontend guild", "explanation": "The candidate explicitly mentors three developers, meeting this plus requirement." }, { "criterion_id": "crit_8", "label": "On-call duty", "requirement": "required", "weight": 1, "status": "unknown", "score": null, "gap": null, "confidence": "low", "evidence": "", "explanation": "Acceptance of on-call duty is not typically found on a CV and was not mentioned." }, { "criterion_id": "crit_9", "label": "Location", "requirement": "preferred", "weight": 1, "status": "missing", "score": 0, "gap": null, "confidence": "high", "evidence": "Lisbon, Portugal", "explanation": "The candidate is located in Lisbon, Portugal, not Paris, and would need to relocate." } ], "error": null, "evaluated_at": "2026-10-29T12:42:43.041Z" } ], "credits_used": 3 } ``` ### Response `202` Accepted, with `webhook_url`, beyond the synchronous limit, or (with storage) when the evaluations outlast about 100 seconds. The result is posted to `webhook_url` when there is one and, with storage, readable at `results_url`. | Field | Type | Description | | --- | --- | --- | | `status` | `string` | Value: `"pending"`. | | `request_id` | `string` | Identifies this call in `results_url` and in the webhook. | | `job_id` | `string \| null` | | | `resumes_count` | `integer` | ≥ 1. | | `webhook_url` | `string (URL) \| null` | | | `results_url` | `string (URL) \| null` | With storage: `GET /jobs/{job_id}/scores?request_id=…`, the resumes of this call only. `null` without storage. | ### With files request Resume files and a job text in one call: the JSON goes in the `request` part, and each file in the part its `file` names. Each file is parsed and stored, +1 credit. **cURL** ```bash curl -X POST https://hirelayer.co/api/v4/resumes/score \ -H "X-API-Key: $HIRELAYER_API_KEY" \ --form-string 'request={"job":{"text":"AI Engineer / Backend Node.js Developer\nLumio · Paris 9e · Permanent · Hybrid (2 days of remote work a week)\n- At least 3 years of backend development with Node.js / TypeScript\n- Hands-on experience integrating LLMs in production is required\n- You know AWS well (Lambda, S3, DynamoDB); an AWS certification is a plus\n- Fluent English (B2 minimum) is required"},"resumes":[{"file":"cv1","reference":"cand-elias"},{"file":"cv2","reference":"cand-rafael"}],"precise_ranking":true}' \ -F "cv1=@elias-moreau-resume.pdf;type=application/pdf" \ -F "cv2=@cv-rafael-costa.pdf;type=application/pdf" ``` **Python** ```python import json import os import requests with open("elias-moreau-resume.pdf", "rb") as file1, open("cv-rafael-costa.pdf", "rb") as file2: response = requests.post( "https://hirelayer.co/api/v4/resumes/score", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, files={"cv1": ("elias-moreau-resume.pdf", file1, "application/pdf"), "cv2": ("cv-rafael-costa.pdf", file2, "application/pdf")}, data={ "request": json.dumps({ "job": { "text": "AI Engineer / Backend Node.js Developer\nLumio · Paris 9e · Permanent · Hybrid (2 days of remote work a week)\n- At least 3 years of backend development with Node.js / TypeScript\n- Hands-on experience integrating LLMs in production is required\n- You know AWS well (Lambda, S3, DynamoDB); an AWS certification is a plus\n- Fluent English (B2 minimum) is required", }, "resumes": [ { "file": "cv1", "reference": "cand-elias", }, { "file": "cv2", "reference": "cand-rafael", }, ], "precise_ranking": True, }), }, timeout=150, ) response.raise_for_status() data = response.json() print(data["scores"]) ``` **TypeScript** ```typescript import { readFile } from 'node:fs/promises' const form = new FormData() form.append( 'cv1', new Blob([await readFile('elias-moreau-resume.pdf')], { type: 'application/pdf' }), 'elias-moreau-resume.pdf' ) form.append( 'cv2', new Blob([await readFile('cv-rafael-costa.pdf')], { type: 'application/pdf' }), 'cv-rafael-costa.pdf' ) form.append( 'request', JSON.stringify({ job: { text: 'AI Engineer / Backend Node.js Developer\nLumio · Paris 9e · Permanent · Hybrid (2 days of remote work a week)\n- At least 3 years of backend development with Node.js / TypeScript\n- Hands-on experience integrating LLMs in production is required\n- You know AWS well (Lambda, S3, DynamoDB); an AWS certification is a plus\n- Fluent English (B2 minimum) is required', }, resumes: [ { file: 'cv1', reference: 'cand-elias', }, { file: 'cv2', reference: 'cand-rafael', }, ], precise_ranking: true, }) ) const response = await fetch('https://hirelayer.co/api/v4/resumes/score', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, body: form, signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.scores) ``` The response is the `200` above. ### With a webhook request With `webhook_url`, the call answers `202` at once and the scores are posted to that URL, signed: see [Webhooks](https://hirelayer.co/api-docs/webhooks.md). With storage, `results_url` reads them too. **cURL** ```bash # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria, and file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. curl -X POST https://hirelayer.co/api/v4/resumes/score \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "job": { "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea" }, "resumes": [ { "application_id": "file_d7e21d373637a897b17b8fdf63122807" } ], "webhook_url": "https://example.com/webhooks/hirelayer" }' ``` **Python** ```python # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria, and file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. import os import requests response = requests.post( "https://hirelayer.co/api/v4/resumes/score", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, json={ "job": { "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea", }, "resumes": [ { "application_id": "file_d7e21d373637a897b17b8fdf63122807", }, ], "webhook_url": "https://example.com/webhooks/hirelayer", }, timeout=150, ) response.raise_for_status() data = response.json() print(data["results_url"]) ``` **TypeScript** ```typescript // Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria, and file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. const response = await fetch('https://hirelayer.co/api/v4/resumes/score', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, 'Content-Type': 'application/json', }, body: JSON.stringify({ job: { job_id: 'job_020cb8c5f1f8eb650cec00dc3d90f8ea', }, resumes: [ { application_id: 'file_d7e21d373637a897b17b8fdf63122807', }, ], webhook_url: 'https://example.com/webhooks/hirelayer', }), signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.results_url) ``` ```json { "status": "pending", "request_id": "5d0a3c1e-2f4b-4c8e-9a61-0b7e2d9f4c13", "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea", "resumes_count": 1, "webhook_url": "https://example.com/webhooks/hirelayer", "results_url": "https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/scores?request_id=5d0a3c1e-2f4b-4c8e-9a61-0b7e2d9f4c13" } ``` ### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job.text must be 30 characters or more: send the job's full text.` | `param`: `job.text`. The job's text (or the text read in `job.file`) is under 30 characters. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `resumes must hold at least one resume of 30 characters or more.` | `param`: `resumes`. Every resume of the call is under 30 characters of text: one at least must reach it, the shorter ones are then scored as sent. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job.file, job.text or job.job_id is required.` | `param`: `job`. No job, or a job with none of `file`, `text` and `job_id`; or both `file` and `text`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job.criteria needs job.text or job.file: a stored job_id keeps its own criteria.` | `param`: `job.criteria`. `job.criteria` (or `title`, `location`, `language`) with a stored `job_id` alone. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job.criteria[0].weight must be 0, 1, 2 or 3.` | `param`: `job.criteria[0].weight`. A criterion breaks a rule (here its weight): `param` names the field. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `resumes must be a non-empty array.` | `param`: `resumes`. No resume, or more than 100. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `resumes[0] needs file, text, resume or application_id.` | `param`: `resumes[0]`. A resume with none of `file`, `text`, `resume` and `application_id`, or with several of the first three. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `resumes[0].file names no part of the call.` | `param`: `resumes[0].file`. A `file` (or `job.file`) that names no part of the call. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `resumes[1] is the same resume as resumes[0] (cand-42): send each resume once.` | `param`: `resumes[1].application_id`. The same resume twice in the call. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `resumes[0].application_id cannot be score: that name is reserved for POST /api/v4/resumes/score.` | `param`: `resumes[0].application_id`. An `application_id` that is not a valid id, or a name the paths reserve. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `precise_ranking is a form field: every field of the call goes in the request part's JSON, the other parts are files.` | `param`: `precise_ranking`. In multipart, a field sent as its own part instead of inside `request`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `webhook_url is required without storage past 10 resume files or 50 resumes: the result is posted there, as nothing is kept to read.` | `param`: `webhook_url`. A call without storage past the synchronous limit, without `webhook_url`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `The request body is not valid JSON.` | The body is not valid JSON, not an object, or not sent as `application/json`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `400` | [`storage_required`](https://hirelayer.co/api-docs/errors.md#storage_required) | `job.job_id needs storage: send the job as text with do_not_store_data.` | `param`: `job.job_id`. A stored `job_id` without storage. | Do not retry | | `400` | [`storage_required`](https://hirelayer.co/api-docs/errors.md#storage_required) | `resumes[0].application_id needs storage: send the resume as a file, a text or its JSON.` | `param`: `resumes[0].application_id`. A stored `application_id` alone without storage. | Do not retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `403` | [`insufficient_credits`](https://hirelayer.co/api-docs/errors.md#insufficient_credits) | `This call scores 38 new pairs and parses 2 files, 1 credit each: 40 credits, and 32 are left. Nothing was processed or billed.` | The credits left do not cover the call: checked before anything is parsed, stored or evaluated. | Fix, then retry | | `403` | [`enterprise_plan_required`](https://hirelayer.co/api-docs/errors.md#enterprise_plan_required) | `do_not_store_data is available on the Enterprise plan only. Nothing was processed or billed.` | `param`: `do_not_store_data`. `do_not_store_data: true` below the Enterprise plan. | Do not retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No job req-7 in workspace default.` | `param`: `job.job_id`. No job under `job.job_id` in the workspace. An unknown `application_id` fails only its own score. | Do not retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `resumes[0].file must be 4.5 MB or less.` | `param`: `resumes[0].file`. A file over 4.5 MB (`job.file` too). | Fix, then retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `resumes[0].text must be 50,000 characters or less.` | `param`: `resumes[0].text`. A resume or job text over 50,000 characters (`job.text` too). | Fix, then retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `resumes[0].resume must be 1 MB or less.` | `param`: `resumes[0].resume`. A parsed resume over 1 MB. | Fix, then retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `The files of a call must be 50 MB or less in total.` | The files of the call are over 50 MB together. | Fix, then retry | | `422` | [`job_unreadable`](https://hirelayer.co/api-docs/errors.md#job_unreadable) | `job.file has no text layer: it is probably a scan. Send its text instead.` | `param`: `job.file`. The job file cannot be read. An unreadable resume file fails only its own score. | Do not retry | | `429` | [`rate_limited`](https://hirelayer.co/api-docs/errors.md#rate_limited) | `Too many files are being parsed at once for this account: retry after the Retry-After delay.` | Too many parses at once. Headers: `Retry-After: `. | Retry with backoff | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`model_unavailable`](https://hirelayer.co/api-docs/errors.md#model_unavailable) | `The analysis did not complete after several attempts. Nothing was stored or billed: retry with backoff.` | The analysis did not complete. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "job.text must be 30 characters or more: send the job's full text.", "param": "job.text", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Behavior - **Inputs, mixed freely in one call:** The job comes as a file, a text or a stored `job_id`, alone or (file or text only) with its criteria in the format `POST /jobs/extract-criteria` returns. Criteria without the job are refused. Each resume comes as a file, a text, the parsed resume JSON (`{"resume": {…}}`, no parsing credit) or a stored `application_id`, including one parsed by the legacy `/api/v3/parser`. A job or resume sent as content can carry your own `job_id` or `application_id`. - **One request shape:** Without files, send `ScoreRequest` as a JSON body. With files, send `multipart/form-data`: the same JSON in the `request` part, and each file in a part whose name the JSON cites (`{"file": "cv1"}` reads the part `cv1`). A cited part that is missing is refused (`400`, `param` naming it). Every other field, `do_not_store_data` and `webhook_url` included, goes in the `request` JSON, not in a form field of its own: a text part other than `request` is refused (`400`, `param` naming it), unlike `POST /resumes/parse`, which takes its fields as form fields. - **Limits:** at most 100 resumes per call; each file 4.5 MB at most, 50 MB of files per call. To score more files, parse them first with `POST /resumes/parse` and send their ids, or split the call. Without storage, calls of at most 10 files are fully synchronous and keep nothing, not even an undelivered webhook result. A `text` over 50,000 characters or a parsed resume JSON over 1 MB refuses the call (`413`) before any work; a resume file or JSON whose text is longer is scored on its first 50,000 characters. The job's text holds at least 30 characters, and at least one resume of the call holds 30 characters of text or more (`400`); shorter resumes beside it are scored as sent. - **Language:** summaries and explanations are written in the job's `language` (`en`, `fr`, `de`, `es` or `pt`). Left out, it is the language of the job's text, and `en` for a text in any other language; a stored job keeps its own. - **Each resume once:** with storage, two resumes of a call stored under the same id (the same file, text or parsed JSON sent twice without `application_id`, or the same `application_id`) refuse the call (`400 invalid_request`, `param` naming the second, such as `resumes[3]`) before any file is parsed. Without storage, nothing is stored under an id: both are evaluated and billed. - **Unknown ids:** an unknown `job_id` refuses the call (`404`). An unknown `application_id` fails only that resume (`evaluation_status: failed`, `error.code: not_found`), unbilled. - **Credits:** 1 per resume evaluated, plus 1 per resume file parsed. A pair already evaluated costs 0, unless it is `stale` (the resume was replaced) or its `verdict` was reset by a change of the job's criteria: then it is evaluated again in full, 1 credit. A file already stored costs 0. `precise_ranking` costs 1 credit more per call, when the call has at least 2 resumes evaluated to rank. A resume that fails (unreadable file) is not billed and does not fail the call; it comes last, with `evaluation_status: failed` and `error`. A stored job sent again with a new text or new criteria also evaluates its other stored scores again, 1 credit each, not counted in `credits_used` (see "A job sent again"); a call whose credits do not cover them is refused (`403`) before the job is changed. That check asks for the worst case: when the call sends the stored job with a new text or without one of its stored criteria, every stored score of the job counts as evaluated again. The call then bills only what is actually evaluated, which can be less. - **Score:** weighted mean of the criterion scores, criteria marked `unknown` left out, then × 0.75 for each required criterion marked `missing` with medium or high confidence. A criterion of weight 0 is off: left out of the mean, of the penalty and of `to_verify`. - **A job sent again:** a job text or file whose id is already stored (the same text, or your `job_id`) updates the stored job. Criteria sent with it replace the stored ones; a changed text without criteria has its criteria extracted again; the same text without criteria returns the stored job as it is, and the call's `title`, `location` and `language` are then ignored: change them with `PUT /jobs/{job_id}`. As with `PUT /jobs/{job_id}`, new criteria also evaluate the job's other stored scores again in the background, 1 credit each, not counted in `credits_used`. - **Criterion ids:** criteria of a new job are numbered `crit_1`, `crit_2`… in their order. When criteria replace those of a stored job, one with the same label and threshold as a stored criterion keeps its id and its results; the others take the next unused numbers. An id is never reused. - **Weights:** scoring uses the job's stored weights. To change one for good, `PATCH /jobs/{job_id}/criteria/{criterion_id}`; to try one for a single view, `GET /jobs/{job_id}/scores?weights[crit_3]=0`. Both re-rank at once, for free. - **Without storage:** nothing is kept (see `DoNotStoreData`); `job.job_id` and each `application_id` are `null`, so give every resume a `reference` to match the results to your inputs; every call evaluates every resume again and bills it (send a resume parsed once as its JSON, `{"resume": {…}}`, so as not to pay its parsing again); `results_url` is `null`. Criteria sent back with the job keep their order, so a ranking can be recomputed on your side from `criteria[].score` and the weights. A call with `webhook_url` answers `202` at once: its files are read after it, then the job and the resumes wait until they are evaluated, and the result until it is delivered; each is deleted then, 24 hours at most after the call. A synchronous call without storage that fails (`5xx`) bills nothing, not even the files it parsed: send it again as it is. ## Re-rank with the recruiter’s priorities With storage, every score of a job can be read again, best first, with other weights for one view: `GET /jobs/{job_id}/scores?weights[crit_3]=0` (free, nothing is evaluated again; see [Jobs and scores](https://hirelayer.co/api-docs/jobs.md#scores)). To change a weight for good, [`PATCH /jobs/{job_id}/criteria/{criterion_id}`](https://hirelayer.co/api-docs/jobs.md#update-criterion). ## Next - [HireLayer Talent Pool Search](https://hirelayer.co/api-docs/search-resumes.md): HireLayer resume database search API: find the candidates in your own resume database closest to a new job, filtered by location and date added, in one call. - [Build a screening pipeline](https://hirelayer.co/api-docs/screening-pipeline.md): Sync jobs and applicants from an ATS, score them, re-rank with the recruiter’s priorities and search the talent pool, with your own ids. --- # Page: HireLayer Talent Pool Search > HireLayer resume database search API: find the candidates in your own resume database closest to a new job, filtered by location and date added, in one call. Source: https://hirelayer.co/api-docs/search-resumes · Markdown: https://hirelayer.co/api-docs/search-resumes.md HireLayer Talent Pool Search is an API that searches your own resume database to find the best candidates for a new job. Every resume parsed or scored in a workspace is searchable, with no separate index to build. One `POST /api/v4/resumes/search` call with a stored `job_id` or a job text returns up to 500 `application_id`s sorted by closeness, with a `similarity` and whether each one is already scored for the job, for 1 credit per search. Filter by location (a city and a radius) and by date added. - A `job` whose text replaces a stored job (same `job_id`) has its stored scores evaluated again, 1 credit each, and the search is refused (`403`) when the credits left do not cover them. - A job text identical to the stored job returns the job as stored: a `title` sent with it is ignored; change it with `PUT /jobs/{job_id}`. The search does not evaluate or explain: send the resumes you choose to the [Resume Scorer](https://hirelayer.co/api-docs/score.md) by their `application_id`. Those already scored for the job, or being scored, cost nothing, unless their score is `stale` or its `verdict` was reset. - **Endpoint:** `POST /api/v4/resumes/search` - **Input:** A `job_id` or a job text, a `limit`, optional filters - **Output:** Resume ids, closest first - **Price:** 1 credit per search; 1 credit per stored score evaluated again when a new text replaces a stored job ## Search the talent pool for a job `POST https://hirelayer.co/api/v4/resumes/search` Finds in the workspace's resume database the resumes closest to a job, to choose which ones to score. Proximity only: no evaluation, no explanation. Score the chosen ones with `POST /resumes/score`. - **Authentication:** `X-API-Key` header - **Content type:** `application/json` - **Billing:** 1 credit per search; 1 credit per stored score evaluated again when a new text replaces a stored job - **Client timeout:** at least 60 seconds ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | ### Request body | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | `string` | No | Letters, digits and `. _ : ~ -`, up to 200 characters. | | `job` | `object` | No | A job not stored yet; it is stored, as by `POST /jobs/extract-criteria`. | | `job.text` | `string` | Yes | 30–50,000 characters. | | `job.title` | `string` | No | ≤ 300 characters. | | `job.job_id` | `string` | No | Store the job under your own id. | | `limit` | `integer` | No | 1–500, default `50`. | | `filters` | `object` | No | | | `filters.location` | `object` | No | Resumes whose location is unknown are left out when this filter is set. | | `filters.location.city` | `string` | Yes | | | `filters.location.country_code` | `string` | No | ISO 3166-1 alpha-2, such as `FR`. Helps when a city name exists in several countries. | | `filters.location.radius_km` | `integer` | No | 1–500, default `30`. | | `filters.added_after` | `string (date-time)` | No | | | `do_not_store_data` | `boolean` | No | Enterprise plan only, else `403 enterprise_plan_required`: process without storing anything. See [Storage](https://hirelayer.co/api-docs/authentication.md#storage). Default `false`. | Send exactly one of `job_id` or `job`. ### Example request **cURL** ```bash # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. curl -X POST https://hirelayer.co/api/v4/resumes/search \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea", "limit": 20, "filters": { "location": { "city": "Paris", "radius_km": 30 } } }' ``` **Python** ```python # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. import os import requests response = requests.post( "https://hirelayer.co/api/v4/resumes/search", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, json={ "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea", "limit": 20, "filters": { "location": { "city": "Paris", "radius_km": 30, }, }, }, timeout=60, ) response.raise_for_status() data = response.json() print(data["results"]) ``` **TypeScript** ```typescript // Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. const response = await fetch('https://hirelayer.co/api/v4/resumes/search', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, 'Content-Type': 'application/json', }, body: JSON.stringify({ job_id: 'job_020cb8c5f1f8eb650cec00dc3d90f8ea', limit: 20, filters: { location: { city: 'Paris', radius_km: 30, }, }, }), signal: AbortSignal.timeout(60_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.results) ``` ### Response `200` The closest resumes, closest first. | Field | Type | Description | | --- | --- | --- | | `request_id` | `string` | The call's id, also in the `HireLayer-Request-Id` header. Quote it when contacting support. | | `job_id` | `string` | | | `results` | `object[]` | | | `results[].rank` | `integer` | ≥ 1. | | `results[].application_id` | `string` | | | `results[].similarity` | `number` | Proximity to the job. Compare it only within one search; it is not a score. 0–1. | | `results[].already_scored` | `boolean` | Already scored for this job, or being scored (`pending`); scoring it again costs 0 unless the score is `stale` or its `verdict` was reset. | | `credits_used` | `integer` | Credits this call cost. ≥ 0. | ```json { "request_id": "fd813f06-4d4d-4a15-a891-e9e253a1a29c", "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea", "results": [ { "rank": 1, "application_id": "file_d7e21d373637a897b17b8fdf63122807", "similarity": 0.57, "already_scored": true }, { "rank": 2, "application_id": "file_2275c80ed15f2e1dfef430a4c8f0abfc", "similarity": 0.41, "already_scored": true } ], "credits_used": 1 } ``` ### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job.text must be 30 characters or more: send the job's full text.` | `param`: `job.text`. `job.text` is under 30 characters. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job_id or job is required.` | `param`: `job_id`. Neither `job_id` nor `job`, or both. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job.text is required.` | `param`: `job.text`. `job` without its text. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `limit must be an integer from 1 to 500.` | `param`: `limit`. `limit` out of range. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `No city named Lyonn: check the spelling, or add country_code.` | `param`: `filters.location.city`. A filter breaks a rule (here a city not found): `param` names it. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `job_id`. `job_id` is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `Unknown field lang.` | `param`: `lang`. A field the call does not take. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `The request body is not valid JSON.` | The body is not valid JSON, not an object, or not sent as `application/json`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `400` | [`storage_required`](https://hirelayer.co/api-docs/errors.md#storage_required) | `A search reads the stored resumes and jobs: it is not available without storage.` | `param`: `do_not_store_data`. `do_not_store_data: true` (Enterprise plan): a search needs storage. | Do not retry | | `400` | [`storage_required`](https://hirelayer.co/api-docs/errors.md#storage_required) | `This workspace runs without storage (do_not_store_data): a search reads the stored resumes and jobs, so it is not available in it.` | `param`: `HireLayer-Workspace`. The workspace runs without storage. | Do not retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `403` | [`insufficient_credits`](https://hirelayer.co/api-docs/errors.md#insufficient_credits) | `This search needs 1 credit and none is left. Nothing was processed or billed.` | No credit left for the search (and for the stored scores a new job text evaluates again). | Fix, then retry | | `403` | [`enterprise_plan_required`](https://hirelayer.co/api-docs/errors.md#enterprise_plan_required) | `do_not_store_data is available on the Enterprise plan only. Nothing was processed or billed.` | `param`: `do_not_store_data`. `do_not_store_data: true` below the Enterprise plan. | Do not retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No job req-7 in workspace default.` | `param`: `job_id`. No job under `job_id` in the workspace. | Do not retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `job.text must be 50,000 characters or less.` | `param`: `job.text`. The job text is over 50,000 characters. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`model_unavailable`](https://hirelayer.co/api-docs/errors.md#model_unavailable) | `The analysis did not complete after several attempts. Nothing was stored or billed: retry with backoff.` | The analysis did not complete. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The location filter is briefly unavailable: search without it, or retry later.` | `param`: `filters.location`. The location filter is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "job.text must be 30 characters or more: send the job's full text.", "param": "job.text", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Behavior - **Credits:** 1 per search. A `job` whose text replaces a stored job (same `job_id`) has its criteria extracted again, as `POST /jobs/extract-criteria` does: its stored scores are evaluated again in the background, 1 credit each, and the call is refused (`403`) when the credits left do not cover them and the search. That check asks for the worst case, every stored score of the job evaluated again; only the evaluations that actually run are billed. - **A stored job sent again:** a `job` whose text is the stored job's is used as it is, and its `title` is then ignored: change it with `PUT /jobs/{job_id}`. - **Without storage:** not available (`400 storage_required`), since there is no resume database. ## Next - [HireLayer Resume Scorer](https://hirelayer.co/api-docs/score.md): HireLayer Resume Scorer matches candidates to a job description, ranks them and explains each score criterion by criterion, with evidence from the resume. - [HireLayer Job Recommendations](https://hirelayer.co/api-docs/search-jobs.md): HireLayer job recommendation API: recommend the open jobs closest to a candidate based on their resume, sent as a stored id, a text or a file, in one call. --- # Page: HireLayer Job Recommendations > HireLayer job recommendation API: recommend the open jobs closest to a candidate based on their resume, sent as a stored id, a text or a file, in one call. Source: https://hirelayer.co/api-docs/search-jobs · Markdown: https://hirelayer.co/api-docs/search-jobs.md HireLayer Job Recommendations is an API that recommends open jobs to a candidate based on their resume: it finds the open jobs of a workspace closest to that resume. One `POST /api/v4/jobs/search` call with a stored `application_id`, a resume text or a resume file returns up to 100 `job_id`s sorted by closeness, with a `similarity` each, for 1 credit per search (+1 when the resume comes as a file, parsed and stored). Only jobs stored with `status: "open"` are searched. To explain a recommendation, score the resume against that job with the [Resume Scorer](https://hirelayer.co/api-docs/score.md), one call per job. - **Endpoint:** `POST /api/v4/jobs/search` - **Input:** An `application_id`, a resume text or a resume file - **Output:** Job ids, closest first - **Price:** 1 credit per search, +1 for a resume file ## Recommend jobs for a resume `POST https://hirelayer.co/api/v4/jobs/search` Finds the open stored jobs of the workspace closest to a resume. Proximity only: no evaluation, no explanation. Score the chosen ones with `POST /resumes/score`, one call per job. - **Authentication:** `X-API-Key` header - **Content type:** `application/json`, or `multipart/form-data` with files - **Billing:** 1 credit per search, +1 for a resume file - **Client timeout:** at least 60 seconds ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | ### Request body | Field | Type | Required | Description | | --- | --- | --- | --- | | `application_id` | `string` | No | Letters, digits and `. _ : ~ -`, up to 200 characters. | | `resume` | `object` | No | A resume not stored yet; it is stored under your id, or a `text_` id. | | `resume.text` | `string` | Yes | 1–50,000 characters. | | `resume.application_id` | `string` | No | Store the resume under your own id. | | `limit` | `integer` | No | 1–100, default `10`. | | `do_not_store_data` | `boolean` | No | Enterprise plan only, else `403 enterprise_plan_required`: process without storing anything. See [Storage](https://hirelayer.co/api-docs/authentication.md#storage). Default `false`. | Send exactly one of `application_id` or `resume`. ### Example request **cURL** ```bash # Example ids: replace file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. curl -X POST https://hirelayer.co/api/v4/jobs/search \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "application_id": "file_d7e21d373637a897b17b8fdf63122807", "limit": 10 }' ``` **Python** ```python # Example ids: replace file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. import os import requests response = requests.post( "https://hirelayer.co/api/v4/jobs/search", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, json={ "application_id": "file_d7e21d373637a897b17b8fdf63122807", "limit": 10, }, timeout=60, ) response.raise_for_status() data = response.json() print(data["results"]) ``` **TypeScript** ```typescript // Example ids: replace file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. const response = await fetch('https://hirelayer.co/api/v4/jobs/search', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, 'Content-Type': 'application/json', }, body: JSON.stringify({ application_id: 'file_d7e21d373637a897b17b8fdf63122807', limit: 10, }), signal: AbortSignal.timeout(60_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.results) ``` ### Response `200` The closest open jobs, closest first. | Field | Type | Description | | --- | --- | --- | | `request_id` | `string` | The call's id, also in the `HireLayer-Request-Id` header. Quote it when contacting support. | | `application_id` | `string` | | | `results` | `object[]` | | | `results[].rank` | `integer` | ≥ 1. | | `results[].job_id` | `string` | | | `results[].title` | `string \| null` | | | `results[].similarity` | `number` | 0–1. | | `results[].already_scored` | `boolean` | The resume is already scored for this job, or being scored (`pending`); scoring it again costs 0 unless the score is `stale` or its `verdict` was reset. | | `credits_used` | `integer` | Credits this call cost. ≥ 0. | ```json { "request_id": "7e2cf164-ae06-4746-aa6c-4745bdca9209", "application_id": "file_d7e21d373637a897b17b8fdf63122807", "results": [ { "rank": 1, "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea", "title": "AI Engineer / Backend Node.js Developer", "similarity": 0.57, "already_scored": true }, { "rank": 2, "job_id": "computer-vision-ds", "title": "Computer Vision Data Scientist", "similarity": 0.43, "already_scored": false } ], "credits_used": 1 } ``` ### From a resume file request Send the resume as a file in the multipart field `file`: it is parsed and stored first, +1 credit. **cURL** ```bash curl -X POST https://hirelayer.co/api/v4/jobs/search \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -F "file=@resume.pdf;type=application/pdf" ``` **Python** ```python import os import requests with open("resume.pdf", "rb") as file: response = requests.post( "https://hirelayer.co/api/v4/jobs/search", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, files={"file": ("resume.pdf", file, "application/pdf")}, timeout=150, ) response.raise_for_status() data = response.json() print(data["results"]) ``` **TypeScript** ```typescript import { readFile } from 'node:fs/promises' const form = new FormData() form.append( 'file', new Blob([await readFile('resume.pdf')], { type: 'application/pdf' }), 'resume.pdf' ) const response = await fetch('https://hirelayer.co/api/v4/jobs/search', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, body: form, signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.results) ``` The response is the `200` above. ### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `application_id or resume is required.` | `param`: `application_id`. Neither `application_id` nor `resume`, or both. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `resume.text is required.` | `param`: `resume.text`. `resume` without its text. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `file is required: send the resume in the multipart part file.` | `param`: `file`. In multipart, no part `file`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `limit must be an integer from 1 to 100.` | `param`: `limit`. `limit` out of range. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `application_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `application_id`. `application_id` is not a valid id, or is a name the paths reserve. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `Unknown field lang.` | `param`: `lang`. A field the call does not take. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `The request body is not valid JSON.` | The body is not valid JSON, not an object, or not sent as `application/json`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `400` | [`storage_required`](https://hirelayer.co/api-docs/errors.md#storage_required) | `A search reads the stored resumes and jobs: it is not available without storage.` | `param`: `do_not_store_data`. `do_not_store_data: true` (Enterprise plan): a search needs storage. | Do not retry | | `400` | [`storage_required`](https://hirelayer.co/api-docs/errors.md#storage_required) | `This workspace runs without storage (do_not_store_data): a search reads the stored resumes and jobs, so it is not available in it.` | `param`: `HireLayer-Workspace`. The workspace runs without storage. | Do not retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `403` | [`insufficient_credits`](https://hirelayer.co/api-docs/errors.md#insufficient_credits) | `This search parses 1 file and searches, 1 credit each: 2 credits, and 1 is left. Nothing was processed or billed.` | The credits left do not cover the search (and the parse of a file). | Fix, then retry | | `403` | [`enterprise_plan_required`](https://hirelayer.co/api-docs/errors.md#enterprise_plan_required) | `do_not_store_data is available on the Enterprise plan only. Nothing was processed or billed.` | `param`: `do_not_store_data`. `do_not_store_data: true` below the Enterprise plan. | Do not retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No resume cand-42 in workspace default.` | `param`: `application_id`. No resume under `application_id` in the workspace. | Do not retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `file must be 4.5 MB or less.` | `param`: `file`. The file is over 4.5 MB. | Fix, then retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `resume.text must be 50,000 characters or less.` | `param`: `resume.text`. The resume text is over 50,000 characters. | Fix, then retry | | `422` | [`resume_unreadable`](https://hirelayer.co/api-docs/errors.md#resume_unreadable) | `file cannot be read as a resume: it is empty, damaged or in an unsupported format. Nothing was billed.` | `param`: `file`. The file cannot be read as a resume. | Do not retry | | `429` | [`rate_limited`](https://hirelayer.co/api-docs/errors.md#rate_limited) | `Too many files are being parsed at once for this account: retry after the Retry-After delay.` | Too many parses at once. Headers: `Retry-After: `. | Retry with backoff | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`model_unavailable`](https://hirelayer.co/api-docs/errors.md#model_unavailable) | `The analysis did not complete after several attempts. Nothing was stored or billed: retry with backoff.` | The analysis did not complete. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The resume was parsed but could not be stored, so there is nothing to search with: retry in a few seconds.` | `param`: `file`. The resume file was parsed but could not be stored yet. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "application_id or resume is required.", "param": "application_id", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Behavior - **Credits:** 1 per search, +1 when the resume comes as a file (parsed and stored). - **Without storage:** not available (`400 storage_required`), since there are no stored jobs. ## Next - [HireLayer Resume Scorer](https://hirelayer.co/api-docs/score.md): HireLayer Resume Scorer matches candidates to a job description, ranks them and explains each score criterion by criterion, with evidence from the resume. - [HireLayer Talent Pool Search](https://hirelayer.co/api-docs/search-resumes.md): HireLayer resume database search API: find the candidates in your own resume database closest to a new job, filtered by location and date added, in one call. --- # Page: HireLayer Skills Normalizer > HireLayer Skills Normalizer extracts the skills named in a resume or job description and normalizes them to 11,061 taxonomy skills with stable ids. Source: https://hirelayer.co/api-docs/skills · Markdown: https://hirelayer.co/api-docs/skills.md HireLayer Skills Normalizer is an API that extracts the skills named in a resume or a job description and normalizes them to a taxonomy of 11,061 skills, so different wordings of one skill come back under one stable id. One JSON `POST /api/v4/skills/normalize` call takes up to 5,000 characters, such as a resume skills section or the requirements of a job ad, and returns every skill it names in text order, with its type, families, domains and the part of the text it was found in, for 1 credit. A part that matches no skill is listed as unresolved instead of guessed, and nothing is stored. For a resume file, the [Resume Parser](https://hirelayer.co/api-docs/parse-resume.md) returns the skills already resolved to the same taxonomy. - `id`: a stable skill id such as `excel`, to store and filter on whatever wording the text used. - `name`: the canonical name, in the `language` you ask for (`fr` or `en`). - `type`: `hard`, `software`, `certification`, `soft` or `language`. - `families` and `domains`: where the skill sits in the taxonomy, the primary one first. - `broader`: a more general skill to widen a search to (Excel → Microsoft Office), or `null`. - **Endpoint:** `POST /api/v4/skills/normalize` - **Input:** JSON `text`, up to 5,000 characters - **Output:** Taxonomy skills with stable ids, families and domains - **Price:** 1 credit ## Normalize skills `POST https://hirelayer.co/api/v4/skills/normalize` Maps the skills named in a free text to the HireLayer taxonomy. Nothing is stored. - **Authentication:** `X-API-Key` header - **Content type:** `application/json` - **Billing:** 1 credit - **Client timeout:** at least 60 seconds ### Request body | Field | Type | Required | Description | | --- | --- | --- | --- | | `text` | `string` | Yes | 1–5,000 characters. | | `language` | `string` | No | One of: `"fr"`, `"en"`. | ### Example request **cURL** ```bash curl -X POST https://hirelayer.co/api/v4/skills/normalize \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "Google Sheet/Excel", "language": "en" }' ``` **Python** ```python import os import requests response = requests.post( "https://hirelayer.co/api/v4/skills/normalize", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, json={ "text": "Google Sheet/Excel", "language": "en", }, timeout=60, ) response.raise_for_status() data = response.json() print(data["skills"]) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/skills/normalize', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, 'Content-Type': 'application/json', }, body: JSON.stringify({ text: 'Google Sheet/Excel', language: 'en', }), signal: AbortSignal.timeout(60_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.skills) ``` ### Response `200` The taxonomy skills named in the text, in the order of the text. | Field | Type | Description | | --- | --- | --- | | `request_id` | `string` | May be absent. The call's id, also in the `HireLayer-Request-Id` header. Quote it when contacting support. | | `language` | `string` | Language of the names returned. One of: `"fr"`, `"en"`. | | `skills` | `ResolvedSkill[]` | Taxonomy skills named in the text, in the order of the text. | | `skills[].id` | `string` | Stable skill id, e.g. `excel`. Store and filter on it. | | `skills[].name` | `string` | Canonical name in the requested language. | | `skills[].type` | `string` | One of: `"hard"`, `"software"`, `"certification"`, `"soft"`, `"language"`. | | `skills[].families` | `SkillFamilyRef[]` | Families of the skill, the primary one first. | | `skills[].families[].id` | `string` | Stable family id, e.g. `office_software`. | | `skills[].families[].name` | `string` | Family name in the requested language. | | `skills[].families[].domain_id` | `string` | Id of the domain the family belongs to. | | `skills[].domains` | `SkillDomainRef[]` | Domains of those families, the primary one first. | | `skills[].domains[].id` | `string` | Stable domain id, e.g. `data_ai`. | | `skills[].domains[].name` | `string` | Domain name in the requested language. | | `skills[].broader` | `BroaderSkill \| null` | A more general skill to widen a search to (Excel → Microsoft Office), or `null`. | | `skills[].broader.id` | `string` | | | `skills[].broader.name` | `string` | | | `skills[].mention` | `string` | The part of the text the skill was found in. | | `unresolved` | `UnresolvedSkill[]` | Parts of the text that match no taxonomy skill. | | `unresolved[].text` | `string` | Part of the text matching no skill. | | `unresolved[].family_hints` | `object[]` | Families it probably belongs to, possibly none. No skill is guessed. | | `unresolved[].family_hints[].id` | `string` | | | `unresolved[].family_hints[].name` | `string` | | | `taxonomy_version` | `string` | Taxonomy version (`v1`, `v2`…). Results stored with an older version should be resolved again. | | `credits_used` | `integer` | Credits this call cost. ≥ 0. | ```json { "request_id": "1cb1ef90-21a8-43f5-ac73-87b7377c4951", "language": "en", "skills": [ { "id": "google_sheets", "name": "Google Sheets", "type": "software", "mention": "Google Sheet", "families": [ { "id": "office_software", "name": "Office software", "domain_id": "administration_office" }, { "id": "data_analysis", "name": "Data analysis", "domain_id": "data_ai" }, { "id": "business_intelligence", "name": "Business intelligence & data visualization", "domain_id": "data_ai" } ], "domains": [ { "id": "administration_office", "name": "Administration & Office" }, { "id": "data_ai", "name": "Data & AI" } ], "broader": null }, { "id": "excel", "name": "Excel", "type": "software", "mention": "Excel", "families": [ { "id": "office_software", "name": "Office software", "domain_id": "administration_office" }, { "id": "data_analysis", "name": "Data analysis", "domain_id": "data_ai" } ], "domains": [ { "id": "administration_office", "name": "Administration & Office" }, { "id": "data_ai", "name": "Data & AI" } ], "broader": { "id": "microsoft_office", "name": "Microsoft Office" } } ], "unresolved": [], "taxonomy_version": "v1", "credits_used": 1 } ``` ### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `text is required.` | `param`: `text`. No text, or an empty one. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `text must be a string.` | `param`: `text`. `text` is not a string. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `language must be fr or en.` | `param`: `language`. `language` is not `fr` or `en`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `Unknown field lang.` | `param`: `lang`. A field the call does not take. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `The request body is not valid JSON.` | The body is not valid JSON, not an object, or not sent as `application/json`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `403` | [`insufficient_credits`](https://hirelayer.co/api-docs/errors.md#insufficient_credits) | `This call needs 1 credit and none is left. Nothing was processed or billed.` | No credit left. | Fix, then retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `text must be 5,000 characters or less.` | `param`: `text`. The text is over 5,000 characters. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`model_unavailable`](https://hirelayer.co/api-docs/errors.md#model_unavailable) | `The analysis did not complete after several attempts. Nothing was stored or billed: retry with backoff.` | The analysis did not complete. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "text is required.", "param": "text", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Behavior - **Credits:** 1. ## List the skills taxonomy `GET https://hirelayer.co/api/v4/skills` The whole taxonomy, most frequent in resumes first. 1 credit. - **Authentication:** `X-API-Key` header - **Billing:** 1 credit - **Client timeout:** at least 30 seconds ### Query parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `language` | `string` | No | `fr` (default) or `en`. One of: `"fr"`, `"en"`. | ### Example request **cURL** ```bash curl -g "https://hirelayer.co/api/v4/skills?language=en" \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python import os import requests response = requests.get( "https://hirelayer.co/api/v4/skills?language=en", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=30, ) response.raise_for_status() data = response.json() print(data["total"]) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/skills?language=en', { headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(30_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.total) ``` ### Response `200` The taxonomy. | Field | Type | Description | | --- | --- | --- | | `request_id` | `string` | May be absent. The call's id, also in the `HireLayer-Request-Id` header. Quote it when contacting support. | | `language` | `string` | Language of the names returned. One of: `"fr"`, `"en"`. | | `total` | `integer` | Number of skills in the taxonomy. | | `skills` | `TaxonomySkill[]` | The whole taxonomy, most frequent in resumes first. There is no pagination. | | `skills[].id` | `string` | Stable skill id, e.g. `excel`. Store and filter on it. | | `skills[].name` | `string` | Canonical name in the requested language. | | `skills[].type` | `string` | One of: `"hard"`, `"software"`, `"certification"`, `"soft"`, `"language"`. | | `skills[].families` | `SkillFamilyRef[]` | Families of the skill, the primary one first. | | `skills[].families[].id` | `string` | Stable family id, e.g. `office_software`. | | `skills[].families[].name` | `string` | Family name in the requested language. | | `skills[].families[].domain_id` | `string` | Id of the domain the family belongs to. | | `skills[].domains` | `SkillDomainRef[]` | Domains of those families, the primary one first. | | `skills[].domains[].id` | `string` | Stable domain id, e.g. `data_ai`. | | `skills[].domains[].name` | `string` | Domain name in the requested language. | | `skills[].broader` | `BroaderSkill \| null` | A more general skill to widen a search to (Excel → Microsoft Office), or `null`. | | `skills[].broader.id` | `string` | | | `skills[].broader.name` | `string` | | | `taxonomy_version` | `string` | Taxonomy version (`v1`, `v2`…). Results stored with an older version should be resolved again. | | `credits_used` | `integer` | Credits this call cost. ≥ 0. | ```json { "request_id": "b42c2d25-5b88-4404-82b6-817da5b49cca", "language": "en", "total": 11061, "skills": [ { "id": "teamwork", "name": "Teamwork", "type": "soft", "families": [ { "id": "teamwork", "name": "Teamwork & collaboration", "domain_id": "soft_skills" } ], "domains": [ { "id": "soft_skills", "name": "Soft Skills" } ], "broader": null }, { "id": "microsoft_office", "name": "Microsoft Office", "type": "software", "families": [ { "id": "office_software", "name": "Office software", "domain_id": "administration_office" } ], "domains": [ { "id": "administration_office", "name": "Administration & Office" } ], "broader": null } ], "taxonomy_version": "v1", "credits_used": 1 } ``` ### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `language must be fr or en.` | `param`: `language`. `language` is not `fr` or `en`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `403` | [`insufficient_credits`](https://hirelayer.co/api-docs/errors.md#insufficient_credits) | `This call needs 1 credit and none is left. Nothing was processed or billed.` | No credit left. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "language must be fr or en.", "param": "language", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ## Next - [HireLayer Resume Parser](https://hirelayer.co/api-docs/parse-resume.md): Resume parser API reference: send a PDF, Word or image resume in one multipart request and get the candidate back as JSON, photo included, in 70 languages. - [HireLayer Job Criteria Extractor](https://hirelayer.co/api-docs/extract-criteria.md): HireLayer job description parsing API: send a job ad as text or a file and get its typed, weighted criteria back as JSON, for free. --- # Page: Resume database > List, read, store under your own ids and erase the resumes of a workspace: every resume parsed, scored or stored there. Source: https://hirelayer.co/api-docs/resumes · Markdown: https://hirelayer.co/api-docs/resumes.md The resume database of a workspace holds every resume parsed by the [Resume Parser](https://hirelayer.co/api-docs/parse-resume.md), sent to the [Resume Scorer](https://hirelayer.co/api-docs/score.md) or stored with `PUT /resumes/{application_id}`, under its `application_id`. [Talent Pool Search](https://hirelayer.co/api-docs/search-resumes.md) searches it, and the Resume Scorer and [Job Recommendations](https://hirelayer.co/api-docs/search-jobs.md) read a resume by its id. These endpoints are free. ### List stored resumes `GET https://hirelayer.co/api/v4/resumes` The resume database of the workspace, most recently stored first. Free. - **Authentication:** `X-API-Key` header - **Billing:** Free - **Client timeout:** at least 30 seconds #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Query parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `limit` | `integer` | No | Page size. 1–100, default `20`. | | `cursor` | `string` | No | The `next_cursor` of the previous page. | | `added_after` | `string (date-time)` | No | Only resumes stored at or after this time. | #### Example request **cURL** ```bash curl -g "https://hirelayer.co/api/v4/resumes?limit=20" \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python import os import requests response = requests.get( "https://hirelayer.co/api/v4/resumes?limit=20", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=30, ) response.raise_for_status() data = response.json() print(data["data"]) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/resumes?limit=20', { headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(30_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.data) ``` #### Response `200` A page of resumes. | Field | Type | Description | | --- | --- | --- | | `data` | `object[]` | | | `data[].application_id` | `string` | | | `data[].file_name` | `string \| null` | Name of the file the resume was parsed from, as sent. `null` for a resume sent as a text or a parsed JSON. | | `data[].candidate_name` | `string \| null` | May be absent. | | `data[].job_title` | `string \| null` | May be absent. | | `data[].created_at` | `string (date-time)` | | | `data[].updated_at` | `string (date-time)` | | | `next_cursor` | `string \| null` | | #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `limit must be an integer from 1 to 100.` | `param`: `limit`. `limit` out of range. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `cursor is not a next_cursor returned by this API.` | `param`: `cursor`. `cursor` is not a `next_cursor` of this list. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `added_after must be a date or a date-time.` | `param`: `added_after`. `added_after` is not a date. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "limit must be an integer from 1 to 100.", "param": "limit", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Get a stored resume `GET https://hirelayer.co/api/v4/resumes/{application_id}` Get a stored resume. - **Authentication:** `X-API-Key` header - **Billing:** Free - **Client timeout:** at least 30 seconds #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `application_id` | `string` | Yes | The resume's id, including one returned by the legacy `/api/v3/parser` in `info_resume.application_id`. | #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Example request **cURL** ```bash # Example ids: replace file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. curl https://hirelayer.co/api/v4/resumes/file_d7e21d373637a897b17b8fdf63122807 \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python # Example ids: replace file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. import os import requests response = requests.get( "https://hirelayer.co/api/v4/resumes/file_d7e21d373637a897b17b8fdf63122807", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=30, ) response.raise_for_status() data = response.json() print(data["resume"]) ``` **TypeScript** ```typescript // Example ids: replace file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. const response = await fetch('https://hirelayer.co/api/v4/resumes/file_d7e21d373637a897b17b8fdf63122807', { headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(30_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.resume) ``` #### Response `200` The stored resume. | Field | Type | Description | | --- | --- | --- | | `application_id` | `string` | | | `workspace` | `string` | | | `file_name` | `string \| null` | May be absent. Name of the file the resume was parsed from, as sent. `null` for a resume sent as a text or a parsed JSON. | | `text` | `string` | The resume's plain text. | | `resume` | `ParsedResume \| null` | The structured resume, `null` when only plain text was stored. | | `job_ids` | `string[]` | Jobs the resume was scored against. | | `created_at` | `string (date-time)` | | | `updated_at` | `string (date-time)` | | #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `application_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `application_id`. `application_id` in the path is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No resume cand-42 in workspace default.` | `param`: `application_id`. No resume under this id in the workspace. | Do not retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "application_id must contain letters, digits and . _ : ~ -, up to 200 characters.", "param": "application_id", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Store a resume already read `PUT https://hirelayer.co/api/v4/resumes/{application_id}` Stores under your `application_id` a resume you already have as text, or as the parsed resume JSON of `POST /resumes/parse`. Replaces the resume stored before. When its text changes, its scores become `stale` and are evaluated again only when asked; the same text sent again leaves them as they are. Free. To store a file, use `POST /resumes/parse` with `application_id`. - **Authentication:** `X-API-Key` header - **Content type:** `application/json` - **Billing:** Free - **Client timeout:** at least 60 seconds #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `application_id` | `string` | Yes | The resume's id, including one returned by the legacy `/api/v3/parser` in `info_resume.application_id`. | #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Request body | Field | Type | Required | Description | | --- | --- | --- | --- | | `text` | `string` | No | The resume as plain text. 1–50,000 characters. | | `resume` | `object` | No | The parsed resume JSON, from `POST /resumes/parse` (`resume`) or the legacy `/api/v3/parser`, kept as is, 1 MB at most (`413`), arrays and objects nested 100 levels deep at most (`400`). | Send exactly one of `text` or `resume`. #### Example request **cURL** ```bash curl -X PUT https://hirelayer.co/api/v4/resumes/cand-1042 \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "text": "Alex Morgan, Senior Software Engineer in Paris. 7 years of Node.js and TypeScript…" }' ``` **Python** ```python import os import requests response = requests.put( "https://hirelayer.co/api/v4/resumes/cand-1042", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, json={ "text": "Alex Morgan, Senior Software Engineer in Paris. 7 years of Node.js and TypeScript…", }, timeout=60, ) response.raise_for_status() data = response.json() print(data["application_id"]) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/resumes/cand-1042', { method: 'PUT', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, 'Content-Type': 'application/json', }, body: JSON.stringify({ text: 'Alex Morgan, Senior Software Engineer in Paris. 7 years of Node.js and TypeScript…', }), signal: AbortSignal.timeout(60_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.application_id) ``` #### Response `200` Replaced. | Field | Type | Description | | --- | --- | --- | | `application_id` | `string` | | | `workspace` | `string` | | | `file_name` | `string \| null` | May be absent. Name of the file the resume was parsed from, as sent. `null` for a resume sent as a text or a parsed JSON. | | `text` | `string` | The resume's plain text. | | `resume` | `ParsedResume \| null` | The structured resume, `null` when only plain text was stored. | | `job_ids` | `string[]` | Jobs the resume was scored against. | | `created_at` | `string (date-time)` | | | `updated_at` | `string (date-time)` | | #### Response `201` Created. | Field | Type | Description | | --- | --- | --- | | `application_id` | `string` | | | `workspace` | `string` | | | `file_name` | `string \| null` | May be absent. Name of the file the resume was parsed from, as sent. `null` for a resume sent as a text or a parsed JSON. | | `text` | `string` | The resume's plain text. | | `resume` | `ParsedResume \| null` | The structured resume, `null` when only plain text was stored. | | `job_ids` | `string[]` | Jobs the resume was scored against. | | `created_at` | `string (date-time)` | | | `updated_at` | `string (date-time)` | | #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `text or resume is required.` | `param`: `text`. Neither `text` nor `resume`, or both. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `text must be a string.` | `param`: `text`. `text` is not a string. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `resume must be the JSON object returned by the Resume Parser.` | `param`: `resume`. `resume` is not a parsed resume, or has no `info_resume.text`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `application_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `application_id`. `application_id` in the path is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `Unknown field candidate.` | `param`: `candidate`. A field the call does not take. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `The request body is not valid JSON.` | The body is not valid JSON, not an object, or not sent as `application/json`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `400` | [`storage_required`](https://hirelayer.co/api-docs/errors.md#storage_required) | `This workspace runs without storage (do_not_store_data): nothing can be stored in it.` | `param`: `HireLayer-Workspace`. The workspace runs without storage, and the call would store something in it. | Do not retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `text must be 50,000 characters or less.` | `param`: `text`. The text is over 50,000 characters. | Fix, then retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `resume must be 1 MB or less.` | `param`: `resume`. The parsed resume is over 1 MB. | Fix, then retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `The request body must be 10 MB or less.` | The body is over 10 MB. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "text or resume is required.", "param": "text", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Erase a resume `DELETE https://hirelayer.co/api/v4/resumes/{application_id}` Erases the resume, its file and all its scores (GDPR erasure). Erasing a resume that does not exist is not an error. Free. - **Authentication:** `X-API-Key` header - **Billing:** Free - **Client timeout:** at least 30 seconds #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `application_id` | `string` | Yes | The resume's id, including one returned by the legacy `/api/v3/parser` in `info_resume.application_id`. | #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Example request **cURL** ```bash curl -X DELETE https://hirelayer.co/api/v4/resumes/cand-1042 \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python import os import requests response = requests.delete( "https://hirelayer.co/api/v4/resumes/cand-1042", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=30, ) response.raise_for_status() print(response.status_code) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/resumes/cand-1042', { method: 'DELETE', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(30_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } console.log(response.status) ``` #### Response `204` Erased. #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `application_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `application_id`. `application_id` in the path is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The erasure could not be finished: send the same call again to finish it.` | An erasure could not be finished: the same call finishes it. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "application_id must contain letters, digits and . _ : ~ -, up to 200 characters.", "param": "application_id", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ## Next - [Jobs and scores](https://hirelayer.co/api-docs/jobs.md): List, store under your own ids and delete the jobs of a workspace, edit their criteria, and read their ranking again with the recruiter’s priorities. - [HireLayer Talent Pool Search](https://hirelayer.co/api-docs/search-resumes.md): HireLayer resume database search API: find the candidates in your own resume database closest to a new job, filtered by location and date added, in one call. --- # Page: Jobs and scores > List, store under your own ids and delete the jobs of a workspace, edit their criteria, and read their ranking again with the recruiter’s priorities. Source: https://hirelayer.co/api-docs/jobs · Markdown: https://hirelayer.co/api-docs/jobs.md A job is stored with its criteria under its `job_id` by the [Job Criteria Extractor](https://hirelayer.co/api-docs/extract-criteria.md), the [Resume Scorer](https://hirelayer.co/api-docs/score.md) or `PUT /jobs/{job_id}`, and every score the Resume Scorer computes is stored with it. Only jobs with `status: "open"` are searched by [Job Recommendations](https://hirelayer.co/api-docs/search-jobs.md): close one with `{"status": "closed"}`. - Listing, reading, storing and deleting jobs and scores is free, and so are removing a criterion and changing its `weight`, `requirement` or `type`: the stored scores are re-ranked at once. - Adding a criterion, rewording one (`label` or `threshold`), or sending new `criteria` or `recompute_criteria: true` to `PUT /jobs/{job_id}` evaluates the job’s stored scores again, 1 credit each. - Reading the ranking with `precise_ranking=true` adds the ranking reasons, 1 credit per read. ## Jobs ### List stored jobs `GET https://hirelayer.co/api/v4/jobs` The jobs of the workspace, most recently updated first. Free. - **Authentication:** `X-API-Key` header - **Billing:** Free - **Client timeout:** at least 30 seconds #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Query parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `limit` | `integer` | No | Page size. 1–100, default `20`. | | `cursor` | `string` | No | The `next_cursor` of the previous page. | | `status` | `string` | No | Only open jobs are found by `POST /jobs/search`. One of: `"open"`, `"closed"`. | #### Example request **cURL** ```bash curl -g "https://hirelayer.co/api/v4/jobs?status=open" \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python import os import requests response = requests.get( "https://hirelayer.co/api/v4/jobs?status=open", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=30, ) response.raise_for_status() data = response.json() print(data["data"]) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/jobs?status=open', { headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(30_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.data) ``` #### Response `200` A page of jobs. | Field | Type | Description | | --- | --- | --- | | `data` | `object[]` | | | `data[].job_id` | `string` | | | `data[].workspace` | `string` | | | `data[].title` | `string \| null` | | | `data[].text` | `string` | The job description. | | `data[].location` | `string \| null` | | | `data[].language` | `string` | Language of the job's criteria labels and thresholds, score summaries and explanations, and ranking reasons. Sent, it is kept; left out, it is the language of the job's text when the job is created, and `en` when that text is in another language or its language cannot be told. One of: `"en"`, `"fr"`, `"de"`, `"es"`, `"pt"`. | | `data[].status` | `string` | Only open jobs are found by `POST /jobs/search`. One of: `"open"`, `"closed"`. | | `data[].criteria` | `object[]` | | | `data[].criteria[].criterion_id` | `string` | Stable id in the job, such as `crit_2`. Never reused. | | `data[].criteria[].label` | `string` | | | `data[].criteria[].type` | `string` | One of: `"skill"`, `"experience"`, `"education"`, `"language"`, `"certification"`, `"location"`, `"soft_skill"`, `"other"`. | | `data[].criteria[].requirement` | `string` | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `data[].criteria[].weight` | `integer` | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `data[].criteria[].threshold` | `string \| null` | | | `data[].criteria[].source` | `string` | `extracted` by HireLayer, or `custom`: sent or edited by you. One of: `"extracted"`, `"custom"`. | | `data[].scores_count` | `integer` | ≥ 0. | | `data[].created_at` | `string (date-time)` | | | `data[].updated_at` | `string (date-time)` | | | `next_cursor` | `string \| null` | | #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `status must be open or closed.` | `param`: `status`. `status` is not `open` or `closed`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `limit must be an integer from 1 to 100.` | `param`: `limit`. `limit` out of range. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `cursor is not a next_cursor returned by this API.` | `param`: `cursor`. `cursor` is not a `next_cursor` of this list. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "status must be open or closed.", "param": "status", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Get a stored job `GET https://hirelayer.co/api/v4/jobs/{job_id}` Get a stored job. - **Authentication:** `X-API-Key` header - **Billing:** Free - **Client timeout:** at least 30 seconds #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | `string` | Yes | Letters, digits and `. _ : ~ -`, up to 200 characters. | #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Example request **cURL** ```bash # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. curl https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. import os import requests response = requests.get( "https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=30, ) response.raise_for_status() data = response.json() print(data["criteria"]) ``` **TypeScript** ```typescript // Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. const response = await fetch('https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea', { headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(30_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.criteria) ``` #### Response `200` The job and its criteria. | Field | Type | Description | | --- | --- | --- | | `job_id` | `string` | | | `workspace` | `string` | | | `title` | `string \| null` | | | `text` | `string` | The job description. | | `location` | `string \| null` | | | `language` | `string` | Language of the job's criteria labels and thresholds, score summaries and explanations, and ranking reasons. Sent, it is kept; left out, it is the language of the job's text when the job is created, and `en` when that text is in another language or its language cannot be told. One of: `"en"`, `"fr"`, `"de"`, `"es"`, `"pt"`. | | `status` | `string` | Only open jobs are found by `POST /jobs/search`. One of: `"open"`, `"closed"`. | | `criteria` | `object[]` | | | `criteria[].criterion_id` | `string` | Stable id in the job, such as `crit_2`. Never reused. | | `criteria[].label` | `string` | | | `criteria[].type` | `string` | One of: `"skill"`, `"experience"`, `"education"`, `"language"`, `"certification"`, `"location"`, `"soft_skill"`, `"other"`. | | `criteria[].requirement` | `string` | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `criteria[].weight` | `integer` | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `criteria[].threshold` | `string \| null` | | | `criteria[].source` | `string` | `extracted` by HireLayer, or `custom`: sent or edited by you. One of: `"extracted"`, `"custom"`. | | `scores_count` | `integer` | ≥ 0. | | `created_at` | `string (date-time)` | | | `updated_at` | `string (date-time)` | | ```json { "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea", "workspace": "docs-examples", "title": "AI Engineer / Backend Node.js Developer", "text": "AI Engineer / Backend Node.js Developer\nLumio · Paris 9e · Permanent · Hybrid (2 days of remote work a week)\n\nLumio builds a SaaS platform that automates the processing of administrative documents for accounting firms (300 clients, 2 million documents a month). Our product team has 14 people.\n\nWhat you will do\n- Design and evolve the platform's backend APIs (Node.js, TypeScript)\n- Put language models into production: RAG, structured extraction, evaluation of answer quality\n- Deploy and monitor the AWS infrastructure (Lambda, S3, DynamoDB) with Terraform\n- Take part in code reviews and mentor two junior developers\n\nWho you are\n- Engineering degree or master's in computer science\n- At least 3 years of backend development with Node.js / TypeScript\n- Hands-on experience integrating LLMs in production is required\n- You know AWS well (Lambda, S3, DynamoDB); an AWS certification is a plus\n- Fluent English (B2 minimum) is required: part of our clients are abroad\n- Ideally, a first experience leading developers\n- You accept one week of on-call duty every six weeks\n\nWhat we offer\n- Salary of €55k to €65k depending on experience, plus stock options\n- Meal vouchers, health insurance fully covered\n- Start as soon as possible", "location": null, "language": "en", "status": "open", "criteria": [ { "criterion_id": "crit_1", "label": "Engineering degree or Master's in Computer Science", "type": "education", "requirement": "preferred", "weight": 2, "threshold": "Master's level", "source": "extracted" }, { "criterion_id": "crit_2", "label": "Backend development with Node.js / TypeScript", "type": "skill", "requirement": "preferred", "weight": 3, "threshold": "3 years minimum", "source": "extracted" }, { "criterion_id": "crit_3", "label": "Integrating LLMs in production", "type": "skill", "requirement": "required", "weight": 3, "threshold": null, "source": "extracted" }, { "criterion_id": "crit_4", "label": "AWS (Lambda, S3, DynamoDB)", "type": "skill", "requirement": "preferred", "weight": 2, "threshold": null, "source": "extracted" }, { "criterion_id": "crit_5", "label": "AWS certification", "type": "certification", "requirement": "bonus", "weight": 1, "threshold": null, "source": "extracted" }, { "criterion_id": "crit_6", "label": "English", "type": "language", "requirement": "required", "weight": 2, "threshold": "B2 minimum", "source": "extracted" }, { "criterion_id": "crit_7", "label": "Leading developers", "type": "experience", "requirement": "bonus", "weight": 2, "threshold": null, "source": "extracted" }, { "criterion_id": "crit_8", "label": "On-call duty", "type": "other", "requirement": "required", "weight": 1, "threshold": "1 week every 6 weeks", "source": "extracted" }, { "criterion_id": "crit_9", "label": "Location", "type": "location", "requirement": "preferred", "weight": 1, "threshold": "Paris 9e, hybrid", "source": "extracted" } ], "scores_count": 2, "created_at": "2026-10-29T12:42:27.160Z", "updated_at": "2026-10-29T12:42:27.160Z" } ``` #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `job_id`. `job_id` in the path is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No job req-7 in workspace default.` | `param`: `job_id`. No job under this id in the workspace. | Do not retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "job_id must contain letters, digits and . _ : ~ -, up to 200 characters.", "param": "job_id", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Store a job under your id `PUT https://hirelayer.co/api/v4/jobs/{job_id}` Creates or updates a job under your `job_id`, for an ATS that keeps its own ids. Without `criteria` on creation, they are extracted from its `text`, as by `POST /jobs/extract-criteria`. On update, criteria are kept unless you send `criteria` or `recompute_criteria: true`; a criterion with the same label and threshold as a current one keeps its id and its per-criterion results. - **Authentication:** `X-API-Key` header - **Content type:** `application/json` - **Billing:** Free; 1 credit per stored score evaluated again - **Client timeout:** at least 150 seconds #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | `string` | Yes | Letters, digits and `. _ : ~ -`, up to 200 characters. | #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Request body | Field | Type | Required | Description | | --- | --- | --- | --- | | `text` | `string` | No | The job description. Required to create the job. 30–50,000 characters. | | `title` | `string \| null` | No | `null` erases it. ≤ 300 characters. | | `location` | `string \| null` | No | `null` erases it. ≤ 300 characters. | | `status` | `string` | No | Only open jobs are found by `POST /jobs/search`. One of: `"open"`, `"closed"`. | | `language` | `string` | No | Language of the job's criteria labels and thresholds, score summaries and explanations, and ranking reasons. Sent, it is kept; left out, it is the language of the job's text when the job is created, and `en` when that text is in another language or its language cannot be told. One of: `"en"`, `"fr"`, `"de"`, `"es"`, `"pt"`. | | `criteria` | `object[]` | No | 1–20 items. | | `criteria[].label` | `string` | Yes | 1–300 characters. | | `criteria[].type` | `string` | No | One of: `"skill"`, `"experience"`, `"education"`, `"language"`, `"certification"`, `"location"`, `"soft_skill"`, `"other"`. | | `criteria[].requirement` | `string` | No | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `criteria[].weight` | `integer` | No | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `criteria[].threshold` | `string \| null` | No | Minimum level in short text, such as `3 ans minimum`, `Bac+2` or `B2`. ≤ 100 characters. | | `criteria[].criterion_id` | `string` | No | | | `criteria[].source` | `string` | No | | | `recompute_criteria` | `boolean` | No | Extract the criteria again from `text`. Not with `criteria`. Default `false`. | #### Example request **cURL** ```bash curl -X PUT https://hirelayer.co/api/v4/jobs/req-2026-114 \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "AI Engineer / Backend Node.js Developer", "text": "AI Engineer / Backend Node.js Developer\nLumio · Paris 9e · Permanent · Hybrid (2 days of remote work a week)\n- At least 3 years of backend development with Node.js / TypeScript\n- Hands-on experience integrating LLMs in production is required\n- You know AWS well (Lambda, S3, DynamoDB); an AWS certification is a plus\n- Fluent English (B2 minimum) is required", "location": "Paris", "status": "open" }' ``` **Python** ```python import os import requests response = requests.put( "https://hirelayer.co/api/v4/jobs/req-2026-114", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, json={ "title": "AI Engineer / Backend Node.js Developer", "text": "AI Engineer / Backend Node.js Developer\nLumio · Paris 9e · Permanent · Hybrid (2 days of remote work a week)\n- At least 3 years of backend development with Node.js / TypeScript\n- Hands-on experience integrating LLMs in production is required\n- You know AWS well (Lambda, S3, DynamoDB); an AWS certification is a plus\n- Fluent English (B2 minimum) is required", "location": "Paris", "status": "open", }, timeout=150, ) response.raise_for_status() data = response.json() print(data["criteria"]) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/jobs/req-2026-114', { method: 'PUT', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, 'Content-Type': 'application/json', }, body: JSON.stringify({ title: 'AI Engineer / Backend Node.js Developer', text: 'AI Engineer / Backend Node.js Developer\nLumio · Paris 9e · Permanent · Hybrid (2 days of remote work a week)\n- At least 3 years of backend development with Node.js / TypeScript\n- Hands-on experience integrating LLMs in production is required\n- You know AWS well (Lambda, S3, DynamoDB); an AWS certification is a plus\n- Fluent English (B2 minimum) is required', location: 'Paris', status: 'open', }), signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.criteria) ``` #### Response `200` Updated. | Field | Type | Description | | --- | --- | --- | | `job_id` | `string` | | | `workspace` | `string` | | | `title` | `string \| null` | | | `text` | `string` | The job description. | | `location` | `string \| null` | | | `language` | `string` | Language of the job's criteria labels and thresholds, score summaries and explanations, and ranking reasons. Sent, it is kept; left out, it is the language of the job's text when the job is created, and `en` when that text is in another language or its language cannot be told. One of: `"en"`, `"fr"`, `"de"`, `"es"`, `"pt"`. | | `status` | `string` | Only open jobs are found by `POST /jobs/search`. One of: `"open"`, `"closed"`. | | `criteria` | `object[]` | | | `criteria[].criterion_id` | `string` | Stable id in the job, such as `crit_2`. Never reused. | | `criteria[].label` | `string` | | | `criteria[].type` | `string` | One of: `"skill"`, `"experience"`, `"education"`, `"language"`, `"certification"`, `"location"`, `"soft_skill"`, `"other"`. | | `criteria[].requirement` | `string` | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `criteria[].weight` | `integer` | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `criteria[].threshold` | `string \| null` | | | `criteria[].source` | `string` | `extracted` by HireLayer, or `custom`: sent or edited by you. One of: `"extracted"`, `"custom"`. | | `scores_count` | `integer` | ≥ 0. | | `created_at` | `string (date-time)` | | | `updated_at` | `string (date-time)` | | #### Response `201` Created. | Field | Type | Description | | --- | --- | --- | | `job_id` | `string` | | | `workspace` | `string` | | | `title` | `string \| null` | | | `text` | `string` | The job description. | | `location` | `string \| null` | | | `language` | `string` | Language of the job's criteria labels and thresholds, score summaries and explanations, and ranking reasons. Sent, it is kept; left out, it is the language of the job's text when the job is created, and `en` when that text is in another language or its language cannot be told. One of: `"en"`, `"fr"`, `"de"`, `"es"`, `"pt"`. | | `status` | `string` | Only open jobs are found by `POST /jobs/search`. One of: `"open"`, `"closed"`. | | `criteria` | `object[]` | | | `criteria[].criterion_id` | `string` | Stable id in the job, such as `crit_2`. Never reused. | | `criteria[].label` | `string` | | | `criteria[].type` | `string` | One of: `"skill"`, `"experience"`, `"education"`, `"language"`, `"certification"`, `"location"`, `"soft_skill"`, `"other"`. | | `criteria[].requirement` | `string` | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `criteria[].weight` | `integer` | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `criteria[].threshold` | `string \| null` | | | `criteria[].source` | `string` | `extracted` by HireLayer, or `custom`: sent or edited by you. One of: `"extracted"`, `"custom"`. | | `scores_count` | `integer` | ≥ 0. | | `created_at` | `string (date-time)` | | | `updated_at` | `string (date-time)` | | #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `text must be 30 characters or more: send the job's full text.` | `param`: `text`. `text` is under 30 characters. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `text is required to create a job.` | `param`: `text`. A new job without its text. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `status must be open or closed.` | `param`: `status`. `status` is not `open` or `closed`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `criteria[0].weight must be 0, 1, 2 or 3.` | `param`: `criteria[0].weight`. A criterion breaks a rule (here its weight): `param` names the field. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `criteria must hold 1 to 20 criteria.` | `param`: `criteria`. No criterion, or more than 20. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `criteria[1] repeats criteria[0] (same label and threshold).` | `param`: `criteria[1].label`. Two criteria with the same label and threshold. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `title must be 300 characters or less.` | `param`: `title`. `title` or `location` over 300 characters. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `job_id`. `job_id` in the path is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `Unknown field description.` | `param`: `description`. A field the call does not take. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `The request body is not valid JSON.` | The body is not valid JSON, not an object, or not sent as `application/json`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `400` | [`storage_required`](https://hirelayer.co/api-docs/errors.md#storage_required) | `This workspace runs without storage (do_not_store_data): nothing can be stored in it.` | `param`: `HireLayer-Workspace`. The workspace runs without storage, and the call would store something in it. | Do not retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `403` | [`insufficient_credits`](https://hirelayer.co/api-docs/errors.md#insufficient_credits) | `This call evaluates 12 scores, 1 credit each: 12 credits, and 3 are left. Nothing was processed or billed.` | The change evaluates the job's stored scores again, and the credits left do not cover them. | Fix, then retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `text must be 50,000 characters or less.` | `param`: `text`. The text is over 50,000 characters. | Fix, then retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `The request body must be 10 MB or less.` | The body is over 10 MB. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`model_unavailable`](https://hirelayer.co/api-docs/errors.md#model_unavailable) | `The analysis did not complete after several attempts. Nothing was stored or billed: retry with backoff.` | The analysis did not complete. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "text must be 30 characters or more: send the job's full text.", "param": "text", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` #### Behavior - **Partial update:** a field left out keeps its stored value (`text`, `title`, `location`, `status`, `language`, and the criteria as above); `null` erases `title` or `location`. To close a job, send `{"status": "closed"}`. `text` is required only to create a job: an unknown `job_id` without `text` is refused (`400`, `param: text`). A `text` holds at least 30 characters. - **Language:** `en`, `fr`, `de`, `es` or `pt`, for the criteria extracted and the scores' summaries and explanations. Left out on creation, it is the language of `text` (`en` for a text in any other language); on update, the stored one stays. Criteria already extracted keep their wording: send `recompute_criteria: true` to extract them again in a new `language`. - **Without storage:** refused in a workspace without storage (`400 storage_required`). - **Credits:** 0, plus 1 per stored score evaluated again because criteria were added, reworded or extracted again. - **Verdicts:** a criterion added, removed or reworded sets the `verdict` of the job's scores to `null`. Each comes back when its resume is sent again to `POST /resumes/score` for this job (1 credit, a full evaluation). ### Delete a job `DELETE https://hirelayer.co/api/v4/jobs/{job_id}` Deletes the job, its criteria and its scores. The resumes stay. Deleting a job that does not exist is not an error. Free. - **Authentication:** `X-API-Key` header - **Billing:** Free - **Client timeout:** at least 30 seconds #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | `string` | Yes | Letters, digits and `. _ : ~ -`, up to 200 characters. | #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Example request **cURL** ```bash curl -X DELETE https://hirelayer.co/api/v4/jobs/req-2026-114 \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python import os import requests response = requests.delete( "https://hirelayer.co/api/v4/jobs/req-2026-114", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=30, ) response.raise_for_status() print(response.status_code) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/jobs/req-2026-114', { method: 'DELETE', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(30_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } console.log(response.status) ``` #### Response `204` Deleted. #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `job_id`. `job_id` in the path is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "job_id must contain letters, digits and . _ : ~ -, up to 200 characters.", "param": "job_id", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ## Criteria ### Add a criterion `POST https://hirelayer.co/api/v4/jobs/{job_id}/criteria` Adds a criterion. The job's stored scores are evaluated on it in the background, 1 credit each (their `evaluation_status` is `pending` meanwhile), and their `verdict` is `null` until their next full evaluation (see `Verdict`). - **Authentication:** `X-API-Key` header - **Content type:** `application/json` - **Billing:** 1 credit per stored score of the job - **Client timeout:** at least 150 seconds #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | `string` | Yes | Letters, digits and `. _ : ~ -`, up to 200 characters. | #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Request body | Field | Type | Required | Description | | --- | --- | --- | --- | | `label` | `string` | Yes | 1–300 characters. | | `type` | `string` | No | One of: `"skill"`, `"experience"`, `"education"`, `"language"`, `"certification"`, `"location"`, `"soft_skill"`, `"other"`. | | `requirement` | `string` | No | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `weight` | `integer` | No | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `threshold` | `string \| null` | No | Minimum level in short text, such as `3 ans minimum`, `Bac+2` or `B2`. ≤ 100 characters. | | `criterion_id` | `string` | No | | | `source` | `string` | No | | #### Example request **cURL** ```bash # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. curl -X POST https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/criteria \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "label": "Terraform", "type": "skill", "requirement": "preferred", "weight": 2 }' ``` **Python** ```python # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. import os import requests response = requests.post( "https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/criteria", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, json={ "label": "Terraform", "type": "skill", "requirement": "preferred", "weight": 2, }, timeout=150, ) response.raise_for_status() data = response.json() print(data["criterion_id"]) ``` **TypeScript** ```typescript // Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. const response = await fetch('https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/criteria', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, 'Content-Type': 'application/json', }, body: JSON.stringify({ label: 'Terraform', type: 'skill', requirement: 'preferred', weight: 2, }), signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.criterion_id) ``` #### Response `201` Added. | Field | Type | Description | | --- | --- | --- | | `criterion_id` | `string` | Stable id in the job, such as `crit_2`. Never reused. | | `label` | `string` | | | `type` | `string` | One of: `"skill"`, `"experience"`, `"education"`, `"language"`, `"certification"`, `"location"`, `"soft_skill"`, `"other"`. | | `requirement` | `string` | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `weight` | `integer` | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `threshold` | `string \| null` | | | `source` | `string` | `extracted` by HireLayer, or `custom`: sent or edited by you. One of: `"extracted"`, `"custom"`. | #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `label is required.` | `param`: `label`. No label. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `type must be one of skill, experience, education, language, certification, location, soft_skill, other.` | `param`: `type`. A field out of its values (here `type`): `param` names it. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `weight must be 0, 1, 2 or 3.` | `param`: `weight`. A criterion breaks a rule (here its weight): `param` names the field. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `A job has at most 20 criteria.` | The job has 20 criteria already. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `Criterion crit_3 already has this label and threshold.` | `param`: `label`. Another criterion of the job has the same label and threshold. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `job_id`. `job_id` in the path is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `Unknown field name.` | `param`: `name`. A field the call does not take. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `The request body is not valid JSON.` | The body is not valid JSON, not an object, or not sent as `application/json`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `400` | [`storage_required`](https://hirelayer.co/api-docs/errors.md#storage_required) | `This workspace runs without storage (do_not_store_data): nothing can be stored in it.` | `param`: `HireLayer-Workspace`. The workspace runs without storage, and the call would store something in it. | Do not retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `403` | [`insufficient_credits`](https://hirelayer.co/api-docs/errors.md#insufficient_credits) | `This call evaluates 12 scores, 1 credit each: 12 credits, and 3 are left. Nothing was processed or billed.` | The change evaluates the job's stored scores again, and the credits left do not cover them. | Fix, then retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No job req-7 in workspace default.` | `param`: `job_id`. No job under this id in the workspace. | Do not retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `The request body must be 10 MB or less.` | The body is over 10 MB. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "label is required.", "param": "label", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Change a criterion `PATCH https://hirelayer.co/api/v4/jobs/{job_id}/criteria/{criterion_id}` A new `weight`, `requirement` or `type` re-ranks at once, for free; weight 0 turns the criterion off. A new `label` or `threshold` evaluates the criterion again on the job's stored scores, 1 credit each, and sets their `verdict` to `null` until their next full evaluation. - **Authentication:** `X-API-Key` header - **Content type:** `application/json` - **Billing:** Free for weight, requirement and type; 1 credit per stored score for label or threshold - **Client timeout:** at least 150 seconds In a workspace without storage, refused (`400 storage_required`), as `POST /jobs/{job_id}/criteria` is; removing a criterion stays allowed. #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | `string` | Yes | Letters, digits and `. _ : ~ -`, up to 200 characters. | | `criterion_id` | `string` | Yes | | #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Request body | Field | Type | Required | Description | | --- | --- | --- | --- | | `label` | `string` | No | 1–300 characters. | | `type` | `string` | No | One of: `"skill"`, `"experience"`, `"education"`, `"language"`, `"certification"`, `"location"`, `"soft_skill"`, `"other"`. | | `requirement` | `string` | No | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `weight` | `integer` | No | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `threshold` | `string \| null` | No | ≤ 100 characters. | #### Example request **cURL** ```bash # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. curl -X PATCH https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/criteria/crit_7 \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "weight": 0 }' ``` **Python** ```python # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. import os import requests response = requests.patch( "https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/criteria/crit_7", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, json={ "weight": 0, }, timeout=150, ) response.raise_for_status() data = response.json() print(data["weight"]) ``` **TypeScript** ```typescript // Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. const response = await fetch('https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/criteria/crit_7', { method: 'PATCH', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, 'Content-Type': 'application/json', }, body: JSON.stringify({ weight: 0, }), signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.weight) ``` #### Response `200` Changed. | Field | Type | Description | | --- | --- | --- | | `criterion_id` | `string` | Stable id in the job, such as `crit_2`. Never reused. | | `label` | `string` | | | `type` | `string` | One of: `"skill"`, `"experience"`, `"education"`, `"language"`, `"certification"`, `"location"`, `"soft_skill"`, `"other"`. | | `requirement` | `string` | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `weight` | `integer` | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `threshold` | `string \| null` | | | `source` | `string` | `extracted` by HireLayer, or `custom`: sent or edited by you. One of: `"extracted"`, `"custom"`. | #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `Send at least one field to change.` | An empty body. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `weight must be 0, 1, 2 or 3.` | `param`: `weight`. A criterion breaks a rule (here its weight): `param` names the field. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `criterion_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `criterion_id`. `criterion_id` in the path is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `Unknown field name.` | `param`: `name`. A field the call does not take. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `The request body is not valid JSON.` | The body is not valid JSON, not an object, or not sent as `application/json`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `400` | [`storage_required`](https://hirelayer.co/api-docs/errors.md#storage_required) | `This workspace runs without storage (do_not_store_data): nothing can be stored in it.` | `param`: `HireLayer-Workspace`. The workspace runs without storage, and the call would store something in it. | Do not retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `403` | [`insufficient_credits`](https://hirelayer.co/api-docs/errors.md#insufficient_credits) | `This call evaluates 12 scores, 1 credit each: 12 credits, and 3 are left. Nothing was processed or billed.` | The change evaluates the job's stored scores again, and the credits left do not cover them. | Fix, then retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No job req-7 in workspace default.` | `param`: `job_id`. No job under this id in the workspace. | Do not retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No criterion crit_9 in job req-7.` | `param`: `criterion_id`. No such criterion in the job. | Do not retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `The request body must be 10 MB or less.` | The body is over 10 MB. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "Send at least one field to change.", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Remove a criterion `DELETE https://hirelayer.co/api/v4/jobs/{job_id}/criteria/{criterion_id}` The criterion leaves the scores at once, with no new evaluation, and the `verdict` of the job's scores is `null` until their next full evaluation. A job keeps at least one criterion. Free. - **Authentication:** `X-API-Key` header - **Billing:** Free - **Client timeout:** at least 30 seconds #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | `string` | Yes | Letters, digits and `. _ : ~ -`, up to 200 characters. | | `criterion_id` | `string` | Yes | | #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Example request **cURL** ```bash # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. curl -X DELETE https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/criteria/crit_7 \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. import os import requests response = requests.delete( "https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/criteria/crit_7", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=30, ) response.raise_for_status() print(response.status_code) ``` **TypeScript** ```typescript // Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. const response = await fetch('https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/criteria/crit_7', { method: 'DELETE', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(30_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } console.log(response.status) ``` #### Response `204` Removed. #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `A job keeps at least one criterion: add the new one before deleting this one.` | The job's last criterion. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `criterion_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `criterion_id`. `criterion_id` in the path is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No job req-7 in workspace default.` | `param`: `job_id`. No job under this id in the workspace. | Do not retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No criterion crit_9 in job req-7.` | `param`: `criterion_id`. No such criterion in the job. | Do not retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "A job keeps at least one criterion: add the new one before deleting this one.", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ## Scores Read a job’s ranking again as often as needed, with other weights for one view (`?weights[crit_3]=0`), without evaluating anything again. Detaching a resume deletes its score and keeps the resume. ### Read a job's ranking `GET https://hirelayer.co/api/v4/jobs/{job_id}/scores` The stored scores of a job, best first, scored at read time with the priorities of this read. Free. `precise_ranking=true` costs 1 credit per read: it compares the 10 best of all the job's resumes and adds `ranking_reason`, and is billed when it ranks at least 2 completed scores (`credits_used`). It is made again only when those 10, the job's description or the priorities of the read (weights and requirements) change. In a workspace without storage (set after its jobs were stored), it is made again at every read and never kept. - **Authentication:** `X-API-Key` header - **Billing:** Free; 1 with precise_ranking=true - **Client timeout:** at least 60 seconds #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | `string` | Yes | Letters, digits and `. _ : ~ -`, up to 200 characters. | #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Query parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `limit` | `integer` | No | Page size. 1–100, default `20`. | | `cursor` | `string` | No | The `next_cursor` of the previous page. | | `weights` | `object` | No | Weights for this read only, by criterion id, such as `weights[crit_3]=0`. 0 turns a criterion off. | | `requirements` | `object` | No | Requirements for this read only, by criterion id, such as `requirements[crit_1]=required`. | | `min_score` | `number` | No | Only scores at least this high. 0–1. | | `include` | `string` | No | `criteria` adds the per-criterion detail to each score. Value: `"criteria"`. | | `precise_ranking` | `boolean` | No | Re-rank the 10 best of all the job's resumes and add `ranking_reason`. 1 credit. Default `false`. | | `request_id` | `string` | No | Only the resumes of one scoring call, as `results_url` gives it: all of them from the start, each with its id (yours, or derived from its file or text on receipt), `pending` until evaluated; the call is done when none is. Ranks then cover that call only, with the precise ranking the call asked for. Only `include` goes with it: any other parameter of this read (`weights`, `requirements`, `min_score`, `precise_ranking`, `limit`, `cursor`) is refused (`400 invalid_request`, `param` naming the first one). | #### Example request **cURL** ```bash # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. curl -g "https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/scores?weights[crit_3]=0" \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. import os import requests response = requests.get( "https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/scores?weights[crit_3]=0", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=60, ) response.raise_for_status() data = response.json() print(data["data"]) ``` **TypeScript** ```typescript // Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria. const response = await fetch('https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/scores?weights[crit_3]=0', { headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(60_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.data) ``` #### Response `200` A page of the ranking. | Field | Type | Description | | --- | --- | --- | | `job_id` | `string` | | | `weights_used` | `object` | The weight of each criterion in this ranking, overrides included. | | `precise_ranking` | `boolean` | | | `credits_used` | `integer` | Credits this call cost. ≥ 0. | | `data` | `object[]` | | | `data[].rank` | `integer` | Place in the whole ranking, across pages: by score, except among the 10 best when `precise_ranking` is on. Pending and failed resumes come last. ≥ 1. | | `data[].application_id` | `string \| null` | `null` without storage, and for a resume file that could not be read. | | `data[].reference` | `string \| null` | The `reference` the resume was sent with. Given back in the answer of `POST /resumes/score`, its webhook and its `results_url`; `null` in a job's stored ranking and in one stored score, which outlive the call. | | `data[].file_name` | `string \| null` | The name of the resume file sent to `POST /resumes/score`, given back as `reference` is. | | `data[].evaluation_status` | `string` | One of: `"completed"`, `"pending"`, `"failed"`. | | `data[].stale` | `boolean` | The resume was replaced after this evaluation. The result stays readable, and is evaluated again the next time the resume is sent to `POST /resumes/score` for this job. | | `data[].score` | `number \| null` | Rounded to 2 decimals; `null` until evaluated. 0–1. | | `data[].verdict` | `string \| null` | May be absent. The overall judgment of the resume for the job: `highly_relevant` (shortlist), `relevant` (worth a call), `marginally_relevant` (weak), `not_relevant` (off-topic). Present once the evaluation is `completed`, absent while `pending` or `failed`. It does not follow the weights of a read, so it can disagree with `score` after a weight change. `null` when a criterion of the job was added, removed or reworded (`label` or `threshold`) since the last full evaluation of the resume, or when no overall judgment could be given. A change of weight, requirement or type leaves it as is. After a reset, it comes back when the resume is sent again to `POST /resumes/score` for this job: a full evaluation, 1 credit, on top of the credit the new criterion's own evaluation cost. One of: `"highly_relevant"`, `"relevant"`, `"marginally_relevant"`, `"not_relevant"`, `null`. | | `data[].summary` | `string \| null` | May be absent. Overall assessment, in the job's language. Present once the evaluation is `completed`. It follows `verdict`, written with it: `null` when `verdict` is `null` (a criterion of the job added, removed or reworded since the last full evaluation of the resume), back with the next full evaluation. | | `data[].ranking_reason` | `string` | May be absent. One sentence that places the resume against the others. Only with `precise_ranking`, for ranks 1 to 10, when at least 2 resumes are compared; absent otherwise. | | `data[].required_missing` | `object[]` | Required criteria marked `missing` with medium or high confidence; each multiplies the score by 0.75. | | `data[].required_missing[].criterion_id` | `string` | | | `data[].required_missing[].label` | `string` | | | `data[].to_verify` | `object[]` | Required criteria not clearly met, to check with the candidate; those of `required_missing` included. | | `data[].to_verify[].criterion_id` | `string` | | | `data[].to_verify[].label` | `string` | | | `data[].criteria` | `object[]` | May be absent. Per-criterion detail, in the job's criteria order, once the evaluation is `completed`. Always in `POST /resumes/score` answers; in `GET /jobs/{job_id}/scores`, only with `include=criteria`. | | `data[].criteria[].criterion_id` | `string` | | | `data[].criteria[].label` | `string` | | | `data[].criteria[].requirement` | `string` | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `data[].criteria[].weight` | `integer` | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `data[].criteria[].status` | `string` | The reading of the criterion. `met`; `partial`; `missing`, which can still carry a weak hint (score 0.33); `unknown`: the resume says nothing about something resumes often leave out, such as availability, and the criterion is left out of the score. One of: `"met"`, `"partial"`, `"missing"`, `"unknown"`. | | `data[].criteria[].score` | `number \| null` | 1 met or exceeded, 0.67 partly met, 0.33 a weak hint, 0 absent, `null` unknown. The resume's score uses the exact values 2/3 and 1/3, then rounds to 2 decimals. One of: `0`, `0.33`, `0.67`, `1`, `null`. | | `data[].criteria[].gap` | `string \| null` | Why the evidence is partial (scores 0.67 and 0.33): the same thing, less of it; a neighbouring skill of the same trade; plausible but not shown. One of: `"below_threshold"`, `"related"`, `"indirect"`, `null`. | | `data[].criteria[].confidence` | `string` | A required criterion missing with `low` confidence does not lower the score. One of: `"high"`, `"medium"`, `"low"`. | | `data[].criteria[].evidence` | `string` | Where the resume shows it: the section, then the passages quoted between quotation marks, in the resume's language. Empty when there is none. Free text, so search the quoted passages rather than the whole string. | | `data[].criteria[].explanation` | `string` | One sentence, in the job's language. | | `data[].error` | `object \| null` | Why this resume failed, when `evaluation_status` is `failed`. It was not billed. | | `data[].error.code` | `string` | Stable codes: branch on them, never on `message`. `method_not_allowed` answers a method a path does not take (`405`, with an `Allow` header), outside any operation. One of: `"invalid_request"`, `"storage_required"`, `"missing_api_key"`, `"invalid_api_key"`, `"insufficient_credits"`, `"enterprise_plan_required"`, `"not_found"`, `"payload_too_large"`, `"resume_unreadable"`, `"job_unreadable"`, `"rate_limited"`, `"model_unavailable"`, `"internal_error"`, `"method_not_allowed"`. | | `data[].error.message` | `string` | Readable explanation, for logs. | | `data[].error.param` | `string` | May be absent. The field or parameter at fault, when there is one, such as `job.criteria` or `resumes[2].file`. | | `data[].error.doc_url` | `string (URL)` | | | `data[].evaluated_at` | `string (date-time) \| null` | | | `next_cursor` | `string \| null` | | ```json { "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea", "weights_used": { "crit_1": 2, "crit_2": 3, "crit_3": 3, "crit_4": 2, "crit_5": 1, "crit_6": 2, "crit_7": 2, "crit_8": 1, "crit_9": 1 }, "precise_ranking": false, "data": [ { "rank": 1, "application_id": "file_d7e21d373637a897b17b8fdf63122807", "reference": null, "file_name": null, "evaluation_status": "completed", "stale": false, "score": 0.9, "verdict": "highly_relevant", "summary": "This candidate is highly suitable for the position, demonstrating strong expertise in LLM integration and the specific AWS stack required, despite being slightly below the 3-year threshold for pure backend seniority.", "required_missing": [], "to_verify": [ { "criterion_id": "crit_8", "label": "On-call duty" } ], "error": null, "evaluated_at": "2026-10-29T12:42:44.001Z" }, { "rank": 2, "application_id": "file_2275c80ed15f2e1dfef430a4c8f0abfc", "reference": null, "file_name": null, "evaluation_status": "completed", "stale": false, "score": 0.33, "verdict": "not_relevant", "summary": "The candidate is a Senior Frontend Engineer with no proven backend, AWS, or LLM experience, failing all mandatory technical requirements for this AI/Backend role.", "required_missing": [ { "criterion_id": "crit_3", "label": "Integrating LLMs in production" } ], "to_verify": [ { "criterion_id": "crit_3", "label": "Integrating LLMs in production" }, { "criterion_id": "crit_8", "label": "On-call duty" } ], "error": null, "evaluated_at": "2026-10-29T12:42:43.041Z" } ], "next_cursor": null, "credits_used": 0 } ``` #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `weights[crit_3] must be 0, 1, 2 or 3.` | `param`: `weights[crit_3]`. A query parameter out of its values (here a weight): `param` names it. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `limit does not apply with request_id: a Scorer call is read whole, with include only.` | `param`: `limit`. A parameter other than `include` with `request_id`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `limit must be an integer from 1 to 100.` | `param`: `limit`. `limit` out of range. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `cursor is not a next_cursor returned by this API.` | `param`: `cursor`. `cursor` is not a `next_cursor` of this list. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `job_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `job_id`. `job_id` in the path is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `403` | [`insufficient_credits`](https://hirelayer.co/api-docs/errors.md#insufficient_credits) | `This call needs 1 credit and none is left. Nothing was processed or billed.` | No credit left for the precise ranking. | Fix, then retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No job req-7 in workspace default.` | `param`: `job_id`. No job under this id in the workspace. | Do not retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No Scorer call 5d0a3c1e-2f4b-4c8e-9a61-0b7e2d9f4c13 for job req-7.` | `param`: `request_id`. No Scorer call under `request_id` for this job (kept 30 days). | Do not retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "weights[crit_3] must be 0, 1, 2 or 3.", "param": "weights[crit_3]", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Read one stored score `GET https://hirelayer.co/api/v4/jobs/{job_id}/scores/{application_id}` One resume's score for a job, criterion by criterion, with the priorities of this read. Free. - **Authentication:** `X-API-Key` header - **Billing:** Free - **Client timeout:** at least 30 seconds #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | `string` | Yes | Letters, digits and `. _ : ~ -`, up to 200 characters. | | `application_id` | `string` | Yes | The resume's id, including one returned by the legacy `/api/v3/parser` in `info_resume.application_id`. | #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Query parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `weights` | `object` | No | Weights for this read only, by criterion id, such as `weights[crit_3]=0`. 0 turns a criterion off. | | `requirements` | `object` | No | Requirements for this read only, by criterion id, such as `requirements[crit_1]=required`. | #### Example request **cURL** ```bash # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria, and file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. curl https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/scores/file_d7e21d373637a897b17b8fdf63122807 \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria, and file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. import os import requests response = requests.get( "https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/scores/file_d7e21d373637a897b17b8fdf63122807", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=30, ) response.raise_for_status() data = response.json() print(data["score"]) ``` **TypeScript** ```typescript // Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria, and file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. const response = await fetch('https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/scores/file_d7e21d373637a897b17b8fdf63122807', { headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(30_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.score) ``` #### Response `200` The score. | Field | Type | Description | | --- | --- | --- | | `rank` | `integer` | Place in the whole ranking, across pages: by score, except among the 10 best when `precise_ranking` is on. Pending and failed resumes come last. ≥ 1. | | `application_id` | `string \| null` | `null` without storage, and for a resume file that could not be read. | | `reference` | `string \| null` | The `reference` the resume was sent with. Given back in the answer of `POST /resumes/score`, its webhook and its `results_url`; `null` in a job's stored ranking and in one stored score, which outlive the call. | | `file_name` | `string \| null` | The name of the resume file sent to `POST /resumes/score`, given back as `reference` is. | | `evaluation_status` | `string` | One of: `"completed"`, `"pending"`, `"failed"`. | | `stale` | `boolean` | The resume was replaced after this evaluation. The result stays readable, and is evaluated again the next time the resume is sent to `POST /resumes/score` for this job. | | `score` | `number \| null` | Rounded to 2 decimals; `null` until evaluated. 0–1. | | `verdict` | `string \| null` | May be absent. The overall judgment of the resume for the job: `highly_relevant` (shortlist), `relevant` (worth a call), `marginally_relevant` (weak), `not_relevant` (off-topic). Present once the evaluation is `completed`, absent while `pending` or `failed`. It does not follow the weights of a read, so it can disagree with `score` after a weight change. `null` when a criterion of the job was added, removed or reworded (`label` or `threshold`) since the last full evaluation of the resume, or when no overall judgment could be given. A change of weight, requirement or type leaves it as is. After a reset, it comes back when the resume is sent again to `POST /resumes/score` for this job: a full evaluation, 1 credit, on top of the credit the new criterion's own evaluation cost. One of: `"highly_relevant"`, `"relevant"`, `"marginally_relevant"`, `"not_relevant"`, `null`. | | `summary` | `string \| null` | May be absent. Overall assessment, in the job's language. Present once the evaluation is `completed`. It follows `verdict`, written with it: `null` when `verdict` is `null` (a criterion of the job added, removed or reworded since the last full evaluation of the resume), back with the next full evaluation. | | `ranking_reason` | `string` | May be absent. One sentence that places the resume against the others. Only with `precise_ranking`, for ranks 1 to 10, when at least 2 resumes are compared; absent otherwise. | | `required_missing` | `object[]` | Required criteria marked `missing` with medium or high confidence; each multiplies the score by 0.75. | | `required_missing[].criterion_id` | `string` | | | `required_missing[].label` | `string` | | | `to_verify` | `object[]` | Required criteria not clearly met, to check with the candidate; those of `required_missing` included. | | `to_verify[].criterion_id` | `string` | | | `to_verify[].label` | `string` | | | `criteria` | `object[]` | May be absent. Per-criterion detail, in the job's criteria order, once the evaluation is `completed`. Always in `POST /resumes/score` answers; in `GET /jobs/{job_id}/scores`, only with `include=criteria`. | | `criteria[].criterion_id` | `string` | | | `criteria[].label` | `string` | | | `criteria[].requirement` | `string` | `required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight. One of: `"required"`, `"preferred"`, `"bonus"`. | | `criteria[].weight` | `integer` | Importance. 3 essential, 2 important, 1 nice to have, 0 off: kept on the job, left out of every score, of the required-criterion penalty, of `required_missing` and of `to_verify`. Texts already written (`summary`, `explanation`) stay as they are. 0–3. | | `criteria[].status` | `string` | The reading of the criterion. `met`; `partial`; `missing`, which can still carry a weak hint (score 0.33); `unknown`: the resume says nothing about something resumes often leave out, such as availability, and the criterion is left out of the score. One of: `"met"`, `"partial"`, `"missing"`, `"unknown"`. | | `criteria[].score` | `number \| null` | 1 met or exceeded, 0.67 partly met, 0.33 a weak hint, 0 absent, `null` unknown. The resume's score uses the exact values 2/3 and 1/3, then rounds to 2 decimals. One of: `0`, `0.33`, `0.67`, `1`, `null`. | | `criteria[].gap` | `string \| null` | Why the evidence is partial (scores 0.67 and 0.33): the same thing, less of it; a neighbouring skill of the same trade; plausible but not shown. One of: `"below_threshold"`, `"related"`, `"indirect"`, `null`. | | `criteria[].confidence` | `string` | A required criterion missing with `low` confidence does not lower the score. One of: `"high"`, `"medium"`, `"low"`. | | `criteria[].evidence` | `string` | Where the resume shows it: the section, then the passages quoted between quotation marks, in the resume's language. Empty when there is none. Free text, so search the quoted passages rather than the whole string. | | `criteria[].explanation` | `string` | One sentence, in the job's language. | | `error` | `object \| null` | Why this resume failed, when `evaluation_status` is `failed`. It was not billed. | | `error.code` | `string` | Stable codes: branch on them, never on `message`. `method_not_allowed` answers a method a path does not take (`405`, with an `Allow` header), outside any operation. One of: `"invalid_request"`, `"storage_required"`, `"missing_api_key"`, `"invalid_api_key"`, `"insufficient_credits"`, `"enterprise_plan_required"`, `"not_found"`, `"payload_too_large"`, `"resume_unreadable"`, `"job_unreadable"`, `"rate_limited"`, `"model_unavailable"`, `"internal_error"`, `"method_not_allowed"`. | | `error.message` | `string` | Readable explanation, for logs. | | `error.param` | `string` | May be absent. The field or parameter at fault, when there is one, such as `job.criteria` or `resumes[2].file`. | | `error.doc_url` | `string (URL)` | | | `evaluated_at` | `string (date-time) \| null` | | #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `weights[crit_3] must be 0, 1, 2 or 3.` | `param`: `weights[crit_3]`. A query parameter out of its values (here a weight): `param` names it. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `application_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `application_id`. `application_id` in the path is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No job req-7 in workspace default.` | `param`: `job_id`. No job under this id in the workspace. | Do not retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No score of resume cand-42 for job req-7 in workspace default.` | `param`: `application_id`. The resume has no score for this job. | Do not retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "weights[crit_3] must be 0, 1, 2 or 3.", "param": "weights[crit_3]", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Detach a resume from a job `DELETE https://hirelayer.co/api/v4/jobs/{job_id}/scores/{application_id}` Deletes the score. The resume stays in the workspace. Free. - **Authentication:** `X-API-Key` header - **Billing:** Free - **Client timeout:** at least 30 seconds #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `job_id` | `string` | Yes | Letters, digits and `. _ : ~ -`, up to 200 characters. | | `application_id` | `string` | Yes | The resume's id, including one returned by the legacy `/api/v3/parser` in `info_resume.application_id`. | #### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `HireLayer-Workspace` | `string` | No | Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`. | #### Example request **cURL** ```bash # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria, and file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. curl -X DELETE https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/scores/file_d7e21d373637a897b17b8fdf63122807 \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python # Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria, and file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. import os import requests response = requests.delete( "https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/scores/file_d7e21d373637a897b17b8fdf63122807", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=30, ) response.raise_for_status() print(response.status_code) ``` **TypeScript** ```typescript // Example ids: replace job_020cb8c5f1f8eb650cec00dc3d90f8ea with a job_id returned by POST /api/v4/jobs/extract-criteria, and file_d7e21d373637a897b17b8fdf63122807 with an application_id returned by POST /api/v4/resumes/parse. const response = await fetch('https://hirelayer.co/api/v4/jobs/job_020cb8c5f1f8eb650cec00dc3d90f8ea/scores/file_d7e21d373637a897b17b8fdf63122807', { method: 'DELETE', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(30_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } console.log(response.status) ``` #### Response `204` Deleted. #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `application_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `application_id`. `application_id` in the path is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `HireLayer-Workspace`. `HireLayer-Workspace` is not a valid id. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "application_id must contain letters, digits and . _ : ~ -, up to 200 characters.", "param": "application_id", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ## Next - [HireLayer Resume Scorer](https://hirelayer.co/api-docs/score.md): HireLayer Resume Scorer matches candidates to a job description, ranks them and explains each score criterion by criterion, with evidence from the resume. - [HireLayer Job Criteria Extractor](https://hirelayer.co/api-docs/extract-criteria.md): HireLayer job description parsing API: send a job ad as text or a file and get its typed, weighted criteria back as JSON, for free. --- # Page: Workspaces and account > List, create, rename and erase the workspaces that keep each customer apart, read the credits left, and check that the API is up. Source: https://hirelayer.co/api-docs/account · Markdown: https://hirelayer.co/api-docs/account.md ## Workspaces A workspace holds the resumes, jobs and scores of one of your customers. Every call names it in the `HireLayer-Workspace` header, `default` when the header is absent, and creates it on first use: see [Workspaces](https://hirelayer.co/api-docs/authentication.md#workspaces). These endpoints list the workspaces, give one a display name or impose the [no-storage mode](https://hirelayer.co/api-docs/authentication.md#storage) on it, and erase one with everything it holds. They are free. ### List workspaces `GET https://hirelayer.co/api/v4/workspaces` `default` first, then the others, oldest first. Free. - **Authentication:** `X-API-Key` header - **Billing:** Free - **Client timeout:** at least 30 seconds #### Example request **cURL** ```bash curl https://hirelayer.co/api/v4/workspaces \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python import os import requests response = requests.get( "https://hirelayer.co/api/v4/workspaces", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=30, ) response.raise_for_status() data = response.json() print(data["data"]) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/workspaces', { headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(30_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.data) ``` #### Response `200` The workspaces. | Field | Type | Description | | --- | --- | --- | | `data` | `object[]` | | | `data[].workspace_id` | `string` | | | `data[].name` | `string \| null` | | | `data[].do_not_store_data` | `boolean` | Every call of this workspace runs without storage. | | `data[].jobs_count` | `integer` | ≥ 0. | | `data[].resumes_count` | `integer` | ≥ 0. | | `data[].created_at` | `string (date-time) \| null` | | #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`401`): ```json { "error": { "code": "missing_api_key", "message": "The X-API-Key header is missing.", "doc_url": "https://hirelayer.co/api-docs/errors#missing_api_key" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Create or rename a workspace `PUT https://hirelayer.co/api/v4/workspaces/{workspace_id}` Creates a workspace for one of your customers, gives it a new display name, or imposes the no-storage mode on it. Its id never changes. Free. - **Authentication:** `X-API-Key` header - **Content type:** `application/json` - **Billing:** Free - **Client timeout:** at least 30 seconds - **`do_not_store_data: false`** lifts it; nothing processed meanwhile was kept. - A field left out keeps its current value. #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `workspace_id` | `string` | Yes | Letters, digits and `. _ : ~ -`, up to 200 characters. | #### Request body | Field | Type | Required | Description | | --- | --- | --- | --- | | `name` | `string` | No | 1–200 characters. | | `do_not_store_data` | `boolean` | No | Enterprise plan only. Impose the no-storage mode on every call of this workspace. | #### Example request **cURL** ```bash curl -X PUT https://hirelayer.co/api/v4/workspaces/acme \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "name": "Acme" }' ``` **Python** ```python import os import requests response = requests.put( "https://hirelayer.co/api/v4/workspaces/acme", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, json={ "name": "Acme", }, timeout=30, ) response.raise_for_status() data = response.json() print(data["workspace_id"]) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/workspaces/acme', { method: 'PUT', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, 'Content-Type': 'application/json', }, body: JSON.stringify({ name: 'Acme', }), signal: AbortSignal.timeout(30_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.workspace_id) ``` #### Response `200` Renamed. | Field | Type | Description | | --- | --- | --- | | `workspace_id` | `string` | | | `name` | `string \| null` | | | `do_not_store_data` | `boolean` | Every call of this workspace runs without storage. | | `jobs_count` | `integer` | ≥ 0. | | `resumes_count` | `integer` | ≥ 0. | | `created_at` | `string (date-time) \| null` | | #### Response `201` Created. | Field | Type | Description | | --- | --- | --- | | `workspace_id` | `string` | | | `name` | `string \| null` | | | `do_not_store_data` | `boolean` | Every call of this workspace runs without storage. | | `jobs_count` | `integer` | ≥ 0. | | `resumes_count` | `integer` | ≥ 0. | | `created_at` | `string (date-time) \| null` | | #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `name must be 200 characters or less.` | `param`: `name`. `name` over 200 characters. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `The default workspace always exists and has no name to set.` | `param`: `workspace_id`. A name for the workspace `default`. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `do_not_store_data must be true or false.` | `param`: `do_not_store_data`. `do_not_store_data` is not a boolean. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `workspace_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `workspace_id`. `workspace_id` in the path is not a valid id. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `Unknown field label.` | `param`: `label`. A field the call does not take. | Fix, then retry | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `The request body is not valid JSON.` | The body is not valid JSON, not an object, or not sent as `application/json`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `403` | [`enterprise_plan_required`](https://hirelayer.co/api-docs/errors.md#enterprise_plan_required) | `do_not_store_data is available on the Enterprise plan only. Nothing was processed or billed.` | `param`: `do_not_store_data`. `do_not_store_data: true` below the Enterprise plan. | Do not retry | | `413` | [`payload_too_large`](https://hirelayer.co/api-docs/errors.md#payload_too_large) | `The request body must be 10 MB or less.` | The body is over 10 MB. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "name must be 200 characters or less.", "param": "name", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` #### Behavior - **`do_not_store_data: true` (Enterprise plan only, else `403 enterprise_plan_required`):** every later call sent with this workspace runs as with `do_not_store_data=true`, whatever the call sends; both searches, and the writes that would store something in it (`PUT /resumes/{application_id}`, `PUT /jobs/{job_id}`, `POST /jobs/{job_id}/criteria`, `PATCH /jobs/{job_id}/criteria/{criterion_id}`), answer `400 storage_required`. What the workspace already holds stays until you erase it (`DELETE /workspaces/{workspace_id}`). Calls sent without the `HireLayer-Workspace` header go to `default`: they are covered only when `default` itself is set this way. ### Erase a workspace `DELETE https://hirelayer.co/api/v4/workspaces/{workspace_id}` Erases every job, resume, file and score of the workspace, for example when your customer leaves. Free. - **Authentication:** `X-API-Key` header - **Billing:** Free - **Client timeout:** at least 60 seconds #### Path parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `workspace_id` | `string` | Yes | Letters, digits and `. _ : ~ -`, up to 200 characters. | #### Example request **cURL** ```bash curl -X DELETE https://hirelayer.co/api/v4/workspaces/acme \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python import os import requests response = requests.delete( "https://hirelayer.co/api/v4/workspaces/acme", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=60, ) response.raise_for_status() print(response.status_code) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/workspaces/acme', { method: 'DELETE', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(60_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } console.log(response.status) ``` #### Response `204` Erased. #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `400` | [`invalid_request`](https://hirelayer.co/api-docs/errors.md#invalid_request) | `workspace_id must contain letters, digits and . _ : ~ -, up to 200 characters.` | `param`: `workspace_id`. `workspace_id` in the path is not a valid id. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `404` | [`not_found`](https://hirelayer.co/api-docs/errors.md#not_found) | `No workspace acme: it was never created, and nothing was ever stored in it.` | `param`: `workspace_id`. The workspace was never created or used. | Do not retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The erasure could not be finished: send the same call again to finish it.` | An erasure could not be finished: the same call finishes it. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`400`): ```json { "error": { "code": "invalid_request", "message": "workspace_id must contain letters, digits and . _ : ~ -, up to 200 characters.", "param": "workspace_id", "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ## Account and status `GET /account` gives the plan and the credits left of the key’s account. `GET /health` answers without a key, for a monitoring probe. Both are free. ### Get the account `GET https://hirelayer.co/api/v4/account` The plan and the credits left of the key's account. Free. - **Authentication:** `X-API-Key` header - **Billing:** Free - **Client timeout:** at least 30 seconds #### Example request **cURL** ```bash curl https://hirelayer.co/api/v4/account \ -H "X-API-Key: $HIRELAYER_API_KEY" ``` **Python** ```python import os import requests response = requests.get( "https://hirelayer.co/api/v4/account", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, timeout=30, ) response.raise_for_status() data = response.json() print(data["credits"]) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/account', { headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, signal: AbortSignal.timeout(30_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.credits) ``` #### Response `200` The account. | Field | Type | Description | | --- | --- | --- | | `account` | `object` | | | `account.email` | `string \| null` | | | `account.plan` | `string` | One of: `"free"`, `"starter"`, `"scale"`, `"pay_as_you_go"`, `"enterprise"`. | | `credits` | `object` | | | `credits.available` | `integer \| null` | `null` on an unlimited plan. | | `credits.unlimited` | `boolean` | | ```json { "account": { "email": "dev@example.com", "plan": "scale" }, "credits": { "available": 4210, "unlimited": false } } ``` #### Errors | Status | `error.code` | `error.message` | When | Retry | | --- | --- | --- | --- | --- | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The X-API-Key header is missing.` | No `X-API-Key` header. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `Authorization: Bearer is not accepted: send the key in the X-API-Key header.` | The key sent as `Authorization: Bearer`: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`missing_api_key`](https://hirelayer.co/api-docs/errors.md#missing_api_key) | `The key goes in the X-API-Key header, not in the URL.` | The key sent in the URL: it goes in `X-API-Key`. | Fix, then retry | | `401` | [`invalid_api_key`](https://hirelayer.co/api-docs/errors.md#invalid_api_key) | `Invalid API key: it is unknown, malformed or revoked.` | The key is unknown, malformed or revoked. | Fix, then retry | | `500` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `Internal error: retry later. If it persists, contact support with the request_id.` | An unexpected error. | Retry with backoff | | `502` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service could not be reached: retry later.` | The service could not be reached. | Retry with backoff | | `503` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The credit service is briefly unavailable: retry in a second.` | The credit service is briefly unavailable. Headers: `Retry-After: `. | Retry with backoff | | `504` | [`internal_error`](https://hirelayer.co/api-docs/errors.md#internal_error) | `The service did not answer in time. The change may still be applied: read it before sending it again.` | No answer in time. | Retry with backoff | Example error (`401`): ```json { "error": { "code": "missing_api_key", "message": "The X-API-Key header is missing.", "doc_url": "https://hirelayer.co/api-docs/errors#missing_api_key" }, "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f" } ``` ### Service health `GET https://hirelayer.co/api/v4/health` No key needed. Free. - **Authentication:** none - **Billing:** Free - **Client timeout:** at least 10 seconds #### Example request **cURL** ```bash curl https://hirelayer.co/api/v4/health ``` **Python** ```python import requests response = requests.get( "https://hirelayer.co/api/v4/health", timeout=10, ) response.raise_for_status() data = response.json() print(data["status"]) ``` **TypeScript** ```typescript const response = await fetch('https://hirelayer.co/api/v4/health', { signal: AbortSignal.timeout(10_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.status) ``` #### Response `200` The service answers. | Field | Type | Description | | --- | --- | --- | | `status` | `string` | Value: `"healthy"`. | | `service` | `string` | | | `timestamp` | `string (date-time)` | | ```json { "status": "healthy", "service": "hirelayer-api", "timestamp": "2026-10-27T09:00:00Z" } ``` ## Next - [Limits and credits](https://hirelayer.co/api-docs/limits.md): What each HireLayer product costs, how large a call can be, and which client timeouts to use. - [Authentication, workspaces and storage](https://hirelayer.co/api-docs/authentication.md): Authenticate every request with an X-API-Key header, keep each customer in its own workspace, and choose whether HireLayer stores what it processes. --- # Page: Build a screening pipeline > Sync jobs and applicants from an ATS, score them, re-rank with the recruiter’s priorities and search the talent pool, with your own ids. Source: https://hirelayer.co/api-docs/screening-pipeline · Markdown: https://hirelayer.co/api-docs/screening-pipeline.md An ATS integration keeps HireLayer in step with its own ids: one workspace per customer company, each job stored under its ATS id, each applicant’s resume under its application id. Then a recruiter reads a ranking that costs nothing to reload, and can widen it to the whole talent pool. ### 1. Store the job `PUT /jobs/{job_id}` with the job description stores it under your id and extracts its criteria, for free. When the ad changes, send it again with `recompute_criteria: true` to extract its criteria again: a criterion that keeps its label and threshold keeps its results, the others are evaluated again (1 credit per stored score). A field left out of a `PUT` keeps its stored value: send only what changed. ### 2. Score each applicant `POST /resumes/score` with `{"job": {"job_id": …}}` and the resumes, each with your `application_id`: files are parsed and stored, then scored. 1 credit per resume scored, +1 per file; a pair already scored is free. Score new applicants as they arrive, or in batches of up to 10 files for a synchronous answer. ### 3. Read the ranking `GET /jobs/{job_id}/scores` returns every score of the job, best first. Pass the recruiter’s priorities for one view, `weights[crit_3]=0` or `requirements[crit_1]=required`: nothing is evaluated again, so it is free. `precise_ranking=true` compares the 10 best against each other and adds a `ranking_reason`, for 1 credit per read. ### 4. Search the talent pool `POST /resumes/search` with the `job_id` finds the closest resumes of the whole workspace, including past applicants, for 1 credit. Score the ones not `already_scored` by their `application_id`. For the opposite direction, `POST /jobs/search` finds the open jobs closest to a resume. **The pipeline** **Python** ```python # screening.py: store a job from your ATS, score its applicants, re-rank, then search the talent pool. from hirelayer import call, read_file WORKSPACE = "acme" # one workspace per customer company JOB_ID = "req-2026-114" # your ATS ids, used as is with open("job.txt", encoding="utf-8") as file: job_text = file.read() # 1. Store the job under its ATS id: its criteria are extracted once (free). job = call("PUT", f"/jobs/{JOB_ID}", body={"text": job_text, "status": "open"}, workspace=WORKSPACE) print([(c["criterion_id"], c["label"], c["weight"]) for c in job["criteria"]]) # 2. Score the applicants, their files stored under their ATS ids (up to 10 files per synchronous call). applicants = {"app-1": "alex.pdf", "app-2": "sam.pdf", "app-3": "charlie.pdf"} files = {f"cv{i}": read_file(path) for i, path in enumerate(applicants.values(), start=1)} resumes = [{"file": f"cv{i}", "application_id": app} for i, app in enumerate(applicants, start=1)] call("POST", "/resumes/score", body={"job": {"job_id": JOB_ID}, "resumes": resumes}, files=files, workspace=WORKSPACE) # 3. Read the ranking with the recruiter's priorities: crit_3 off for this view, free. ranking = call("GET", f"/jobs/{JOB_ID}/scores?weights[crit_3]=0&precise_ranking=true", workspace=WORKSPACE) for score in ranking["data"]: print(score["rank"], score["application_id"], score["score"], score["verdict"], score["summary"]) # 4. Search the whole talent pool for this job, then score the closest resumes not scored yet. closest = call("POST", "/resumes/search", body={"job_id": JOB_ID, "limit": 20}, workspace=WORKSPACE)["results"] new = [{"application_id": r["application_id"]} for r in closest if not r["already_scored"]] if new: call("POST", "/resumes/score", body={"job": {"job_id": JOB_ID}, "resumes": new}, workspace=WORKSPACE) ``` **TypeScript** ```typescript // screening.mts: store a job from your ATS, score its applicants, re-rank, then search the talent pool. // Run: npx tsx screening.mts import { readFile } from 'node:fs/promises' import { callHireLayer, readPart } from './hirelayer.mts' type Criterion = { criterion_id: string; label: string; weight: number } type Job = { job_id: string; criteria: Criterion[] } type Score = { rank: number application_id: string score: number | null verdict: string | null summary: string | null } const workspace = 'acme' // one workspace per customer company const jobId = 'req-2026-114' // your ATS ids, used as is const jobText = await readFile('job.txt', 'utf8') // 1. Store the job under its ATS id: its criteria are extracted once (free). const job = await callHireLayer(`/jobs/${jobId}`, { method: 'PUT', body: { text: jobText, status: 'open' }, workspace, }) console.log(job.criteria.map((c) => [c.criterion_id, c.label, c.weight])) // 2. Score the applicants, their files stored under their ATS ids (up to 10 files per synchronous call). const applicants = { 'app-1': 'alex.pdf', 'app-2': 'sam.pdf', 'app-3': 'charlie.pdf' } const entries = Object.entries(applicants) const files = Object.fromEntries( await Promise.all(entries.map(async ([, path], i) => [`cv${i + 1}`, await readPart(path)])) ) await callHireLayer('/resumes/score', { body: { job: { job_id: jobId }, resumes: entries.map(([id], i) => ({ file: `cv${i + 1}`, application_id: id })), }, files, workspace, }) // 3. Read the ranking with the recruiter's priorities: crit_3 off for this view, free. const ranking = await callHireLayer<{ data: Score[] }>( `/jobs/${jobId}/scores?weights[crit_3]=0&precise_ranking=true`, { workspace } ) for (const score of ranking.data) { console.log(score.rank, score.application_id, score.score, score.verdict, score.summary) } // 4. Search the whole talent pool for this job, then score the closest resumes not scored yet. const { results } = await callHireLayer<{ results: Array<{ application_id: string; already_scored: boolean }> }>('/resumes/search', { body: { job_id: jobId, limit: 20 }, workspace }) const fresh = results.filter((r) => !r.already_scored) if (fresh.length) { await callHireLayer('/resumes/score', { body: { job: { job_id: jobId }, resumes: fresh.map((r) => ({ application_id: r.application_id })), }, workspace, }) } ``` **The client it imports** **Python** ```python # hirelayer.py: minimal client with retries. Requires: pip install requests import json import os import random import time import requests API_BASE = "https://hirelayer.co/api/v4" RETRYABLE = {429, 502, 503, 504} class HireLayerError(Exception): def __init__(self, status, code, message, param=None, request_id=None): super().__init__(f"HireLayer {status} {code}: {message} (request_id {request_id})") self.status = status self.code = code self.param = param self.request_id = request_id def _delay(attempt, retry_after): if retry_after and retry_after.isdigit(): return int(retry_after) return min(30, 2**attempt) + random.random() def call(method, path, *, body=None, files=None, workspace=None, timeout=150, max_retries=3): """Call HireLayer. Retries 429, 502, 503, 504 and connection failures, raises HireLayerError otherwise.""" headers = {"X-API-Key": os.environ["HIRELAYER_API_KEY"]} if workspace: headers["HireLayer-Workspace"] = workspace # With files, the JSON goes in the "request" part. data = {"request": json.dumps(body)} if files and body is not None else None for attempt in range(max_retries + 1): try: response = requests.request( method, API_BASE + path, headers=headers, json=None if files else body, data=data, files=files, timeout=timeout, ) except requests.ConnectionError: if attempt == max_retries: raise time.sleep(_delay(attempt, None)) continue if response.status_code == 204: return None if response.ok: return response.json() if response.status_code in RETRYABLE and attempt < max_retries: time.sleep(_delay(attempt, response.headers.get("Retry-After"))) continue try: error = response.json()["error"] except (ValueError, KeyError, TypeError): error = {"code": None, "message": response.reason} raise HireLayerError( response.status_code, error.get("code"), error.get("message"), error.get("param"), response.headers.get("HireLayer-Request-Id"), ) def read_file(path): """A multipart file part, as bytes so it can be sent again on retry.""" with open(path, "rb") as file: return (os.path.basename(path), file.read()) def score_files(job_path, resume_paths, precise_ranking=False, workspace=None): """Score resume files against a job file: 1 credit per resume, +1 per file parsed.""" files = {"job": read_file(job_path)} resumes = [] for index, path in enumerate(resume_paths, start=1): files[f"cv{index}"] = read_file(path) resumes.append({"file": f"cv{index}", "reference": os.path.basename(path)}) body = {"job": {"file": "job"}, "resumes": resumes, "precise_ranking": precise_ranking} return call("POST", "/resumes/score", body=body, files=files, workspace=workspace) ``` **TypeScript** ```typescript // hirelayer.mts: minimal client with retries. Node.js 18+, run with tsx. import { readFile } from 'node:fs/promises' import { basename } from 'node:path' const API_BASE = 'https://hirelayer.co/api/v4' const RETRYABLE = new Set([429, 502, 503, 504]) export class HireLayerError extends Error { constructor( readonly status: number, readonly code: string | undefined, message: string, readonly param?: string, /** Quote it to support. */ readonly requestId?: string | null ) { super(`HireLayer ${status} ${code}: ${message} (request_id ${requestId})`) } } const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms)) function retryDelay(attempt: number, retryAfter: string | null) { const seconds = Number(retryAfter) if (retryAfter && Number.isInteger(seconds)) return seconds * 1000 return Math.min(30_000, 1000 * 2 ** attempt) + Math.random() * 1000 } type CallOptions = { method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' /** The JSON body, or the `request` part when `files` are sent. */ body?: unknown /** Multipart file parts, by part name. */ files?: Record workspace?: string timeoutMs?: number } /** Calls HireLayer. Retries 429, 502, 503, 504 and connection failures, throws HireLayerError otherwise. */ export async function callHireLayer( path: string, options: CallOptions = {}, maxRetries = 3 ): Promise { const headers: Record = { 'X-API-Key': process.env.HIRELAYER_API_KEY!, } if (options.workspace) headers['HireLayer-Workspace'] = options.workspace if (options.body !== undefined && !options.files) { headers['Content-Type'] = 'application/json' } for (let attempt = 0; ; attempt++) { // A FormData is consumed by a request: build it again on every attempt. let body: string | FormData | undefined if (options.files) { body = new FormData() if (options.body !== undefined) { body.append('request', JSON.stringify(options.body)) } for (const [part, file] of Object.entries(options.files)) { body.append(part, new Blob([file.bytes]), file.name) } } else if (options.body !== undefined) { body = JSON.stringify(options.body) } let response: Response try { response = await fetch(API_BASE + path, { method: options.method ?? (body === undefined ? 'GET' : 'POST'), headers, body, signal: AbortSignal.timeout(options.timeoutMs ?? 150_000), }) } catch (error) { // fetch rejects with a TypeError when the connection fails. if (!(error instanceof TypeError) || attempt >= maxRetries) throw error await sleep(retryDelay(attempt, null)) continue } if (response.status === 204) return undefined as T if (response.ok) return (await response.json()) as T if (RETRYABLE.has(response.status) && attempt < maxRetries) { await sleep(retryDelay(attempt, response.headers.get('Retry-After'))) continue } const payload = await response.json().catch(() => ({})) const error = payload.error ?? {} throw new HireLayerError( response.status, error.code, error.message ?? response.statusText, error.param, response.headers.get('HireLayer-Request-Id') ) } } export async function readPart(path: string) { return { name: basename(path), bytes: await readFile(path) } } ``` ## Keep it in step - A candidate sends a new resume: send it with the same `application_id`. Its scores become `stale` and are evaluated again the next time the resume is scored. - A job is filled: `PUT /jobs/{job_id}` with `{"status": "closed"}` keeps its scores and takes it out of Job Recommendations. - A candidate asks for erasure: `DELETE /resumes/{application_id}` removes the resume and its scores. A customer leaves: `DELETE /workspaces/{workspace_id}` removes everything it holds. - More than 10 files at once: parse them with `POST /resumes/parse` (or send a `webhook_url`), then score them by id. ## Next - [Errors and retries](https://hirelayer.co/api-docs/errors.md): The error format of the HireLayer API, every error code, and when to retry a call. - [Build with AI agents](https://hirelayer.co/api-docs/ai-agents.md): Give Claude Code, Codex, Cursor or any coding agent the context to integrate HireLayer correctly: llms.txt, Markdown pages, OpenAPI and a ready-made rules file. --- # Page: Build with AI agents > Give Claude Code, Codex, Cursor or any coding agent the context to integrate HireLayer correctly: llms.txt, Markdown pages, OpenAPI and a ready-made rules file. Source: https://hirelayer.co/api-docs/ai-agents · Markdown: https://hirelayer.co/api-docs/ai-agents.md The documentation is published in machine-readable formats generated from the same source as these pages, so agents read exactly what you read. ## Machine-readable documentation | Resource | Contents | | --- | --- | | [`/llms.txt`](https://hirelayer.co/llms.txt) | Index of every page with a one-line summary, following the llms.txt convention. | | [`/llms-full.txt`](https://hirelayer.co/llms-full.txt) | The whole documentation in one Markdown file. | | `/api-docs/.md` | Any page as clean Markdown, e.g. [`/api-docs/score.md`](https://hirelayer.co/api-docs/score.md). | | [`/openapi.json`](https://hirelayer.co/openapi.json) · [`/openapi.yaml`](https://hirelayer.co/openapi.yaml) | OpenAPI 3.1 description of every endpoint, schema and error, for code generators, Postman or Insomnia. | | [`/api-docs/agent-rules.md`](https://hirelayer.co/api-docs/agent-rules.md) | The rules file below, ready to download. | ## Prompt your coding agent Paste a prompt like this one in Claude Code, Codex or Cursor. The agent fetches the docs it needs. ```text Read https://hirelayer.co/api-docs/score.md and https://hirelayer.co/llms.txt, then help me integrate the HireLayer Resume Scorer (score and rank resumes for a job) into my project. Follow the documented authentication, timeouts, retries and error handling, and do not invent fields or endpoints. ``` Every page also has **Copy page** (its Markdown), **Copy for AI** (the page plus integration rules) and **Open in ChatGPT** or **Claude** actions. Each endpoint has its own **Copy for AI** button. ## Add project rules Commit these rules to the repository that calls HireLayer, so every agent session follows them: authentication, timeouts, retries, limits and the exact endpoints. | Agent | File | | --- | --- | | Codex, Cursor, and most agents | `AGENTS.md` at the repository root | | Claude Code | `CLAUDE.md`, or `@AGENTS.md` imported from it | | Cursor (project rule) | `.cursor/rules/hirelayer.mdc` | | GitHub Copilot | `.github/copilot-instructions.md` | ```bash curl -o AGENTS.md https://hirelayer.co/api-docs/agent-rules.md ``` **AGENTS.md** ```markdown # HireLayer API This project calls the HireLayer recruiting APIs (resume parsing, job criteria extraction, resume scoring and ranking, talent pool search, job recommendations, skills normalization). Follow these rules when writing or changing that code. ## HireLayer integration rules - Base URL: `https://hirelayer.co/api/v4`. HTTPS only. There is no official SDK: in code, call the REST API directly (Python `requests`, Node.js 18+ `fetch`); working examples are in https://github.com/HireLayer/resume-parser-examples. The official MCP server (hosted at https://hirelayer.co/mcp with OAuth sign-in, or locally with npm `hirelayer-mcp`; source: https://github.com/HireLayer/hirelayer-mcp) is for AI assistants such as Claude, ChatGPT, Cursor or VS Code, not for application code. - Authentication: header `X-API-Key` on every request except `GET /health`. Read the key from the `HIRELAYER_API_KEY` environment variable. Never hard-code it, log it, or send it from browser or mobile code. `Authorization: Bearer` is not supported. - To rank resumes for a job, call `POST /resumes/score` once with the job (a file, a text or a stored `job_id`) and the resumes (files, texts, parsed JSON or stored `application_id`s). With files, send `multipart/form-data`: the JSON in the `request` part, each file in a part whose name the JSON cites (`{"file": "cv1"}`); `webhook_url`, `do_not_store_data` and every other field go inside that JSON, never as form fields (refused, `400`). Without files, send the JSON as `application/json`. Do not parse or extract criteria first unless you need the parse or the criteria themselves. - Synchronous up to 10 resume files and 50 resumes per scoring call (about a minute for 50); at most 100 resumes per call. Larger calls answer `202` with `results_url` (poll it until no score is `pending`) or, with `webhook_url`, post the result to that URL, signed with `HireLayer-Signature` (HMAC-SHA256 of `"."` with the account's `whsec_` secret; reject a `t` older than 5 minutes; deduplicate on `event_id`). With storage, a call within the synchronous limits whose evaluations still run after about 100 seconds answers `202` too: handle `202` on every scoring call. - Timeouts: use a client timeout of at least 150 s for `POST /resumes/parse` and `POST /resumes/score`. - Retries: retry `429` after `Retry-After`, and `502`, `503`, `504` and connection failures at most 3 times with exponential backoff and jitter. After a `504`, a change may still have been applied: read it before sending the call again. Never retry another 4xx unchanged. `PUT` to your own ids can be sent again safely, and a pair already scored is not billed again. - Errors: always `{"error": {"code", "message", "param", "doc_url"}}`. Branch on `error.code` (`invalid_request`, `storage_required`, `missing_api_key`, `invalid_api_key`, `insufficient_credits`, `enterprise_plan_required`, `not_found`, `method_not_allowed`, `payload_too_large`, `resume_unreadable`, `job_unreadable`, `rate_limited`, `model_unavailable`, `internal_error`), never on the message. In a scoring call, a resume that fails comes last with `evaluation_status: "failed"` and its own `error`; the call still succeeds. - HrFlow.ai format: only to keep code written for HrFlow.ai, `POST /resumes/parse?output_format=hrflow` answers `201` with HrFlow.ai's parsing body, and its errors as `{"code": , "message", "error_code"}`. Otherwise leave `output_format` out. See https://hirelayer.co/api-docs/migrate-from-hrflow. - Compatibility: responses and webhooks can gain new fields as the products improve; no existing field is ever removed or renamed. Ignore unknown fields: never validate a response with a schema that rejects extra keys. - Ids: `application_id` is a resume, `job_id` a job, `criterion_id` a criterion. Send your own ids (letters, digits and . _ : ~ -, up to 200 characters) to keep HireLayer in step with your system; without one, the id is derived from the content (`file_`, `text_` or `job_` + 32 hex characters), so the same file is the same resume. A job text identical to the stored job returns the job as stored: `title`, `location` and `language` sent with it are ignored; change them with `PUT /jobs/{job_id}`. A resume parsed by the legacy `/api/v3/parser` is usable by its `info_resume.application_id`. - Workspaces: platforms serving several companies send each company's id in the `HireLayer-Workspace` header; data never crosses workspaces. Without it, everything goes to `default`. - Credits: Resume Parser 1 per resume (0 for a file already stored); Job Criteria Extractor free (except a new text sent under the `job_id` of a job already scored, as below); Resume Scorer 1 per resume scored + 1 per resume file parsed (0 for a pair already scored), +1 per call with `precise_ranking`; Talent Pool Search 1 per search (plus the re-evaluation below when its `job` text replaces a stored job); Job Recommendations 1 per search, +1 when the resume comes as a file; Skills Normalizer 1 per call. Reads (except `GET /skills`, 1 credit, and `GET /jobs/{job_id}/scores` with `precise_ranking=true`, 1 credit per read), storing a job or a resume, and changes of a criterion's weight, requirement or type are free; adding or rewording a criterion (a new label or threshold, or new criteria through `PUT /jobs/{job_id}` or a new text under a stored `job_id` in `POST /jobs/extract-criteria`, `POST /resumes/score` or `POST /resumes/search`) re-evaluates the job's stored scores, 1 credit each. The products return `credits_used`. `403 insufficient_credits` means nothing was processed; the Resume Scorer and Talent Pool Search check for the worst case (every stored score of the job counted as evaluated again) and bill only what they do. - Re-rank without re-scoring: `GET /jobs/{job_id}/scores?weights[crit_3]=0` applies other weights for one read, free. `precise_ranking: true` compares the 10 best and adds `ranking_reason`, 1 credit per call or read. - Storage: by default everything is stored in the workspace. `do_not_store_data=true` (Enterprise plan only, otherwise `403 enterprise_plan_required`) keeps nothing: ids come back `null`, give each resume a `reference`, and both searches answer `400 storage_required`. - Languages: criteria, summaries and explanations are in the job's language: `language` is `en`, `fr`, `de`, `es` or `pt`; left out, it is the language of the job's text, and English for a text in any other language. Evidence quotes the resume as written. - Text lengths: a job text holds at least 30 characters, and a Resume Scorer call needs at least one resume of 30 characters or more. - Do not invent fields, endpoints or parameters. When unsure, read the OpenAPI document or the Markdown reference. ## Endpoints Paths are relative to `https://hirelayer.co`. - `POST /api/v4/resumes/parse` (Resume Parser): Reads a resume file and returns it structured, stored in the workspace under an application_id. (multipart/form-data, 1 credit; 0 when the file is already stored, client timeout ≥ 150 s). Docs: https://hirelayer.co/api-docs/parse-resume.md - `POST /api/v4/jobs/extract-criteria` (Job Criteria Extractor): Reads a job description and returns the typed criteria it states (usually 4 to 10, fewer for a short posting: none is invented; at most 15), in the posting's order, the job stored under a job_id. A posting that states more requirements has its close ones grouped, and the 15 that weigh most are kept. The text holds at least 30 characters. (JSON body, free; 1 credit per stored score evaluated again when a new text replaces a stored job, client timeout ≥ 150 s). Docs: https://hirelayer.co/api-docs/extract-criteria.md - `POST /api/v4/resumes/score` (Resume Scorer): Evaluates one or more resumes against a job, criterion by criterion, and returns them best first. (JSON body, 1 credit per resume evaluated, +1 per resume file parsed, +1 per call with precise_ranking; 0 for a pair already evaluated or a file already stored; 1 credit per other stored score evaluated again when a stored job comes with a new text or new criteria, client timeout ≥ 150 s). Docs: https://hirelayer.co/api-docs/score.md - `POST /api/v4/resumes/search` (Talent Pool Search): Finds in the workspace's resume database the resumes closest to a job, to choose which ones to score. Proximity only: no evaluation, no explanation. Score the chosen ones with POST /resumes/score. (JSON body, 1 credit per search; 1 credit per stored score evaluated again when a new text replaces a stored job, client timeout ≥ 60 s). Docs: https://hirelayer.co/api-docs/search-resumes.md - `POST /api/v4/jobs/search` (Job Recommendations): Finds the open stored jobs of the workspace closest to a resume. Proximity only: no evaluation, no explanation. Score the chosen ones with POST /resumes/score, one call per job. (JSON body, 1 credit per search, +1 for a resume file, client timeout ≥ 60 s). Docs: https://hirelayer.co/api-docs/search-jobs.md - `POST /api/v4/skills/normalize` (Skills Normalizer): Maps the skills named in a free text to the HireLayer taxonomy. Nothing is stored. (JSON body, 1 credit, client timeout ≥ 60 s). Docs: https://hirelayer.co/api-docs/skills.md - `GET /api/v4/resumes` (Data and account): The resume database of the workspace, most recently stored first. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/resumes.md - `GET /api/v4/resumes/{application_id}` (Data and account): Get a stored resume. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/resumes.md - `PUT /api/v4/resumes/{application_id}` (Data and account): Stores under your application_id a resume you already have as text, or as the parsed resume JSON of POST /resumes/parse. Replaces the resume stored before. When its text changes, its scores become stale and are evaluated again only when asked; the same text sent again leaves them as they are. Free. To store a file, use POST /resumes/parse with application_id. (JSON body, free, client timeout ≥ 60 s). Docs: https://hirelayer.co/api-docs/resumes.md - `DELETE /api/v4/resumes/{application_id}` (Data and account): Erases the resume, its file and all its scores (GDPR erasure). Erasing a resume that does not exist is not an error. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/resumes.md - `GET /api/v4/jobs` (Data and account): The jobs of the workspace, most recently updated first. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/jobs.md - `GET /api/v4/jobs/{job_id}` (Data and account): Get a stored job. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/jobs.md - `PUT /api/v4/jobs/{job_id}` (Data and account): Creates or updates a job under your job_id, for an ATS that keeps its own ids. Without criteria on creation, they are extracted from its text, as by POST /jobs/extract-criteria. On update, criteria are kept unless you send criteria or recompute_criteria: true; a criterion with the same label and threshold as a current one keeps its id and its per-criterion results. (JSON body, free; 1 credit per stored score evaluated again, client timeout ≥ 150 s). Docs: https://hirelayer.co/api-docs/jobs.md - `DELETE /api/v4/jobs/{job_id}` (Data and account): Deletes the job, its criteria and its scores. The resumes stay. Deleting a job that does not exist is not an error. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/jobs.md - `POST /api/v4/jobs/{job_id}/criteria` (Data and account): Adds a criterion. The job's stored scores are evaluated on it in the background, 1 credit each (their evaluation_status is pending meanwhile), and their verdict is null until their next full evaluation (see Verdict). (JSON body, 1 credit per stored score of the job, client timeout ≥ 150 s). Docs: https://hirelayer.co/api-docs/jobs.md - `PATCH /api/v4/jobs/{job_id}/criteria/{criterion_id}` (Data and account): A new weight, requirement or type re-ranks at once, for free; weight 0 turns the criterion off. A new label or threshold evaluates the criterion again on the job's stored scores, 1 credit each, and sets their verdict to null until their next full evaluation. (JSON body, free for weight, requirement and type; 1 credit per stored score for label or threshold, client timeout ≥ 150 s). Docs: https://hirelayer.co/api-docs/jobs.md - `DELETE /api/v4/jobs/{job_id}/criteria/{criterion_id}` (Data and account): The criterion leaves the scores at once, with no new evaluation, and the verdict of the job's scores is null until their next full evaluation. A job keeps at least one criterion. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/jobs.md - `GET /api/v4/jobs/{job_id}/scores` (Data and account): The stored scores of a job, best first, scored at read time with the priorities of this read. Free. precise_ranking=true costs 1 credit per read: it compares the 10 best of all the job's resumes and adds ranking_reason, and is billed when it ranks at least 2 completed scores (credits_used). It is made again only when those 10, the job's description or the priorities of the read (weights and requirements) change. In a workspace without storage (set after its jobs were stored), it is made again at every read and never kept. (no body, free; 1 with precise_ranking=true, client timeout ≥ 60 s). Docs: https://hirelayer.co/api-docs/jobs.md - `GET /api/v4/jobs/{job_id}/scores/{application_id}` (Data and account): One resume's score for a job, criterion by criterion, with the priorities of this read. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/jobs.md - `DELETE /api/v4/jobs/{job_id}/scores/{application_id}` (Data and account): Deletes the score. The resume stays in the workspace. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/jobs.md - `GET /api/v4/skills` (Skills Normalizer): The whole taxonomy, most frequent in resumes first. 1 credit. (no body, 1 credit, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/skills.md - `GET /api/v4/workspaces` (Data and account): default first, then the others, oldest first. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/account.md - `PUT /api/v4/workspaces/{workspace_id}` (Data and account): Creates a workspace for one of your customers, gives it a new display name, or imposes the no-storage mode on it. Its id never changes. Free. (JSON body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/account.md - `DELETE /api/v4/workspaces/{workspace_id}` (Data and account): Erases every job, resume, file and score of the workspace, for example when your customer leaves. Free. (no body, free, client timeout ≥ 60 s). Docs: https://hirelayer.co/api-docs/account.md - `GET /api/v4/account` (Data and account): The plan and the credits left of the key's account. Free. (no body, free, client timeout ≥ 30 s). Docs: https://hirelayer.co/api-docs/account.md - `GET /api/v4/health` (Data and account): No key needed. Free. (no body, free, client timeout ≥ 10 s, no API key). Docs: https://hirelayer.co/api-docs/account.md - `POST /api/v3/parser` (Legacy parser): Upload one resume file and receive the parsed resume at the top level of the response. Legacy: new integrations use POST /api/v4/resumes/parse, which returns the same JSON under resume. (multipart/form-data, 1 credit per successful parse (http 200, or 201 in hrflow.ai’s format), client timeout ≥ 150 s, LEGACY, do not use for new code). Docs: https://hirelayer.co/api-docs/legacy-parsers.md - `POST /api/v2/parser` (Legacy parser): Legacy asynchronous contract: the request is accepted with 202 and the result is posted to webhook_url. (multipart/form-data, 1 credit when the request is accepted (http 202), client timeout ≥ 50 s, LEGACY, do not use for new code). Docs: https://hirelayer.co/api-docs/legacy-parsers.md ## References - Index for agents: https://hirelayer.co/llms.txt - Full documentation in one file: https://hirelayer.co/llms-full.txt - OpenAPI 3.1: https://hirelayer.co/openapi.json ``` ## SDKs and MCP HireLayer has no official SDK: the API is plain HTTPS with one header, which agents handle reliably with the docs above. For typed clients, generate one from [`/openapi.json`](https://hirelayer.co/openapi.json). To use HireLayer from an AI assistant (Claude, ChatGPT, Cursor, VS Code, Codex or any MCP client) rather than from your code, connect the official [MCP server](https://hirelayer.co/mcp) at `https://hirelayer.co/mcp`: the assistant opens the HireLayer sign-in page and you allow access, with no key to copy. It exposes the six products as tools (`parse_resume`, `extract_job_criteria`, `score_resumes`, `search_resumes`, `search_jobs`, `normalize_skills`), billed like the API; what they store follows the workspace setting, as in the API. The same server runs locally with npm `hirelayer-mcp` (open source on [GitHub](https://github.com/HireLayer/hirelayer-mcp)) and an API key. In Claude Code: ```bash claude mcp add --transport http hirelayer https://hirelayer.co/mcp ``` See the [MCP server page](https://hirelayer.co/mcp) for Claude, ChatGPT, Cursor, VS Code and Codex. For code integrations, keep calling the REST API directly as described above. ## Next - [Quickstart](https://hirelayer.co/api-docs/quickstart.md): Create a free HireLayer API key, then rank resume files for a job description in one call with cURL or Python. - [Build a screening pipeline](https://hirelayer.co/api-docs/screening-pipeline.md): Sync jobs and applicants from an ATS, score them, re-rank with the recruiter’s priorities and search the talent pool, with your own ids. --- # Page: Migrate from HrFlow.ai > Replace HrFlow.ai’s resume parsing API without rewriting your integration: point its SDK at HireLayer or call the Resume Parser with output_format=hrflow. Source: https://hirelayer.co/api-docs/migrate-from-hrflow · Markdown: https://hirelayer.co/api-docs/migrate-from-hrflow.md To replace HrFlow.ai’s resume parsing API without rewriting your integration, switch to HireLayer: it answers in HrFlow.ai’s JSON format, so the code that reads your profiles stays. Choose how you call it: keep HrFlow.ai’s SDK and change two settings (the API URL and the key), or call the [Resume Parser](https://hirelayer.co/api-docs/parse-resume.md) with `output_format=hrflow`. Both parse, bill and store the resume the same way: 1 credit, the resume stored in the workspace under its `application_id`. | | HrFlow.ai-compatible API | `output_format=hrflow` | | --- | --- | --- | | Call | `POST /api/hrflow/v1/profile/parsing/file` | `POST /api/v4/resumes/parse?output_format=hrflow` | | For | HrFlow.ai’s SDK, or HTTP calls written for HrFlow.ai | New calls to HireLayer, read with your HrFlow.ai code | | What changes | The API URL and the key | The call; the code that reads the result stays | | Webhooks | None: every parse answers `201` | `webhook_url`, [signed](https://hirelayer.co/api-docs/webhooks.md) | ## Keep HrFlow.ai’s SDK Set the API URL to `https://hirelayer.co/api/hrflow/v1/` and the secret to your [HireLayer key](https://hirelayer.co/api-docs/authentication.md). The parsing call and its answer keep HrFlow.ai’s format. **Parse a resume through the HrFlow.ai-compatible API** **Python** ```python import os from hrflow import Hrflow client = Hrflow( api_url="https://hirelayer.co/api/hrflow/v1/", api_secret=os.environ["HIRELAYER_API_KEY"], api_user="you@company.com", # ignored ) with open("resume.pdf", "rb") as pdf: response = client.profile.parsing.add_file( source_key="acme", profile_file=pdf, reference="cand_123", sync_parsing=1, ) profile = response["data"]["profile"] ``` **cURL** ```bash curl -X POST https://hirelayer.co/api/hrflow/v1/profile/parsing/file \ -H "X-API-KEY: $HIRELAYER_API_KEY" \ -F "source_key=acme" \ -F "reference=cand_123" \ -F "file=@resume.pdf" ``` | HrFlow.ai request | At HireLayer | | --- | --- | | `X-API-KEY` header | Your HireLayer key | | `X-USER-EMAIL` header | Ignored | | `file` | The resume | | `source_key` | The [workspace](https://hirelayer.co/api-docs/authentication.md#workspaces): each Source keeps its profiles apart. Absent, `default`. | | `reference`, else `key` | The resume’s `application_id`, when it is a valid id; else one derived from the file. `reference` comes back as sent. | | `tags`, `metadatas`, `labels`, `created_at` | Back in the profile, your tags before HireLayer’s | | `sync_parsing` and the other fields | Ignored: the answer is always the real-time `201` | Only parsing is served. Every other path under `/api/hrflow/v1/` (profile retrieval, search, scoring, Sources) answers `404` in HrFlow.ai’s format. If your Source parses asynchronously (`202`, then a webhook or a GET), read the `201` body instead. ## Call the Resume Parser in HrFlow.ai’s format Add `?output_format=hrflow` to [`POST /api/v4/resumes/parse`](https://hirelayer.co/api-docs/parse-resume.md): the same parse, answered `201` with HrFlow.ai’s body. `output_format=hirelayer`, the default, answers the Resume Parser’s own JSON. The legacy [`/api/v3/parser`](https://hirelayer.co/api-docs/legacy-parsers.md) takes the same parameter and gives the same body. **Parse a resume in HrFlow.ai’s format** **cURL** ```bash curl -X POST -g "https://hirelayer.co/api/v4/resumes/parse?output_format=hrflow" \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -F "file=@resume.pdf;type=application/pdf" ``` **Python** ```python import os import requests with open("resume.pdf", "rb") as file: response = requests.post( "https://hirelayer.co/api/v4/resumes/parse?output_format=hrflow", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, files={"file": ("resume.pdf", file, "application/pdf")}, timeout=150, ) response.raise_for_status() data = response.json() print(data["data"]["profile"]["info"]) ``` **TypeScript** ```typescript import { readFile } from 'node:fs/promises' const form = new FormData() form.append( 'file', new Blob([await readFile('resume.pdf')], { type: 'application/pdf' }), 'resume.pdf' ) const response = await fetch('https://hirelayer.co/api/v4/resumes/parse?output_format=hrflow', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, body: form, signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.data.profile.info) ``` **201, cut** ```json { "code": 201, "message": "Profile parsed successfully.", "data": { "parsing": { "key": "file_d7e21d373637a897b17b8fdf63122807", "…": "…" }, "profile": { "key": "file_d7e21d373637a897b17b8fdf63122807", "reference": "file_d7e21d373637a897b17b8fdf63122807", "source_key": null, "info": { "full_name": "Elias MOREAU", "email": "elias.moreau@example.com", "…": "…" }, "…": "…" } } } ``` The full answer is the `201` example of [Parse a resume](https://hirelayer.co/api-docs/parse-resume.md). Send `HireLayer-Workspace` to name the profile’s Source (`source_key`). An unknown `output_format` is refused with `400 invalid_request` before anything is billed. ## The profile, field by field | HrFlow.ai field | Value | | --- | --- | | `key` | The resume’s `application_id`; without storage, the parse’s `request_id`. Not a 40-character HrFlow.ai key. | | `reference` | Your `application_id` (or `reference` through the compatible API). | | `source_key`, `source.key` | The workspace, when you send `HireLayer-Workspace` (or `source_key`); else `null`. | | `created_at`, `updated_at` | Parsing time, UTC: `2026-10-26T22:38:42+0000`. | | `text`, `text_language` | The full text; its language as a lowercase ISO 639-1 code. | | `info.full_name`, `first_name`, `last_name`, `email` | As in the resume. | | `info.phone` | E.164 (`+33612345678`), where HrFlow.ai keeps the number as written. | | `info.date_birth`, `info.driving_license` | Date of birth; licences joined with `, `. | | `info.location` | `text`, `lat`, `lng`, `gmaps` and the 21 `fields` keys; `fields.country` is ISO 3166-1 alpha-3 (`FRA`). | | `info.urls[]` | The LinkedIn, GitHub and other links found, typed by host. | | `info.picture` | The candidate’s photo cut from the resume, a link that expires. | | `experiences[]`, `educations[]` | Company or school, title, description, location (`text` only), `date_start` and `date_end` as `2019-05-01T00:00:00`, a `key` per entry. | | `experiences_duration`, `educations_duration` | Years over the periods with an end date, overlaps counted once. | | `skills[]` | `{name, type, value: null}`: hard and software skills are `hard`, soft skills `soft`; names in lowercase. | | `languages[]` | `name` as written, in lowercase; `value` the CEFR level (HrFlow.ai: `null`). | | `certifications[]`, `interests[]` | `{name, value: null}`, in lowercase. | | `attachments[]` | The original file, or empty without storage. | | `tags[]` | Values HrFlow.ai has no field for: `job_title`, `education_name`, `education_level`, `experience_level`, `age`, `availability_now`, `driver_license`, `can_work_in_other_cities`, `mobility_city`, `rome_code`, `rome_appellation_code`. | | `ranges[]` | `availability`, when the resume gives a date. | `data.parsing` holds the same values in HrFlow.ai’s parsing layout: dates as `{iso8601, text, timestamp}`, `persons`, `emails`, `phones` and `urls` lists, and `is_active` on each experience and education. > **Note: Nothing is estimated.** A value HireLayer does not extract is `null` or an empty list: `id`, `consent_algorithmic`, `archived_at`, `info.gender`, `info.summary`, logos, `courses`, `tasks`, the lists of each experience, and the page counts and file size of `data.parsing`. Contract types, the duration of each role, degree levels, skill categories and ROME labels have no place in HrFlow.ai’s format: the [Resume Parser](https://hirelayer.co/api-docs/parse-resume.md)’s own JSON has them. ## Errors Errors keep their HTTP status and headers, the request id included, with HrFlow.ai’s body: `code` is the status, `message` the HireLayer message, `error_code` the HireLayer [error code](https://hirelayer.co/api-docs/errors.md) to branch on. **401** ```json { "code": 401, "message": "Invalid API key: it is unknown, malformed or revoked.", "error_code": "invalid_api_key" } ``` ## Webhooks With `webhook_url` and `output_format=hrflow`, the call answers the usual `202`, and the [`resume.parsed` event](https://hirelayer.co/api-docs/webhooks.md) carries HrFlow.ai’s body in `data`, signed as every event. It is not HrFlow.ai’s event envelope: read `data.data.profile`. A failed parse sends `resume.parse_failed` with the HireLayer error. ## Before you switch - Set a client timeout of 150 seconds: a parse takes about 25 to 35 seconds, and HrFlow.ai’s SDK sets none. - Search and scoring on stored profiles have their own HireLayer endpoints: [Talent Pool Search](https://hirelayer.co/api-docs/search-resumes.md) and the [Resume Scorer](https://hirelayer.co/api-docs/score.md), on the resumes you parsed. - To keep nothing, send `do_not_store_data=true` (Enterprise plan): `key` is then the `request_id` and `attachments` is empty. > **Tip: Another vendor’s format.** Moving from another resume parser and want to keep your code? [Tell us which format you need](https://hirelayer.co/book-a-demo). ## Next - [HireLayer Resume Parser](https://hirelayer.co/api-docs/parse-resume.md): Resume parser API reference: send a PDF, Word or image resume in one multipart request and get the candidate back as JSON, photo included, in 70 languages. - [Errors and retries](https://hirelayer.co/api-docs/errors.md): The error format of the HireLayer API, every error code, and when to retry a call. --- # Page: Legacy parsers > `POST /api/v3/parser` and `POST /api/v2/parser` stay in service, with their JSON unchanged, for existing integrations. New integrations use the Resume Parser. > **Legacy.** Maintained for existing integrations only. Source: https://hirelayer.co/api-docs/legacy-parsers · Markdown: https://hirelayer.co/api-docs/legacy-parsers.md > **Warning: For existing integrations.** These two paths keep answering as they always have: no field is added to their JSON (`/api/v3/parser?output_format=hrflow` answers in HrFlow.ai’s format, see [Migrate from HrFlow.ai](https://hirelayer.co/api-docs/migrate-from-hrflow.md)). New integrations use [`POST /api/v4/resumes/parse`](https://hirelayer.co/api-docs/parse-resume.md): the same parse, under `resume`, with the [errors](https://hirelayer.co/api-docs/errors.md) and [webhooks](https://hirelayer.co/api-docs/webhooks.md) of the rest of the API. | | `/api/v3/parser` | `/api/v4/resumes/parse` | | --- | --- | --- | | Parsed resume | At the top level of the response | Under `resume`, next to `application_id` and `credits_used` | | Same file sent again | Parsed again, 1 credit | The stored resume, `already_stored: true`, 0 credit | | Errors | `{"error": "…", "code": "…"}` | `{"error": {"code", "message", "param", "doc_url"}}` | | Asynchronous | `Prefer: respond-async` and `webhook_url`, unsigned webhook | `webhook_url`, [signed webhook](https://hirelayer.co/api-docs/webhooks.md) | ## Parse a resume (v3) `POST https://hirelayer.co/api/v3/parser` Upload one resume file and receive the parsed resume at the top level of the response. Legacy: new integrations use [`POST /api/v4/resumes/parse`](https://hirelayer.co/api-docs/parse-resume.md), which returns the same JSON under `resume`. - **Authentication:** `X-API-Key` header - **Content type:** `multipart/form-data` - **Billing:** 1 credit per successful parse (HTTP 200, or 201 in HrFlow.ai’s format) - **Client timeout:** at least 150 seconds - **Status:** Legacy, maintained for existing integrations only ### Headers | Field | Type | Required | Description | | --- | --- | --- | --- | | `Prefer` | `string` | No | `respond-async` answers `202` right away and posts the outcome to `webhook_url` (HTTPS required). See [Asynchronous mode](https://hirelayer.co/api-docs/legacy-parsers.md#async). Value: `"respond-async"`. | | `HireLayer-Workspace` | `string` | No | The [workspace](https://hirelayer.co/api-docs/authentication.md#workspaces) the parse is stored in, when you serve several companies. Defaults to `default`. When sent, the response also includes `workspace`. | ### Query parameters | Field | Type | Required | Description | | --- | --- | --- | --- | | `output_format` | `string` | No | `hirelayer` (default): the response below. `hrflow`: the same parse as HrFlow.ai’s resume parsing answers it, with `201`, and errors as `{"code": , "message": "…", "error_code": "…"}`. See [Migrate from HrFlow.ai](https://hirelayer.co/api-docs/migrate-from-hrflow.md). One of: `"hirelayer"`, `"hrflow"`. | ### Request body | Field | Type | Required | Description | | --- | --- | --- | --- | | `file` | `file` | Yes | The resume: PDF, DOC, DOCX, ODT, PPT, PPTX, ODP, XLS, RTF, TXT, HTML, Markdown, JPG/JPEG, PNG or BMP. The type is detected from the content. Keep it under 4.5 MB. | | `application_id` | `string` | No | Your id for this application (letters, digits and . _ : ~ -, up to 200 characters). The parse is stored in the [resume database](https://hirelayer.co/api-docs/resumes.md) under it, replacing the resume stored under the same id before, and it comes back in `info_resume.application_id`. See [Score a parsed resume](https://hirelayer.co/api-docs/legacy-parsers.md#applications). | | `webhook_url` | `string (URL)` | No | HTTP(S) URL that also receives the result. The response stays synchronous unless you send `Prefer: respond-async` (an HTTPS URL on the standard port, without credentials, required). See [Asynchronous mode](https://hirelayer.co/api-docs/legacy-parsers.md#async). | | `do_not_store_data` | `string` | No | `true`: the resume file is **not stored**, nor the parsed resume. `info_resume.url` is then `null`, and the cropped photo is only reachable through a temporary link valid 10 minutes. Case-insensitive. Defaults to `false` (file stored). `true` is reserved for the **Enterprise plan**: on other plans the request is refused with `403` `ENTERPRISE_PLAN_REQUIRED`. See [Data storage](https://hirelayer.co/api-docs/authentication.md#storage). One of: `"true"`, `"false"`. | ### Example request **cURL** ```bash curl -X POST https://hirelayer.co/api/v3/parser \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "HireLayer-Workspace: acme-corp" \ -F "file=@resume.pdf;type=application/pdf" \ -F "application_id=app_123" ``` **Python** ```python import os import requests with open("resume.pdf", "rb") as file: response = requests.post( "https://hirelayer.co/api/v3/parser", headers={ "X-API-Key": os.environ["HIRELAYER_API_KEY"], "HireLayer-Workspace": "acme-corp", }, files={"file": ("resume.pdf", file, "application/pdf")}, data={ "application_id": "app_123", }, timeout=150, ) response.raise_for_status() data = response.json() print(data["info_candidate"]["full_name"]) ``` **TypeScript** ```typescript import { readFile } from 'node:fs/promises' const form = new FormData() form.append( 'file', new Blob([await readFile('resume.pdf')], { type: 'application/pdf' }), 'resume.pdf' ) form.append('application_id', 'app_123') const response = await fetch('https://hirelayer.co/api/v3/parser', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, 'HireLayer-Workspace': 'acme-corp', }, body: form, signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.info_candidate.full_name) ``` ### Response `200` Parsed resume. | Field | Type | Description | | --- | --- | --- | | `status` | `string` | Always `success` on HTTP 200. Value: `"success"`. | | `upstream_status` | `string` | May be absent. Present when an optional step was skipped or the document is not a resume (see `warnings`). The data is still usable. Value: `"partial"`. | | `request_id` | `string` | Unique request ID. Quote it when contacting support. | | `warnings` | `string[]` | Human-readable notes about skipped steps (OCR, photo, geocoding, occupation codes) or about a document that is not a resume (cover letter, diploma or certificate, recommendation letter). Informational: do not parse. | | `errors` | `string[]` | Always empty on HTTP 200. Failures use non-2xx statuses. | | `info_resume` | `ResumeInfo` | The document. | | `info_resume.application_id` | `string \| null` | The id the parse is stored under in the [resume database](https://hirelayer.co/api-docs/resumes.md): your `application_id`, or, when you sent none, `file_` followed by the first 32 hexadecimal characters of the SHA-256 of the file’s bytes. With `do_not_store_data=true`, or when storing failed, your `application_id` as sent, or `null`. See [Score a parsed resume](https://hirelayer.co/api-docs/legacy-parsers.md#applications). | | `info_resume.date_parsing` | `string` | Parsing time in UTC, `YYYY-MM-DDTHH:mm:ss`, without a zone suffix. | | `info_resume.language` | `string \| null` | Main language of the resume, uppercase ISO 639-1 code such as `EN` or `FR`. | | `info_resume.url` | `string \| null` | URL of the stored original file. Anyone with the link can open it. `null` with `do_not_store_data=true`, because the file is not stored. | | `info_resume.face_url` | `string \| null` | Candidate photo cropped from the resume. `null` when no face is found and for `.txt` files. | | `info_resume.face_url_expires_at` | `string \| null` | With `do_not_store_data=true`: expiry of the temporary `face_url`, 10 minutes after parsing, UTC `YYYY-MM-DDTHH:mm:ss`. Otherwise `null` and `face_url` does not expire. | | `info_resume.text` | `string` | Full extracted text, including OCR. May end with `[EXTRACTED_HYPERLINKS]` and `[PDF_ANNOTATION_TEXTS]` sections. | | `info_candidate` | `Candidate` | The candidate profile. | | `info_candidate.full_name` | `string \| null` | First and last name. | | `info_candidate.last_name` | `string \| null` | Last name. | | `info_candidate.first_name` | `string \| null` | First name. | | `info_candidate.email` | `string \| null` | Lower-cased email address. | | `info_candidate.phone_number` | `string \| null` | E.164 phone number, e.g. `+33612345678`. The country is inferred from the resume, France by default. A number written in the resume that is not valid for its country is still returned, in E.164 when its length fits, otherwise as written, with a warning. | | `info_candidate.birth_date` | `string \| null` | Date of birth, `YYYY-MM-DD`. A year alone becomes `YYYY-01-01`. | | `info_candidate.age` | `number \| null` | Age in years, as stated or inferred. | | `info_candidate.availability_now` | `boolean \| null` | Whether the candidate is available now. | | `info_candidate.availability_date` | `string \| null` | Date from which the candidate is available, `YYYY-MM-DD`. | | `info_candidate.driver_license` | `string[]` | Driving licences as written, e.g. `Driving licence B`. | | `info_candidate.job_title` | `string \| null` | Target or current job title. Falls back to the most recent position. | | `info_candidate.education_name` | `string \| null` | Highest qualification relevant to the job title. | | `info_candidate.education_level` | `string \| null` | Highest European Qualifications Framework (EQF) level. One of: `"Level 1"`, `"Level 2"`, `"Level 3"`, `"Level 4"`, `"Level 5"`, `"Level 6"`, `"Level 7"`, `"Level 8"`, `"Other"`. | | `info_candidate.experience_level` | `string \| null` | Total professional experience bracket. One of: `"0 to 1 year"`, `"1 to 3 years"`, `"3 to 5 years"`, `"5 to 10 years"`, `"More than 10 years"`. | | `info_candidate.linkedin_url` | `string \| null` | LinkedIn profile URL. | | `info_candidate.github_url` | `string \| null` | GitHub profile URL. | | `info_candidate.other_urls` | `string[]` | Other URLs in the resume (portfolio, website…). | | `info_candidate.location` | `Location` | Where the candidate lives. | | `info_candidate.location.country` | `string \| null` | Country name. | | `info_candidate.location.country_code` | `string \| null` | ISO 3166-1 alpha-2 country code, e.g. `FR`. | | `info_candidate.location.region` | `string \| null` | Region. | | `info_candidate.location.department` | `string \| null` | Department or county. | | `info_candidate.location.city` | `string \| null` | City. | | `info_candidate.location.postal_code` | `string \| null` | Postal code. | | `info_candidate.location.full_address` | `string \| null` | Address as a single line. | | `info_candidate.location.latitude` | `number \| null` | Latitude from geocoding. | | `info_candidate.location.longitude` | `number \| null` | Longitude from geocoding. | | `info_candidate.mobility` | `Mobility` | Where else the candidate can work. | | `info_candidate.mobility.can_work_in_other_cities` | `boolean \| null` | Whether the resume says the candidate can work elsewhere. `null` when not mentioned. | | `info_candidate.mobility.other_cities` | `MobilityCity[]` | Cities explicitly named as possible work locations. | | `info_candidate.mobility.other_cities[].city` | `string \| null` | City named in the resume. | | `info_candidate.mobility.other_cities[].country` | `string \| null` | Country, when stated or reliably inferred. | | `info_candidate.mobility.other_cities[].postal_code` | `string \| null` | Postal code, when present in the resume. | | `info_candidate.mobility.other_cities[].latitude` | `number \| null` | Latitude from geocoding. | | `info_candidate.mobility.other_cities[].longitude` | `number \| null` | Longitude from geocoding. | | `work_experiences` | `WorkExperience[]` | | | `work_experiences[].company_name` | `string \| null` | Employer name. | | `work_experiences[].job_title` | `string \| null` | Job title for this position. | | `work_experiences[].description` | `string \| null` | Tasks, responsibilities and achievements. | | `work_experiences[].contract_type` | `string \| null` | Canonical contract type. Unrecognized values become `Other`. One of: `"Permanent contract"`, `"Fixed-term contract"`, `"Temporary assignment"`, `"Internship"`, `"Apprenticeship"`, `"Freelance"`, `"Volunteering"`, `"Other"`. | | `work_experiences[].start_date` | `string \| null` | Start date, `YYYY-MM-DD`. A year alone becomes `YYYY-01-01`; a month alone, its first day. | | `work_experiences[].end_date` | `string \| null` | End date, `YYYY-MM-DD`. `null` for an ongoing role. A year alone becomes `YYYY-12-31`; a month alone, its last day. | | `work_experiences[].currently_active` | `boolean \| null` | Whether this is a current position. | | `work_experiences[].work_experience_country` | `string \| null` | Country of the position. | | `work_experiences[].work_experience_country_code` | `string \| null` | ISO 3166-1 alpha-2 country code. | | `work_experiences[].work_experience_city` | `string \| null` | City of the position. | | `work_experiences[].work_experience_postal_code` | `string \| null` | Postal code of the position. | | `work_experiences[].experience_duration` | `number \| null` | Duration of this position in months, as extracted. | | `educations` | `Education[]` | | | `educations[].degree_title` | `string \| null` | Name of the degree or programme. | | `educations[].school_name` | `string \| null` | School or institution. | | `educations[].description` | `string \| null` | Details of the programme. | | `educations[].degree_type` | `string \| null` | EQF level of the degree, expected to be one of `Level 1`…`Level 8` or `Other`. Not normalized: treat other strings as `Other`. | | `educations[].start_date` | `string \| null` | Start date, `YYYY-MM-DD`. | | `educations[].end_date` | `string \| null` | End date, `YYYY-MM-DD`. | | `educations[].currently_active` | `boolean \| null` | Whether the programme is in progress. | | `educations[].location` | `EducationLocation` | Location of the school. | | `educations[].location.country` | `string \| null` | Country name. | | `educations[].location.country_code` | `string \| null` | ISO 3166-1 alpha-2 country code, e.g. `FR`. | | `educations[].location.region` | `string \| null` | Region. | | `educations[].location.department` | `string \| null` | Department or county. | | `educations[].location.city` | `string \| null` | City. | | `educations[].location.postal_code` | `string \| null` | Postal code. | | `educations[].location.full_address` | `string \| null` | Address as a single line. | | `rome_jobs` | `RomeJob[]` | Occupations predicted from `info_candidate.job_title` with the French ROME taxonomy. | | `rome_jobs[].job_title` | `string` | Occupation label, in French. | | `rome_jobs[].job_code` | `string` | Occupation (appellation) code. | | `rome_jobs[].rome_title` | `string` | ROME job family label, in French. | | `rome_jobs[].rome_code` | `string` | ROME code, e.g. `M1805`. | | `rome_jobs[].prediction_score` | `number` | Confidence between 0.7 and 1. | | `languages` | `Language[]` | | | `languages[].language` | `string` | Language name as written in the resume. | | `languages[].level` | `string \| null` | CEFR-based proficiency, or `null` when not stated. One of: `"Native or Bilingual (C2)"`, `"Full Professional Proficiency (C1)"`, `"Professional Working Proficiency (B2)"`, `"Limited Working Proficiency (B1)"`, `"Advanced Basic Proficiency (A2)"`, `"Introductory Proficiency (A1)"`. | | `skills` | `Skill[]` | | | `skills[].skill_title` | `string` | Taxonomy skill name when `status` is `normalized`: in French for a resume in French, in English for a resume in any other language. Otherwise the text from the resume. One resume skill can give several normalized skills (`Word/Excel`). | | `skills[].skill_type` | `string` | One of: `"Hard skill"`, `"Soft skill"`, `"Software skill"`. | | `skills[].status` | `string` | `normalized`: resolved to the [HireLayer Skills taxonomy](https://hirelayer.co/api-docs/skills.md). `raw`: kept as written in the resume. One of: `"normalized"`, `"raw"`. | | `skills[].domain` | `string \| null` | Primary domain of the taxonomy skill, in the language of `skill_title`. `null` when `status` is `raw`. | | `skills[].subcategory` | `string \| null` | Primary family of the taxonomy skill, in the language of `skill_title`. `null` when `status` is `raw`. | | `certifications` | `string[]` | | | `interests` | `string[]` | | | `workspace` | `string \| null` | May be absent. Only when you send the `HireLayer-Workspace` header: the [workspace](https://hirelayer.co/api-docs/authentication.md#workspaces) the parse is stored in. `null` when it is not stored. See [Score a parsed resume](https://hirelayer.co/api-docs/legacy-parsers.md#applications). | ```json { "status": "success", "request_id": "6f1c2a9e-4b7d-4c3e-9a51-2f8d7e6b1c04", "warnings": [], "errors": [], "info_resume": { "application_id": "app_123", "date_parsing": "2026-10-01T09:30:12", "language": "EN", "url": "https://files.example.com/original/1790847012000-alex-morgan.pdf", "face_url": "https://files.example.com/faces/1790847012000-alex-morgan.jpg", "face_url_expires_at": null, "text": "Alex Morgan\nSenior Software Engineer\nParis, France\nalex.morgan@example.com\n\nSenior software engineer with 8 years of experience building web platforms…" }, "info_candidate": { "full_name": "Alex Morgan", "last_name": "Morgan", "first_name": "Alex", "email": "alex.morgan@example.com", "phone_number": "+33612345678", "birth_date": "1992-04-18", "age": 34, "availability_now": false, "availability_date": "2026-11-01", "driver_license": [ "Driving licence B" ], "job_title": "Senior Software Engineer", "education_name": "Master of Science in Computer Science", "education_level": "Level 7", "experience_level": "5 to 10 years", "linkedin_url": "https://www.linkedin.com/in/alex-morgan", "github_url": "https://github.com/alexmorgan", "other_urls": [ "https://alexmorgan.dev" ], "location": { "country": "France", "country_code": "FR", "region": "Île-de-France", "department": "Paris", "city": "Paris", "postal_code": "75011", "full_address": "75011 Paris, France", "latitude": 48.8589, "longitude": 2.3801 }, "mobility": { "can_work_in_other_cities": true, "other_cities": [ { "city": "Lyon", "country": "France", "postal_code": null, "latitude": 45.764, "longitude": 4.8357 } ] } }, "work_experiences": [ { "company_name": "Northstar Labs", "job_title": "Senior Software Engineer", "description": "Lead a team of five engineers building a TypeScript and React SaaS platform.", "contract_type": "Permanent contract", "start_date": "2022-03-01", "end_date": null, "currently_active": true, "work_experience_country": "France", "work_experience_country_code": "FR", "work_experience_city": "Paris", "work_experience_postal_code": null, "experience_duration": 55 }, { "company_name": "Atelier Digital", "job_title": "Software Engineer", "description": "Built Node.js APIs and data pipelines for recruitment clients.", "contract_type": "Permanent contract", "start_date": "2018-09-01", "end_date": "2022-02-28", "currently_active": false, "work_experience_country": "France", "work_experience_country_code": "FR", "work_experience_city": "Paris", "work_experience_postal_code": null, "experience_duration": 42 } ], "educations": [ { "degree_title": "Master of Science in Computer Science", "school_name": "University of Edinburgh", "description": "Distributed systems and software architecture.", "degree_type": "Level 7", "start_date": "2014-09-01", "end_date": "2016-06-30", "currently_active": false, "location": { "country": "United Kingdom", "country_code": "GB", "region": "Scotland", "department": "City of Edinburgh", "city": "Edinburgh", "postal_code": "EH8 9YL", "full_address": "Edinburgh, United Kingdom" } } ], "rome_jobs": [], "languages": [ { "language": "English", "level": "Native or Bilingual (C2)" }, { "language": "French", "level": "Professional Working Proficiency (B2)" } ], "skills": [ { "skill_title": "React", "skill_type": "Software skill", "status": "normalized", "domain": "Software Development", "subcategory": "Frontend development" }, { "skill_title": "TypeScript", "skill_type": "Software skill", "status": "normalized", "domain": "Software Development", "subcategory": "Programming languages" }, { "skill_title": "Figma", "skill_type": "Software skill", "status": "normalized", "domain": "Design, Creative & Media", "subcategory": "UX/UI design" }, { "skill_title": "Technical leadership", "skill_type": "Soft skill", "status": "normalized", "domain": "Management, Projects & Strategy", "subcategory": "Team management" }, { "skill_title": "Developer experience", "skill_type": "Hard skill", "status": "raw", "domain": null, "subcategory": null } ], "certifications": [ "AWS Certified Developer – Associate" ], "interests": [ "Open-source software", "Climbing" ] } ``` ### Response `201` Parsed resume in HrFlow.ai’s format, with `output_format=hrflow`. See [Migrate from HrFlow.ai](https://hirelayer.co/api-docs/migrate-from-hrflow.md). | Field | Type | Description | | --- | --- | --- | | `code` | `number` | Value: `201`. | | `message` | `string` | | | `data` | `object` | | | `data.parsing` | `object` | HrFlow.ai’s parsing object. | | `data.profile` | `object` | HrFlow.ai’s Profile object. `key` is the resume’s `application_id` (the `request_id` when it is not stored), `reference` the `application_id`, `source_key` the workspace when you send `HireLayer-Workspace`. | ```json { "code": 201, "message": "Profile parsed successfully.", "data": { "parsing": { "key": "app_123", "content_uid": null, "file_name": "resume.pdf", "file_size": null, "processed_pages": null, "total_pages": null, "text_language": "en", "text": "Alex Morgan\nSenior Software Engineer\nParis, France\nalex.morgan@example.com\n\nSenior software engineer with 8 years of experience building web platforms…", "persons": [ { "first_name": "Alex", "full_name": "Alex Morgan", "last_name": "Morgan" } ], "emails": [ "alex.morgan@example.com" ], "phones": [ "+33612345678" ], "urls": [ { "type": "linkedin", "url": "https://www.linkedin.com/in/alex-morgan" }, { "type": "github", "url": "https://github.com/alexmorgan" }, { "type": "from_resume", "url": "https://alexmorgan.dev" } ], "date_birth": { "iso8601": "1992-04-18T00:00:00", "text": null, "timestamp": 703555200 }, "gender": null, "driving_license": "Driving licence B", "location": { "text": "75011 Paris, France", "lat": 48.8589, "lng": 2.3801, "gmaps": "https://www.google.com/maps/place/48.8589,2.3801", "fields": { "category": null, "city": "Paris", "city_district": null, "country": "FRA", "country_region": null, "entrance": null, "house": null, "house_number": null, "island": null, "level": null, "near": null, "po_box": null, "postcode": "75011", "road": null, "staircase": null, "state": "Île-de-France", "state_district": "Paris", "suburb": null, "text": "75011 Paris, France", "unit": null, "world_region": null } }, "picture": "https://files.example.com/faces/1790847012000-alex-morgan.jpg", "images": null, "summary": null, "experiences": [ { "content_uid": null, "company": "Northstar Labs", "logo": null, "title": "Senior Software Engineer", "description": "Lead a team of five engineers building a TypeScript and React SaaS platform.", "location": { "text": "Paris, France", "lat": null, "lng": null, "gmaps": null, "fields": { "category": null, "city": "Paris", "city_district": null, "country": "FRA", "country_region": null, "entrance": null, "house": null, "house_number": null, "island": null, "level": null, "near": null, "po_box": null, "postcode": null, "road": null, "staircase": null, "state": null, "state_district": null, "suburb": null, "text": "Paris, France", "unit": null, "world_region": null } }, "date_start": { "iso8601": "2022-03-01T00:00:00", "text": null, "timestamp": 1646092800 }, "date_end": { "iso8601": null, "text": null, "timestamp": null }, "is_active": true, "skills": [], "certifications": [], "courses": [], "tasks": [], "languages": [], "interests": [] }, { "content_uid": null, "company": "Atelier Digital", "logo": null, "title": "Software Engineer", "description": "Built Node.js APIs and data pipelines for recruitment clients.", "location": { "text": "Paris, France", "lat": null, "lng": null, "gmaps": null, "fields": { "category": null, "city": "Paris", "city_district": null, "country": "FRA", "country_region": null, "entrance": null, "house": null, "house_number": null, "island": null, "level": null, "near": null, "po_box": null, "postcode": null, "road": null, "staircase": null, "state": null, "state_district": null, "suburb": null, "text": "Paris, France", "unit": null, "world_region": null } }, "date_start": { "iso8601": "2018-09-01T00:00:00", "text": null, "timestamp": 1535760000 }, "date_end": { "iso8601": "2022-02-28T00:00:00", "text": null, "timestamp": 1646006400 }, "is_active": false, "skills": [], "certifications": [], "courses": [], "tasks": [], "languages": [], "interests": [] } ], "experiences_duration": 3.495890410958904, "educations": [ { "content_uid": null, "school": "University of Edinburgh", "logo": null, "title": "Master of Science in Computer Science", "description": "Distributed systems and software architecture.", "location": { "text": "Edinburgh, United Kingdom", "lat": null, "lng": null, "gmaps": null, "fields": { "category": null, "city": "Edinburgh", "city_district": null, "country": "GBR", "country_region": null, "entrance": null, "house": null, "house_number": null, "island": null, "level": null, "near": null, "po_box": null, "postcode": "EH8 9YL", "road": null, "staircase": null, "state": "Scotland", "state_district": "City of Edinburgh", "suburb": null, "text": "Edinburgh, United Kingdom", "unit": null, "world_region": null } }, "date_start": { "iso8601": "2014-09-01T00:00:00", "text": null, "timestamp": 1409529600 }, "date_end": { "iso8601": "2016-06-30T00:00:00", "text": null, "timestamp": 1467244800 }, "is_active": false, "skills": [], "certifications": [], "courses": [], "tasks": [], "languages": [], "interests": [] } ], "educations_duration": 1.83013698630137, "skills": [ { "name": "react", "type": "hard", "value": null }, { "name": "typescript", "type": "hard", "value": null }, { "name": "figma", "type": "hard", "value": null }, { "name": "technical leadership", "type": "soft", "value": null }, { "name": "developer experience", "type": "hard", "value": null } ], "languages": [ { "name": "english", "value": "Native or Bilingual (C2)" }, { "name": "french", "value": "Professional Working Proficiency (B2)" } ], "certifications": [ { "name": "aws certified developer – associate", "value": null } ], "courses": [], "tasks": [], "interests": [ { "name": "open-source software", "value": null }, { "name": "climbing", "value": null } ] }, "profile": { "id": null, "source_key": null, "key": "app_123", "reference": "app_123", "consent_algorithmic": null, "source": null, "archive": null, "archived_at": null, "updated_at": "2026-10-01T09:30:12+0000", "created_at": "2026-10-01T09:30:12+0000", "info": { "full_name": "Alex Morgan", "first_name": "Alex", "last_name": "Morgan", "email": "alex.morgan@example.com", "phone": "+33612345678", "driving_license": "Driving licence B", "date_birth": "1992-04-18T00:00:00+0000", "location": { "text": "75011 Paris, France", "lat": 48.8589, "lng": 2.3801, "gmaps": "https://www.google.com/maps/place/48.8589,2.3801", "fields": { "category": null, "city": "Paris", "city_district": null, "country": "FRA", "country_region": null, "entrance": null, "house": null, "house_number": null, "island": null, "level": null, "near": null, "po_box": null, "postcode": "75011", "road": null, "staircase": null, "state": "Île-de-France", "state_district": "Paris", "suburb": null, "text": "75011 Paris, France", "unit": null, "world_region": null } }, "urls": [ { "type": "linkedin", "url": "https://www.linkedin.com/in/alex-morgan" }, { "type": "github", "url": "https://github.com/alexmorgan" }, { "type": "from_resume", "url": "https://alexmorgan.dev" } ], "picture": "https://files.example.com/faces/1790847012000-alex-morgan.jpg", "gender": null, "summary": null }, "text_language": "en", "text": "Alex Morgan\nSenior Software Engineer\nParis, France\nalex.morgan@example.com\n\nSenior software engineer with 8 years of experience building web platforms…", "experiences_duration": 3.495890410958904, "educations_duration": 1.83013698630137, "experiences": [ { "key": "9d60ee10a344772612165ac4f42ff421bce638cc", "company": "Northstar Labs", "logo": null, "title": "Senior Software Engineer", "description": "Lead a team of five engineers building a TypeScript and React SaaS platform.", "location": { "text": "Paris, France", "lat": null, "lng": null, "gmaps": null, "fields": null }, "date_start": "2022-03-01T00:00:00", "date_end": null, "skills": [], "certifications": [], "courses": [], "tasks": [], "languages": [], "interests": [] }, { "key": "e04a3b0f0c0c18d849cf1bfb993af5c459c05d21", "company": "Atelier Digital", "logo": null, "title": "Software Engineer", "description": "Built Node.js APIs and data pipelines for recruitment clients.", "location": { "text": "Paris, France", "lat": null, "lng": null, "gmaps": null, "fields": null }, "date_start": "2018-09-01T00:00:00", "date_end": "2022-02-28T00:00:00", "skills": [], "certifications": [], "courses": [], "tasks": [], "languages": [], "interests": [] } ], "educations": [ { "key": "45d3a52c5ad3daaeb5a712854a6e9dc309c3b66e", "school": "University of Edinburgh", "logo": null, "title": "Master of Science in Computer Science", "description": "Distributed systems and software architecture.", "location": { "text": "Edinburgh, United Kingdom", "lat": null, "lng": null, "gmaps": null, "fields": null }, "date_start": "2014-09-01T00:00:00", "date_end": "2016-06-30T00:00:00", "skills": [], "certifications": [], "courses": [], "tasks": [], "languages": [], "interests": [] } ], "attachments": [ { "type": "original", "alt": null, "file_size": null, "file_name": "original", "original_file_name": "resume.pdf", "extension": ".pdf", "public_url": "https://files.example.com/original/1790847012000-alex-morgan.pdf", "updated_at": "2026-10-01T09:30:12+0000", "created_at": "2026-10-01T09:30:12+0000" } ], "skills": [ { "name": "react", "type": "hard", "value": null }, { "name": "typescript", "type": "hard", "value": null }, { "name": "figma", "type": "hard", "value": null }, { "name": "technical leadership", "type": "soft", "value": null }, { "name": "developer experience", "type": "hard", "value": null } ], "languages": [ { "name": "english", "value": "Native or Bilingual (C2)" }, { "name": "french", "value": "Professional Working Proficiency (B2)" } ], "certifications": [ { "name": "aws certified developer – associate", "value": null } ], "courses": [], "tasks": [], "interests": [ { "name": "open-source software", "value": null }, { "name": "climbing", "value": null } ], "labels": [], "tags": [ { "name": "job_title", "value": "Senior Software Engineer" }, { "name": "education_name", "value": "Master of Science in Computer Science" }, { "name": "education_level", "value": "Level 7" }, { "name": "experience_level", "value": "5 to 10 years" }, { "name": "age", "value": "34" }, { "name": "availability_now", "value": "false" }, { "name": "driver_license", "value": "Driving licence B" }, { "name": "can_work_in_other_cities", "value": "true" }, { "name": "mobility_city", "value": "Lyon" } ], "ranges": [ { "name": "availability", "value_min": "2026-11-01", "value_max": null } ], "metadatas": [] } } } ``` ### Response `202` Accepted in [asynchronous mode](https://hirelayer.co/api-docs/legacy-parsers.md#async): the outcome is posted to `webhook_url`. | Field | Type | Description | | --- | --- | --- | | `status` | `string` | Value: `"accepted"`. | | `application_id` | `string \| null` | Your `application_id`, or `null` when not sent. | | `workspace` | `string` | May be absent. Only when you send the `HireLayer-Workspace` header: its value, the workspace the parse is stored in. | ```json { "status": "accepted", "application_id": "app_123", "workspace": "acme-corp" } ``` ### In HrFlow.ai’s format request `?output_format=hrflow`: the same parse, credit and storage, answered `201` as HrFlow.ai’s resume parsing does. See [Migrate from HrFlow.ai](https://hirelayer.co/api-docs/migrate-from-hrflow.md). **cURL** ```bash curl -X POST -g "https://hirelayer.co/api/v3/parser?output_format=hrflow" \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "HireLayer-Workspace: acme-corp" \ -F "file=@resume.pdf;type=application/pdf" \ -F "application_id=app_123" ``` **Python** ```python import os import requests with open("resume.pdf", "rb") as file: response = requests.post( "https://hirelayer.co/api/v3/parser?output_format=hrflow", headers={ "X-API-Key": os.environ["HIRELAYER_API_KEY"], "HireLayer-Workspace": "acme-corp", }, files={"file": ("resume.pdf", file, "application/pdf")}, data={ "application_id": "app_123", }, timeout=150, ) response.raise_for_status() data = response.json() print(data["data"]["profile"]["info"]) ``` **TypeScript** ```typescript import { readFile } from 'node:fs/promises' const form = new FormData() form.append( 'file', new Blob([await readFile('resume.pdf')], { type: 'application/pdf' }), 'resume.pdf' ) form.append('application_id', 'app_123') const response = await fetch('https://hirelayer.co/api/v3/parser?output_format=hrflow', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, 'HireLayer-Workspace': 'acme-corp', }, body: form, signal: AbortSignal.timeout(150_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.data.profile.info) ``` The response is the `201` above. ### Errors | Status | `error` | `code` | When | Retry | | --- | --- | --- | --- | --- | | `400` | `Unsupported output_format. Use one of: hirelayer, hrflow` | `UNSUPPORTED_OUTPUT_FORMAT` | `output_format` is neither `hirelayer` nor `hrflow`. Checked first, before the key and the file, and answered in the HireLayer format. See [Migrate from HrFlow.ai](https://hirelayer.co/api-docs/migrate-from-hrflow.md). | Fix, then retry | | `400` | `The request body is not valid multipart/form-data. Check the boundary and the Content-Disposition header of each part.` | `INVALID_MULTIPART_BODY` | The body cannot be read as `multipart/form-data`: the `boundary` is missing or does not match the body, the body is truncated, or a part has no `Content-Disposition: form-data` header with a `name`. Unquoted parameter values and `filename*` (as sent by .NET `MultipartFormDataContent`) are accepted. | Do not retry | | `400` | `Missing required file field` | — | No multipart part named `file`. | Do not retry | | `400` | `Prefer: respond-async requires a webhook_url field with an HTTPS URL` | — | The request asks for the [asynchronous mode](https://hirelayer.co/api-docs/legacy-parsers.md#async) without a valid HTTPS `webhook_url`, or with one a failure cannot be posted to: with credentials (`user:password@`), on another port than the standard one, or to a private IP address, written as such or as a host name whose addresses are all private (such as `localhost`). A host name that does not resolve at that moment is accepted. | Do not retry | | `400` | `application_id must be a string when provided` | — | `application_id` was sent as a file part. | Do not retry | | `400` | `application_id must contain letters, digits and . _ : ~ -, up to 200 characters` | — | `application_id` has other characters, or more than 200. Nothing was parsed or billed. | Do not retry | | `400` | `HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters` | — | The `HireLayer-Workspace` header has other characters, or more than 200. Nothing was parsed or billed. | Do not retry | | `400` | `The uploaded file is empty or invalid. Please check the file and try again.` | `INVALID_FILE` | Empty file, unsupported format, content that does not match its type, or a `do_not_store_data` value other than `true`/`false`. | Do not retry | | `401` | `Missing API Key` | — | The `X-API-Key` header is absent. `Authorization: Bearer` is not accepted. | Do not retry | | `401` | `Invalid API Key` | — | The key is malformed, unknown or revoked. Rotating a key revokes the previous one immediately. | Do not retry | | `403` | `Insufficient credits available` | — | The account has no credit left. | Fix, then retry | | `403` | `do_not_store_data=true is reserved for the Enterprise plan. Send the request without it, or with do_not_store_data=false.` | `ENTERPRISE_PLAN_REQUIRED` | `do_not_store_data=true` was sent by an account that is not on the Enterprise plan. Nothing was parsed or billed. | Fix, then retry | | `413` | `The uploaded file is too large to process. Please upload a smaller file.` | — | The encoded upload exceeds 6 MiB (a file of about 4.5 MB). | Do not retry | | `413` | `The request body is larger than the 10 MB limit. Please upload a smaller file.` | — | The request body itself exceeds 10 MB. | Do not retry | | `415` | `Content-Type must be multipart/form-data` | — | The request is not `multipart/form-data`. | Do not retry | | `422` | `This document does not appear to be a CV or resume. Please upload a CV or resume and try again.` | `DOCUMENT_NOT_A_RESUME` | The document is not about a candidate (job offer, ID document, invoice, brochure…), is a fraudulent message (a fake recruiting-platform notice asking to click a link, even laid out as a CV), or nothing could be extracted from it. A cover letter, a diploma or a certificate is parsed instead (see Partial results). | Do not retry | | `422` | `The text could not be extracted from this document. Please verify that the file is readable and contains selectable text.` | `DOCUMENT_TEXT_EMPTY` | No text was found, even with OCR. | Do not retry | | `422` | `The document could not be read. Please upload a valid, readable file.` | `DOCUMENT_UNREADABLE` | The file is corrupted or cannot be opened. | Do not retry | | `422` | `This document contains too much text to process. Please try a shorter or simpler version.` | `DOCUMENT_TOO_LARGE` | More than 100,000 characters of text were extracted. | Do not retry | | `500` | `Internal Server Error` | — | Unexpected failure. | Retry with backoff | | `502` | `An error occurred while processing the document or extracting its text. Please try again later.` | `PARSER_UNAVAILABLE` | The parser failed or returned an invalid result. | Retry with backoff | | `503` | `An error occurred while processing the document or extracting its text. Please try again later.` | `PARSER_UNAVAILABLE` | A processing step (text extraction, OCR, analysis) is temporarily unavailable, or the pages could not be read in time. A `Retry-After` header may give the wait in seconds. | Retry with backoff | | `503` | `Credit service temporarily unavailable` | — | Credits could not be checked or deducted. No credit is consumed, including when the operation itself had completed. Headers: `Retry-After: 1`. | Retry with backoff | | `504` | `An error occurred while processing the document or extracting its text. Please try again later.` | `PARSER_UNAVAILABLE` | Parsing did not finish within 145 seconds. | Retry with backoff | Example error (`400`): ```json { "error": "Unsupported output_format. Use one of: hirelayer, hrflow", "code": "UNSUPPORTED_OUTPUT_FORMAT" } ``` ### Behavior - **Latency:** Synchronous. Parsing usually takes about 35 seconds; scans that need OCR take longer. The gateway waits up to 145 seconds, then returns `504`. Use a client timeout of at least 150 seconds. - **Asynchronous mode:** Send `Prefer: respond-async` with a `webhook_url` to get `202 Accepted` right away, for automation platforms that stop waiting after about 30 seconds. See [Asynchronous mode](https://hirelayer.co/api-docs/legacy-parsers.md#async). - **Retries:** Retry `502`, `503` and `504` with exponential backoff and honour `Retry-After`. Never retry `4xx` unchanged. Failed requests are not charged. - **Idempotency:** There is no idempotency key. A request your client abandons can still complete and be charged: do not use a client timeout shorter than the gateway timeout. - **Partial results:** When an optional step is skipped (OCR of some pages, photo, geocoding, occupation codes), the response is still `200` with `upstream_status: "partial"` and a note in `warnings`. A cover letter, a diploma, a certificate or a recommendation letter is parsed the same way: only the information it contains is filled in, and `warnings` says the document is not a resume. - **Documents:** 15 formats (PDF, DOC, DOCX, ODT, PPT, PPTX, ODP, XLS, RTF, TXT, HTML, Markdown, JPG/JPEG, PNG and BMP). An HTML page is read as its visible text; its email, phone and profile links count even when only the link shows, and a photo embedded in the page is returned in `face_url`. Markdown is read as written. Text files may be UTF-8, UTF-16 or Windows-1252. All pages are read. Up to 100,000 extracted characters. - **Languages:** Free-text values stay in the language of the resume (no translation). Enumerated fields use the fixed English values of the response schema. `rome_jobs` labels are in French. - **Request ID:** Successful responses carry `request_id`; error responses carry the `x-parser-request-id` header. Quote them when contacting support. - **Stored resumes:** Unless `do_not_store_data=true`, each parse is also stored, for free, in the resume database of the workspace, under your `application_id` (else an id drawn from the file), returned in `info_resume.application_id`. See [Score a parsed resume](https://hirelayer.co/api-docs/legacy-parsers.md#applications). - **HrFlow.ai format:** `?output_format=hrflow` answers the same parse in HrFlow.ai’s format (`201`), for code written for HrFlow.ai. Credits, storage and webhooks work the same; the webhook receives the HrFlow.ai body. See [Migrate from HrFlow.ai](https://hirelayer.co/api-docs/migrate-from-hrflow.md). ## Webhook When `webhook_url` is set, the result is also posted there as JSON, before the HTTP response is returned. Use it only as a convenience: the HTTP response remains the source of truth. - Sent only for successful parses, with `Content-Type: application/json` and no signature header. Add a secret token to the URL and check it on receipt. - Payload: the parsed resume. Unlike the HTTP response, `status` is `"partial"` when some steps were skipped, `upstream_status` is absent, `workspace` is the one you sent in `HireLayer-Workspace` (absent without the header), and `info_resume.application_id` is the one you sent (or `null`). - 2-second timeout per attempt, up to 3 attempts on timeouts, network errors, `429` and `5xx`. A webhook failure does not change the HTTP response. ## Asynchronous mode Add the header `Prefer: respond-async` and a `webhook_url` (HTTPS, on the standard port, without credentials) to receive `202 Accepted` with `Preference-Applied: respond-async`, then the outcome on the webhook. - Success: the parsed resume, as described in [Webhook](https://hirelayer.co/api-docs/legacy-parsers.md#webhook). 1 credit is charged, as for a synchronous parse. - Failure: `{"status": "error", "http_status": 422, "error": "…", "code": "…", "request_id": "…", "application_id": "…"}`, with the status and message the synchronous call would have returned. Failures are not charged. - Errors found in the first 1.5 seconds (missing or invalid key, credits, missing file) are still returned synchronously with their usual status. **Asynchronous request** ```bash curl -X POST https://hirelayer.co/api/v3/parser \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Prefer: respond-async" \ -F "file=@resume.pdf" \ -F "application_id=app_123" \ -F "webhook_url=https://example.com/hooks/hirelayer?token=YOUR_SECRET" ``` ## Score a parsed resume Unless you send `do_not_store_data=true` (Enterprise plan), each parse is also stored in the resume database of the workspace, under your `application_id` (letters, digits and . _ : ~ -, up to 200 characters), else `file_` followed by the first 32 hexadecimal characters of the SHA-256 of the file’s bytes. `info_resume.application_id` is that id: send it to the [Resume Scorer](https://hirelayer.co/api-docs/score.md) instead of the file, and the resume is not parsed or billed again. **Score a resume parsed by /api/v3/parser** ```bash curl -X POST https://hirelayer.co/api/v4/resumes/score \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -H "Content-Type: application/json" \ -d '{"job": {"text": "Backend engineer, Node.js…"}, "resumes": [{"application_id": "app_123"}]}' ``` ## Submit a resume (v2) `POST https://hirelayer.co/api/v2/parser` Legacy asynchronous contract: the request is accepted with `202` and the result is posted to `webhook_url`. - **Authentication:** `X-API-Key` header - **Content type:** `multipart/form-data` - **Billing:** 1 credit when the request is accepted (HTTP 202) - **Client timeout:** at least 50 seconds - **Status:** Legacy, maintained for existing integrations only ### Request body | Field | Type | Required | Description | | --- | --- | --- | --- | | `file` | `file` | Yes | The resume: PDF, DOCX, ODT, PPTX, ODP, TXT, JPG or PNG. | | `webhook_url` | `string (URL)` | Yes | URL that receives the result when processing ends. | | `application_id` | `string` | No | Your own reference, echoed in the webhook payload. | ### Example request **cURL** ```bash curl -X POST https://hirelayer.co/api/v2/parser \ -H "X-API-Key: $HIRELAYER_API_KEY" \ -F "file=@resume.pdf;type=application/pdf" \ -F "webhook_url=https://example.com/hirelayer/webhook" \ -F "application_id=app_123" ``` **Python** ```python import os import requests with open("resume.pdf", "rb") as file: response = requests.post( "https://hirelayer.co/api/v2/parser", headers={"X-API-Key": os.environ["HIRELAYER_API_KEY"]}, files={"file": ("resume.pdf", file, "application/pdf")}, data={ "webhook_url": "https://example.com/hirelayer/webhook", "application_id": "app_123", }, timeout=50, ) response.raise_for_status() data = response.json() print(data["message"]) ``` **TypeScript** ```typescript import { readFile } from 'node:fs/promises' const form = new FormData() form.append( 'file', new Blob([await readFile('resume.pdf')], { type: 'application/pdf' }), 'resume.pdf' ) form.append('webhook_url', 'https://example.com/hirelayer/webhook') form.append('application_id', 'app_123') const response = await fetch('https://hirelayer.co/api/v2/parser', { method: 'POST', headers: { 'X-API-Key': process.env.HIRELAYER_API_KEY!, }, body: form, signal: AbortSignal.timeout(50_000), }) if (!response.ok) { throw new Error(`HireLayer ${response.status}: ${await response.text()}`) } const data = await response.json() console.log(data.message) ``` ### Response `202` Accepted. The result is sent to `webhook_url` later. | Field | Type | Description | | --- | --- | --- | | `message` | `string` | Value: `"CV processing initiated."`. | | `body` | `null` | | | `error` | `boolean` | Value: `false`. | ```json { "message": "CV processing initiated.", "body": null, "error": false } ``` ### Errors | Status | `error` | `code` | When | Retry | | --- | --- | --- | --- | --- | | `400` | `The request body is not valid multipart/form-data. Check the boundary and the Content-Disposition header of each part.` | `INVALID_MULTIPART_BODY` | The body cannot be read as `multipart/form-data`: the `boundary` is missing or does not match the body, the body is truncated, or a part has no `Content-Disposition: form-data` header with a `name`. Unquoted parameter values and `filename*` (as sent by .NET `MultipartFormDataContent`) are accepted. | Do not retry | | `400` | `An error occurred while processing the document or extracting its text. Please try again later.` | — | Any error from the legacy parser is returned with its status code (`400` for a missing file or `webhook_url`, unsupported type…) and this generic message. | Do not retry | | `401` | `Missing API Key` | — | The `X-API-Key` header is absent. `Authorization: Bearer` is not accepted. | Do not retry | | `401` | `Invalid API Key` | — | The key is malformed, unknown or revoked. Rotating a key revokes the previous one immediately. | Do not retry | | `403` | `Insufficient credits available` | — | The account has no credit left. | Fix, then retry | | `413` | `The request body is larger than the 10 MB limit. Please upload a smaller file.` | — | The request body itself exceeds 10 MB. | Do not retry | | `415` | `Content-Type must be multipart/form-data` | — | The request is not `multipart/form-data`. | Do not retry | | `500` | `Internal Server Error` | — | The legacy parser did not accept the request within 45 seconds, or an unexpected failure. | Retry with backoff | | `503` | `Credit service temporarily unavailable` | — | Credits could not be checked or deducted. No credit is consumed, including when the operation itself had completed. Headers: `Retry-After: 1`. | Retry with backoff | Example error (`400`): ```json { "error": "The request body is not valid multipart/form-data. Check the boundary and the Content-Disposition header of each part.", "code": "INVALID_MULTIPART_BODY" } ``` ### Behavior - **Asynchronous:** The gateway waits up to 45 seconds for the request to be accepted. The webhook then receives `{"status": "success", …}` with the parsed resume, or `{"status": "failure", "error_code": …, "error_message": …}`. - **Billing:** The credit is consumed when the request is accepted, even if processing fails later. Resumes sent to `/api/v2/parser` are not stored in the resume database. ## Next - [HireLayer Resume Parser](https://hirelayer.co/api-docs/parse-resume.md): Resume parser API reference: send a PDF, Word or image resume in one multipart request and get the candidate back as JSON, photo included, in 70 languages.