{
  "openapi": "3.1.0",
  "info": {
    "title": "HireLayer API",
    "version": "2026-10-27",
    "summary": "Parse resumes, extract job criteria, score, search and normalize skills, under one version.",
    "description": "The HireLayer API at `https://hirelayer.co/api/v4`: six products, one API key, one credit balance. Human-readable documentation: https://hirelayer.co/api-docs. Markdown for agents: https://hirelayer.co/llms.txt.\n\n## Six products, one endpoint each\n\n| Product | Endpoint |\n| --- | --- |\n| Resume Parser: parse a resume | `POST /resumes/parse` |\n| Job Criteria Extractor: extract a job's criteria | `POST /jobs/extract-criteria` |\n| Resume Scorer: score resumes against a job | `POST /resumes/score` |\n| Talent Pool Search: find the resumes closest to a job in the resume database | `POST /resumes/search` |\n| Job Recommendations: find the open jobs closest to a resume | `POST /jobs/search` |\n| Skills Normalizer: map free-text skills to the taxonomy | `POST /skills/normalize` |\n\nThe other endpoints manage what the products store (workspaces, the resume database, jobs and their criteria, stored scores) and the account (credits, health).\n\n## First call\n\nScore a resume file against a job description in one call. The job's criteria are extracted, the resume is parsed, both are stored, and the answer comes back in about a minute, most of it the parse:\n\n```bash\njq -n --rawfile text job.txt '{job: {text: $text}, resumes: [{file: \"cv1\"}]}' > request.json\ncurl -X POST https://hirelayer.co/api/v4/resumes/score \\\n  -H \"X-API-Key: $HIRELAYER_API_KEY\" \\\n  -F \"request=<request.json;type=application/json\" \\\n  -F \"cv1=@resume.pdf\"\n```\n\nRead `scores[0].score` (0 to 1), `verdict`, `summary`, and `criteria[]` for the criterion-by-criterion evidence. Keep `job.job_id` and `scores[0].application_id`: sending them instead of the job text and the file scores the same pair again for free.\n\n## Conventions\n\n- **Authentication**: the `X-API-Key` header on every call except `GET /health`.\n- **Workspaces**: the optional `HireLayer-Workspace` header keeps one customer's jobs, resumes and scores apart from another's. Absent, everything goes to `default`. A workspace is created on first use; ids are case-insensitive.\n- **Storage**: by default every product stores what it processes in the workspace, which makes a pair already scored free to ask again and lets the two searches work. `do_not_store_data=true` (Enterprise plan only) processes without storing; the schema `DoNotStoreData` lists exactly what is kept, and each product says what changes.\n- **Ids**: `application_id` designates a resume everywhere, `job_id` a job, `criterion_id` a criterion. You can give your own ids (letters, digits and `. _ : ~ -`, up to 200 characters) wherever a resume or a job is sent. 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. The same file sent twice is therefore the same resume. With your own id, the content is stored under that id even if the same content is stored under another one; new content under an existing id replaces the old one.\n- **Credits**: each operation states its price (`x-hirelayer-credits`); the responses of the six products and of `GET /skills` carry `credits_used`. Failed work is not billed, and a call refused for lack of credits processes nothing.\n- **Errors**: always `{\"error\": {\"code\", \"message\", \"param\", \"doc_url\"}}`. Branch on `code`, never on `message`. Every operation may answer `500`, `502`, `503` or `504` (`internal_error`, or `model_unavailable` for a `502` of the analysis): retry later; after a `504`, a change may still have been applied, so read it before sending it again.\n- **Compatibility**: within v4, 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: a response with more fields than your code expects is still valid.\n- **Languages**: criteria, summaries and explanations are written in the job's language: English, French, German, Spanish or Portuguese (`language`: `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 in its own language. The fields inside a parsed `resume` keep the values of the v3 parser (such as `\"FR\"` for its language).\n- **Webhooks**: with `webhook_url`, the call answers `202` at once and the result is posted to that URL, signed. Each delivery carries an `event_id` to deduplicate on and the `request_id` the `202` returned. See `webhooks` and the `HireLayer-Signature` parameter.\n\n## Legacy paths\n\n`/api/v3/parser` and `/api/v2/parser` stay, with their JSON unchanged: no field is added to them (`/api/v3/parser?output_format=hrflow` answers in HrFlow.ai's format, as `POST /resumes/parse` does). A resume parsed by `/api/v3/parser` is stored and usable here through the `application_id` it returned in `info_resume.application_id`. Resumes parsed by `/api/v2/parser` are not stored. The other v1, v2 and v3 paths are being retired: they will answer `410 Gone` with the path that replaces them.\n",
    "contact": {
      "name": "HireLayer",
      "url": "https://hirelayer.co/book-a-demo"
    }
  },
  "servers": [
    {
      "url": "https://hirelayer.co",
      "description": "Production"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Resume Parser",
      "description": "A resume file in, the structured resume out, stored in the resume database.",
      "externalDocs": {
        "url": "https://hirelayer.co/api-docs/parse-resume"
      }
    },
    {
      "name": "Job Criteria Extractor",
      "description": "A job in, its typed criteria out (usually 4 to 10, at most 15), the job stored.",
      "externalDocs": {
        "url": "https://hirelayer.co/api-docs/extract-criteria"
      }
    },
    {
      "name": "Resume Scorer",
      "description": "A job and one or more resumes in, a score per resume out, best first.",
      "externalDocs": {
        "url": "https://hirelayer.co/api-docs/score"
      }
    },
    {
      "name": "Talent Pool Search",
      "description": "Find the relevant resumes for a job in the resume database. Proximity only, no evaluation.",
      "externalDocs": {
        "url": "https://hirelayer.co/api-docs/search-resumes"
      }
    },
    {
      "name": "Job Recommendations",
      "description": "Find the open stored jobs closest to a resume. Proximity only, no evaluation.",
      "externalDocs": {
        "url": "https://hirelayer.co/api-docs/search-jobs"
      }
    },
    {
      "name": "Skills Normalizer",
      "description": "Map free-text skills to the HireLayer taxonomy.",
      "externalDocs": {
        "url": "https://hirelayer.co/api-docs/skills"
      }
    },
    {
      "name": "Workspaces",
      "description": "One workspace per customer company, holding its resumes, jobs and scores.",
      "externalDocs": {
        "url": "https://hirelayer.co/api-docs/account"
      }
    },
    {
      "name": "Resume database",
      "description": "The resumes of a workspace, parsed, scored or stored under your ids.",
      "externalDocs": {
        "url": "https://hirelayer.co/api-docs/resumes"
      }
    },
    {
      "name": "Jobs and criteria",
      "description": "The jobs of a workspace and their criteria.",
      "externalDocs": {
        "url": "https://hirelayer.co/api-docs/jobs"
      }
    },
    {
      "name": "Stored scores",
      "description": "The ranking of a stored job, read with the recruiter's priorities.",
      "externalDocs": {
        "url": "https://hirelayer.co/api-docs/jobs"
      }
    },
    {
      "name": "Account",
      "description": "Plan, credits and service health.",
      "externalDocs": {
        "url": "https://hirelayer.co/api-docs/account"
      }
    },
    {
      "name": "Legacy parsers",
      "description": "The v3 and v2 parsers, kept with their JSON unchanged for existing integrations.",
      "externalDocs": {
        "url": "https://hirelayer.co/api-docs/legacy-parsers"
      }
    }
  ],
  "x-tagGroups": [
    {
      "name": "Products",
      "tags": [
        "Resume Parser",
        "Job Criteria Extractor",
        "Resume Scorer",
        "Talent Pool Search",
        "Job Recommendations",
        "Skills Normalizer"
      ]
    },
    {
      "name": "Data and account",
      "tags": [
        "Workspaces",
        "Resume database",
        "Jobs and criteria",
        "Stored scores",
        "Account"
      ]
    },
    {
      "name": "Legacy",
      "tags": [
        "Legacy parsers"
      ]
    }
  ],
  "externalDocs": {
    "description": "HireLayer API documentation",
    "url": "https://hirelayer.co/api-docs"
  },
  "paths": {
    "/api/v4/resumes/parse": {
      "post": {
        "operationId": "parseResume",
        "tags": [
          "Resume Parser"
        ],
        "summary": "Parse a resume",
        "description": "Reads a resume file and returns it structured, stored in the workspace under an `application_id`.\n\n- **Credits**: 1. Sending a file already stored under the same id returns the stored resume with `already_stored: true` and costs 0.\n- **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`.\n- **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.\n- **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.\n- **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\": <status>, \"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).\n",
        "x-hirelayer-credits": "1; 0 when the file is already stored",
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          },
          {
            "$ref": "#/components/parameters/OutputFormat"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ParseRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Parsed (or found already stored).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParseResult"
                },
                "examples": {
                  "default": {
                    "summary": "Real parse of a demo resume: arrays cut to their first items, text cut, contact data and file URLs masked",
                    "value": {
                      "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
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "Parsed, in HrFlow.ai's format. Sent with `output_format=hrflow`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/HrFlowParseResult"
                },
                "examples": {
                  "default": {
                    "summary": "The resume of the 200 example, in HrFlow.ai's format",
                    "value": {
                      "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": []
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Accepted. Sent with `webhook_url`; the result is posted there.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParseAccepted"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "file_missing": {
                    "summary": "No part `file`.",
                    "value": {
                      "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"
                    }
                  },
                  "not_multipart": {
                    "summary": "The body is not `multipart/form-data`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Send the body as multipart/form-data, with the file in the part file.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "unknown_field": {
                    "summary": "A part the call does not take.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Unknown field resume.",
                        "param": "resume",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "application_id": {
                    "summary": "`application_id` is not a valid id, or is a name the paths reserve (`parse`, `score`, `search`).",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "application_id cannot be score: that name is reserved for POST /api/v4/resumes/score.",
                        "param": "application_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "webhook_url": {
                    "summary": "`webhook_url` is not a public HTTPS URL.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "webhook_url must be an https URL on the standard port, without credentials.",
                        "param": "webhook_url",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Not enough credits (`insufficient_credits`), or `do_not_store_data` below the Enterprise plan (`enterprise_plan_required`). Nothing was processed or billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "No credit left for the parse.",
                    "value": {
                      "error": {
                        "code": "insufficient_credits",
                        "message": "This call needs 1 credit and none is left. Nothing was processed or billed.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#insufficient_credits"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "enterprise_plan_required": {
                    "summary": "`do_not_store_data: true` below the Enterprise plan.",
                    "value": {
                      "error": {
                        "code": "enterprise_plan_required",
                        "message": "do_not_store_data is available on the Enterprise plan only. Nothing was processed or billed.",
                        "param": "do_not_store_data",
                        "doc_url": "https://hirelayer.co/api-docs/errors#enterprise_plan_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "An input is over its size limit (`payload_too_large`). `param` names the input, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "file_too_large": {
                    "summary": "The file is over 4.5 MB.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "file must be 4.5 MB or less.",
                        "param": "file",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The resume file cannot be read (`resume_unreadable`). Nothing was billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "resume_unreadable": {
                    "summary": "The file cannot be read as a resume.",
                    "value": {
                      "error": {
                        "code": "resume_unreadable",
                        "message": "file cannot be read as a resume: it is empty, damaged or in an unsupported format. Nothing was billed.",
                        "param": "file",
                        "doc_url": "https://hirelayer.co/api-docs/errors#resume_unreadable"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/ModelUnavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/jobs/extract-criteria": {
      "post": {
        "operationId": "extractJobCriteria",
        "tags": [
          "Job Criteria Extractor"
        ],
        "summary": "Extract job criteria",
        "description": "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.\n\n- **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.\n\n- **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.\n- **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`.\n- **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.\n",
        "x-hirelayer-credits": "0; 1 per stored score evaluated again when a new text replaces a stored job",
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ExtractCriteriaRequest"
              },
              "example": {
                "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"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ExtractCriteriaFileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtractCriteriaResult"
                }
              }
            }
          },
          "201": {
            "description": "Job created and criteria extracted.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExtractCriteriaResult"
                },
                "example": {
                  "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
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "text_too_short": {
                    "summary": "The text (or the text read in `file`) is under 30 characters.",
                    "value": {
                      "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"
                    }
                  },
                  "text_missing": {
                    "summary": "Neither `text` nor a file.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "text or file is required.",
                        "param": "text",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "not_a_string": {
                    "summary": "`text`, `title`, `location`, `language` or `job_id` is not a string.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "title must be a string.",
                        "param": "title",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "language": {
                    "summary": "`language` is not `en`, `fr`, `de`, `es` or `pt`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "language must be one of en, fr, de, es, pt.",
                        "param": "language",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "field_too_long": {
                    "summary": "`title` or `location` over 300 characters.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "title must be 300 characters or less.",
                        "param": "title",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "job_id": {
                    "summary": "`job_id` is not a valid id, or is a name the paths reserve (`extract-criteria`, `search`).",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "job_id cannot be search: that name is reserved for POST /api/v4/jobs/search.",
                        "param": "job_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "unknown_field": {
                    "summary": "A field the call does not take.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Unknown field lang.",
                        "param": "lang",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "body_not_json": {
                    "summary": "The body is not valid JSON, not an object, or not sent as `application/json`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body is not valid JSON.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Not enough credits (`insufficient_credits`), or `do_not_store_data` below the Enterprise plan (`enterprise_plan_required`). Nothing was processed or billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "A new text replaces a stored job already scored, and the credits left do not cover its scores evaluated again.",
                    "value": {
                      "error": {
                        "code": "insufficient_credits",
                        "message": "This call evaluates 12 scores, 1 credit each: 12 credits, and 3 are left. Nothing was processed or billed.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#insufficient_credits"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "enterprise_plan_required": {
                    "summary": "`do_not_store_data: true` below the Enterprise plan.",
                    "value": {
                      "error": {
                        "code": "enterprise_plan_required",
                        "message": "do_not_store_data is available on the Enterprise plan only. Nothing was processed or billed.",
                        "param": "do_not_store_data",
                        "doc_url": "https://hirelayer.co/api-docs/errors#enterprise_plan_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "An input is over its size limit (`payload_too_large`). `param` names the input, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "text_too_long": {
                    "summary": "The text is over 50,000 characters.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "text must be 50,000 characters or less.",
                        "param": "text",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "file_too_large": {
                    "summary": "The file is over 4.5 MB.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "file must be 4.5 MB or less.",
                        "param": "file",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "file_text_too_long": {
                    "summary": "The text read in the file is over 50,000 characters.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "The text of file must be 50,000 characters or less.",
                        "param": "file",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The job file cannot be read (`job_unreadable`). Nothing was billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_unreadable": {
                    "summary": "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.",
                    "value": {
                      "error": {
                        "code": "job_unreadable",
                        "message": "file has no text layer: it is probably a scan. Send its text instead.",
                        "param": "file",
                        "doc_url": "https://hirelayer.co/api-docs/errors#job_unreadable"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/ModelUnavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/resumes/score": {
      "post": {
        "operationId": "scoreResumes",
        "tags": [
          "Resume Scorer"
        ],
        "summary": "Score resumes against a job",
        "description": "Evaluates one or more resumes against a job, criterion by criterion, and returns them best first.\n\n**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`.\n\n**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.\n\n**Synchronous or not.**\n\n| The call | The answer |\n| --- | --- |\n| 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` |\n| No `webhook_url`, more than that, with storage | `202`; poll `results_url` until no score is `pending` |\n| No `webhook_url`, more than that, without storage | Refused: `400 invalid_request`, `param: webhook_url` |\n| With `webhook_url` | `202`; the full result is posted to the URL, and with storage it can also be read at `results_url` |\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**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`.\n\n**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`.\n\n**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.\n\n**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.\n\n**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.\n",
        "x-hirelayer-credits": "1 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 per other stored score evaluated again when a stored job comes with a new text or new criteria",
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScoreRequest"
              },
              "examples": {
                "storedIds": {
                  "summary": "A stored job and two stored resumes",
                  "value": {
                    "job": {
                      "job_id": "job_020cb8c5f1f8eb650cec00dc3d90f8ea"
                    },
                    "resumes": [
                      {
                        "application_id": "file_d7e21d373637a897b17b8fdf63122807"
                      },
                      {
                        "application_id": "file_2275c80ed15f2e1dfef430a4c8f0abfc"
                      }
                    ],
                    "precise_ranking": true
                  }
                },
                "jobWithCriteria": {
                  "summary": "A job text with its criteria, a resume text and a stored resume",
                  "value": {
                    "job": {
                      "text": "AI Engineer / Backend Node.js Developer\n\nLumio · Paris 9e · Permanent…",
                      "criteria": [
                        {
                          "label": "Integrating LLMs in production",
                          "type": "skill",
                          "requirement": "required",
                          "weight": 3,
                          "threshold": null
                        },
                        {
                          "label": "Backend development with Node.js / TypeScript",
                          "type": "skill",
                          "requirement": "preferred",
                          "weight": 3,
                          "threshold": "3 years minimum"
                        }
                      ]
                    },
                    "resumes": [
                      {
                        "text": "Alex Morgan, Senior Software Engineer in Paris…",
                        "reference": "cand-alex"
                      },
                      {
                        "application_id": "file_d7e21d373637a897b17b8fdf63122807"
                      }
                    ]
                  }
                }
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ScoreMultipartRequest"
              },
              "encoding": {
                "request": {
                  "contentType": "application/json"
                }
              },
              "example": {
                "request": {
                  "job": {
                    "text": "AI Engineer / Backend Node.js Developer\n\nLumio · Paris 9e · Permanent…"
                  },
                  "resumes": [
                    {
                      "file": "cv1",
                      "reference": "cand-elias"
                    },
                    {
                      "file": "cv2",
                      "reference": "cand-rafael"
                    }
                  ],
                  "precise_ranking": true
                },
                "cv1": "(the bytes of elias-moreau-resume.pdf)",
                "cv2": "(the bytes of cv-rafael-costa.pdf)"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Every resume evaluated (or failed), best score first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScoreResult"
                },
                "example": {
                  "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
                }
              }
            }
          },
          "202": {
            "description": "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`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ScoreAccepted"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`), or the call needs storage while it runs without it (`storage_required`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_text_too_short": {
                    "summary": "The job's text (or the text read in `job.file`) is under 30 characters.",
                    "value": {
                      "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"
                    }
                  },
                  "resumes_too_short": {
                    "summary": "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.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "resumes must hold at least one resume of 30 characters or more.",
                        "param": "resumes",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "job_missing": {
                    "summary": "No job, or a job with none of `file`, `text` and `job_id`; or both `file` and `text`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "job.file, job.text or job.job_id is required.",
                        "param": "job",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "criteria_without_job": {
                    "summary": "`job.criteria` (or `title`, `location`, `language`) with a stored `job_id` alone.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "job.criteria needs job.text or job.file: a stored job_id keeps its own criteria.",
                        "param": "job.criteria",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "criterion_rule": {
                    "summary": "A criterion breaks a rule (here its weight): `param` names the field.",
                    "value": {
                      "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"
                    }
                  },
                  "resumes_missing": {
                    "summary": "No resume, or more than 100.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "resumes must be a non-empty array.",
                        "param": "resumes",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "resume_form": {
                    "summary": "A resume with none of `file`, `text`, `resume` and `application_id`, or with several of the first three.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "resumes[0] needs file, text, resume or application_id.",
                        "param": "resumes[0]",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "part_missing": {
                    "summary": "A `file` (or `job.file`) that names no part of the call.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "resumes[0].file names no part of the call.",
                        "param": "resumes[0].file",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "resume_repeated": {
                    "summary": "The same resume twice in the call.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "resumes[1] is the same resume as resumes[0] (cand-42): send each resume once.",
                        "param": "resumes[1].application_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "application_id": {
                    "summary": "An `application_id` that is not a valid id, or a name the paths reserve.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "resumes[0].application_id cannot be score: that name is reserved for POST /api/v4/resumes/score.",
                        "param": "resumes[0].application_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "form_field": {
                    "summary": "In multipart, a field sent as its own part instead of inside `request`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "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",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "webhook_needed": {
                    "summary": "A call without storage past the synchronous limit, without `webhook_url`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "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",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "body_not_json": {
                    "summary": "The body is not valid JSON, not an object, or not sent as `application/json`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body is not valid JSON.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "job_id_without_storage": {
                    "summary": "A stored `job_id` without storage.",
                    "value": {
                      "error": {
                        "code": "storage_required",
                        "message": "job.job_id needs storage: send the job as text with do_not_store_data.",
                        "param": "job.job_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#storage_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "application_id_without_storage": {
                    "summary": "A stored `application_id` alone without storage.",
                    "value": {
                      "error": {
                        "code": "storage_required",
                        "message": "resumes[0].application_id needs storage: send the resume as a file, a text or its JSON.",
                        "param": "resumes[0].application_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#storage_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Not enough credits (`insufficient_credits`), or `do_not_store_data` below the Enterprise plan (`enterprise_plan_required`). Nothing was processed or billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "The credits left do not cover the call: checked before anything is parsed, stored or evaluated.",
                    "value": {
                      "error": {
                        "code": "insufficient_credits",
                        "message": "This call scores 38 new pairs and parses 2 files, 1 credit each: 40 credits, and 32 are left. Nothing was processed or billed.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#insufficient_credits"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "enterprise_plan_required": {
                    "summary": "`do_not_store_data: true` below the Enterprise plan.",
                    "value": {
                      "error": {
                        "code": "enterprise_plan_required",
                        "message": "do_not_store_data is available on the Enterprise plan only. Nothing was processed or billed.",
                        "param": "do_not_store_data",
                        "doc_url": "https://hirelayer.co/api-docs/errors#enterprise_plan_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such object in the workspace (`not_found`). `param` names the field that carries the id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_not_found": {
                    "summary": "No job under `job.job_id` in the workspace. An unknown `application_id` fails only its own score.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No job req-7 in workspace default.",
                        "param": "job.job_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "An input is over its size limit (`payload_too_large`). `param` names the input, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "file_too_large": {
                    "summary": "A file over 4.5 MB (`job.file` too).",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "resumes[0].file must be 4.5 MB or less.",
                        "param": "resumes[0].file",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "text_too_long": {
                    "summary": "A resume or job text over 50,000 characters (`job.text` too).",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "resumes[0].text must be 50,000 characters or less.",
                        "param": "resumes[0].text",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "parsed_too_large": {
                    "summary": "A parsed resume over 1 MB.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "resumes[0].resume must be 1 MB or less.",
                        "param": "resumes[0].resume",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "files_too_large": {
                    "summary": "The files of the call are over 50 MB together.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "The files of a call must be 50 MB or less in total.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The job file cannot be read (`job_unreadable`). Nothing was billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_unreadable": {
                    "summary": "The job file cannot be read. An unreadable resume file fails only its own score.",
                    "value": {
                      "error": {
                        "code": "job_unreadable",
                        "message": "job.file has no text layer: it is probably a scan. Send its text instead.",
                        "param": "job.file",
                        "doc_url": "https://hirelayer.co/api-docs/errors#job_unreadable"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/ModelUnavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/resumes/search": {
      "post": {
        "operationId": "preselectResumes",
        "tags": [
          "Talent Pool Search"
        ],
        "summary": "Search the talent pool for a job",
        "description": "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`.\n\n- **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.\n- **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}`.\n- **Without storage**: not available (`400 storage_required`), since there is no resume database.\n",
        "x-hirelayer-credits": "1 per search; 1 per stored score evaluated again when a new text replaces a stored job",
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchResumesRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The closest resumes, closest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchResumesResult"
                },
                "example": {
                  "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
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`), or the call needs storage while it runs without it (`storage_required`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_text_too_short": {
                    "summary": "`job.text` is under 30 characters.",
                    "value": {
                      "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"
                    }
                  },
                  "job_missing": {
                    "summary": "Neither `job_id` nor `job`, or both.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "job_id or job is required.",
                        "param": "job_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "job_text": {
                    "summary": "`job` without its text.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "job.text is required.",
                        "param": "job.text",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "limit": {
                    "summary": "`limit` out of range.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "limit must be an integer from 1 to 500.",
                        "param": "limit",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "city": {
                    "summary": "A filter breaks a rule (here a city not found): `param` names it.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "No city named Lyonn: check the spelling, or add country_code.",
                        "param": "filters.location.city",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "job_id": {
                    "summary": "`job_id` is not a valid id.",
                    "value": {
                      "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"
                    }
                  },
                  "unknown_field": {
                    "summary": "A field the call does not take.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Unknown field lang.",
                        "param": "lang",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "body_not_json": {
                    "summary": "The body is not valid JSON, not an object, or not sent as `application/json`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body is not valid JSON.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "storage_off": {
                    "summary": "`do_not_store_data: true` (Enterprise plan): a search needs storage.",
                    "value": {
                      "error": {
                        "code": "storage_required",
                        "message": "A search reads the stored resumes and jobs: it is not available without storage.",
                        "param": "do_not_store_data",
                        "doc_url": "https://hirelayer.co/api-docs/errors#storage_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_without_storage": {
                    "summary": "The workspace runs without storage.",
                    "value": {
                      "error": {
                        "code": "storage_required",
                        "message": "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",
                        "doc_url": "https://hirelayer.co/api-docs/errors#storage_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Not enough credits (`insufficient_credits`), or `do_not_store_data` below the Enterprise plan (`enterprise_plan_required`). Nothing was processed or billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "No credit left for the search (and for the stored scores a new job text evaluates again).",
                    "value": {
                      "error": {
                        "code": "insufficient_credits",
                        "message": "This search needs 1 credit and none is left. Nothing was processed or billed.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#insufficient_credits"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "enterprise_plan_required": {
                    "summary": "`do_not_store_data: true` below the Enterprise plan.",
                    "value": {
                      "error": {
                        "code": "enterprise_plan_required",
                        "message": "do_not_store_data is available on the Enterprise plan only. Nothing was processed or billed.",
                        "param": "do_not_store_data",
                        "doc_url": "https://hirelayer.co/api-docs/errors#enterprise_plan_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such object in the workspace (`not_found`). `param` names the field that carries the id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_not_found": {
                    "summary": "No job under `job_id` in the workspace.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No job req-7 in workspace default.",
                        "param": "job_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "An input is over its size limit (`payload_too_large`). `param` names the input, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "text_too_long": {
                    "summary": "The job text is over 50,000 characters.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "job.text must be 50,000 characters or less.",
                        "param": "job.text",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/ModelUnavailable"
          },
          "503": {
            "$ref": "#/components/responses/SearchUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/jobs/search": {
      "post": {
        "operationId": "findJobsForResume",
        "tags": [
          "Job Recommendations"
        ],
        "summary": "Recommend jobs for a resume",
        "description": "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.\n\n- **Credits**: 1 per search, +1 when the resume comes as a file (parsed and stored).\n- **Without storage**: not available (`400 storage_required`), since there are no stored jobs.\n",
        "x-hirelayer-credits": "1 per search, +1 for a resume file",
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchJobsRequest"
              }
            },
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/SearchJobsFileRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The closest open jobs, closest first.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SearchJobsResult"
                },
                "example": {
                  "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
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`), or the call needs storage while it runs without it (`storage_required`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "resume_missing": {
                    "summary": "Neither `application_id` nor `resume`, or both.",
                    "value": {
                      "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"
                    }
                  },
                  "resume_text": {
                    "summary": "`resume` without its text.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "resume.text is required.",
                        "param": "resume.text",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "file_missing": {
                    "summary": "In multipart, no part `file`.",
                    "value": {
                      "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"
                    }
                  },
                  "limit": {
                    "summary": "`limit` out of range.",
                    "value": {
                      "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"
                    }
                  },
                  "application_id": {
                    "summary": "`application_id` is not a valid id, or is a name the paths reserve.",
                    "value": {
                      "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"
                    }
                  },
                  "unknown_field": {
                    "summary": "A field the call does not take.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Unknown field lang.",
                        "param": "lang",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "body_not_json": {
                    "summary": "The body is not valid JSON, not an object, or not sent as `application/json`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body is not valid JSON.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "storage_off": {
                    "summary": "`do_not_store_data: true` (Enterprise plan): a search needs storage.",
                    "value": {
                      "error": {
                        "code": "storage_required",
                        "message": "A search reads the stored resumes and jobs: it is not available without storage.",
                        "param": "do_not_store_data",
                        "doc_url": "https://hirelayer.co/api-docs/errors#storage_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_without_storage": {
                    "summary": "The workspace runs without storage.",
                    "value": {
                      "error": {
                        "code": "storage_required",
                        "message": "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",
                        "doc_url": "https://hirelayer.co/api-docs/errors#storage_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Not enough credits (`insufficient_credits`), or `do_not_store_data` below the Enterprise plan (`enterprise_plan_required`). Nothing was processed or billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "The credits left do not cover the search (and the parse of a file).",
                    "value": {
                      "error": {
                        "code": "insufficient_credits",
                        "message": "This search parses 1 file and searches, 1 credit each: 2 credits, and 1 is left. Nothing was processed or billed.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#insufficient_credits"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "enterprise_plan_required": {
                    "summary": "`do_not_store_data: true` below the Enterprise plan.",
                    "value": {
                      "error": {
                        "code": "enterprise_plan_required",
                        "message": "do_not_store_data is available on the Enterprise plan only. Nothing was processed or billed.",
                        "param": "do_not_store_data",
                        "doc_url": "https://hirelayer.co/api-docs/errors#enterprise_plan_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such object in the workspace (`not_found`). `param` names the field that carries the id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "resume_not_found": {
                    "summary": "No resume under `application_id` in the workspace.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No resume cand-42 in workspace default.",
                        "param": "application_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "An input is over its size limit (`payload_too_large`). `param` names the input, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "file_too_large": {
                    "summary": "The file is over 4.5 MB.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "file must be 4.5 MB or less.",
                        "param": "file",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "text_too_long": {
                    "summary": "The resume text is over 50,000 characters.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "resume.text must be 50,000 characters or less.",
                        "param": "resume.text",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "The resume file cannot be read (`resume_unreadable`). Nothing was billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "resume_unreadable": {
                    "summary": "The file cannot be read as a resume.",
                    "value": {
                      "error": {
                        "code": "resume_unreadable",
                        "message": "file cannot be read as a resume: it is empty, damaged or in an unsupported format. Nothing was billed.",
                        "param": "file",
                        "doc_url": "https://hirelayer.co/api-docs/errors#resume_unreadable"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/ModelUnavailable"
          },
          "503": {
            "$ref": "#/components/responses/JobsSearchUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/skills/normalize": {
      "post": {
        "operationId": "normalizeSkills",
        "tags": [
          "Skills Normalizer"
        ],
        "summary": "Normalize skills",
        "description": "Maps the skills named in a free text to the HireLayer taxonomy. Nothing is stored.\n\n- **Credits**: 1.\n",
        "x-hirelayer-credits": "1",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NormalizeSkillsRequest"
              },
              "examples": {
                "default": {
                  "value": {
                    "text": "Google Sheet/Excel",
                    "language": "en"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The taxonomy skills named in the text, in the order of the text.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NormalizeSkillsResult"
                },
                "examples": {
                  "default": {
                    "summary": "Skills found in the text.",
                    "value": {
                      "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
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "text_missing": {
                    "summary": "No text, or an empty one.",
                    "value": {
                      "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"
                    }
                  },
                  "text_type": {
                    "summary": "`text` is not a string.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "text must be a string.",
                        "param": "text",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "language": {
                    "summary": "`language` is not `fr` or `en`.",
                    "value": {
                      "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"
                    }
                  },
                  "unknown_field": {
                    "summary": "A field the call does not take.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Unknown field lang.",
                        "param": "lang",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "body_not_json": {
                    "summary": "The body is not valid JSON, not an object, or not sent as `application/json`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body is not valid JSON.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Not enough credits (`insufficient_credits`). Nothing was processed or billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "No credit left.",
                    "value": {
                      "error": {
                        "code": "insufficient_credits",
                        "message": "This call needs 1 credit and none is left. Nothing was processed or billed.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#insufficient_credits"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "An input is over its size limit (`payload_too_large`). `param` names the input, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "text_too_long": {
                    "summary": "The text is over 5,000 characters.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "text must be 5,000 characters or less.",
                        "param": "text",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/ModelUnavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/resumes": {
      "get": {
        "operationId": "listResumes",
        "tags": [
          "Resume database"
        ],
        "summary": "List stored resumes",
        "description": "The resume database of the workspace, most recently stored first. Free.",
        "x-hirelayer-credits": "0",
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          },
          {
            "name": "added_after",
            "in": "query",
            "description": "Only resumes stored at or after this time.",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of resumes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoredResumeList"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "limit": {
                    "summary": "`limit` out of range.",
                    "value": {
                      "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"
                    }
                  },
                  "cursor": {
                    "summary": "`cursor` is not a `next_cursor` of this list.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "cursor is not a next_cursor returned by this API.",
                        "param": "cursor",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "added_after": {
                    "summary": "`added_after` is not a date.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "added_after must be a date or a date-time.",
                        "param": "added_after",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/resumes/{application_id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/ApplicationId"
        },
        {
          "$ref": "#/components/parameters/Workspace"
        }
      ],
      "get": {
        "operationId": "getResume",
        "tags": [
          "Resume database"
        ],
        "summary": "Get a stored resume",
        "description": "Free.",
        "x-hirelayer-credits": "0",
        "responses": {
          "200": {
            "description": "The stored resume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoredResume"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "application_id_format": {
                    "summary": "`application_id` in the path is not a valid id.",
                    "value": {
                      "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"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No such object in the workspace (`not_found`). `param` names the field that carries the id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "resume_not_found": {
                    "summary": "No resume under this id in the workspace.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No resume cand-42 in workspace default.",
                        "param": "application_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      },
      "put": {
        "operationId": "putResume",
        "tags": [
          "Resume database"
        ],
        "summary": "Store a resume already read",
        "description": "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`.\n",
        "x-hirelayer-credits": "0",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutResumeRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Replaced.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoredResume"
                }
              }
            }
          },
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoredResume"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`), or the call needs storage while it runs without it (`storage_required`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "text_or_resume": {
                    "summary": "Neither `text` nor `resume`, or both.",
                    "value": {
                      "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"
                    }
                  },
                  "text_type": {
                    "summary": "`text` is not a string.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "text must be a string.",
                        "param": "text",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "resume_json": {
                    "summary": "`resume` is not a parsed resume, or has no `info_resume.text`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "resume must be the JSON object returned by the Resume Parser.",
                        "param": "resume",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "application_id_format": {
                    "summary": "`application_id` in the path is not a valid id.",
                    "value": {
                      "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"
                    }
                  },
                  "unknown_field": {
                    "summary": "A field the call does not take.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Unknown field candidate.",
                        "param": "candidate",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "body_not_json": {
                    "summary": "The body is not valid JSON, not an object, or not sent as `application/json`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body is not valid JSON.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_without_storage": {
                    "summary": "The workspace runs without storage, and the call would store something in it.",
                    "value": {
                      "error": {
                        "code": "storage_required",
                        "message": "This workspace runs without storage (do_not_store_data): nothing can be stored in it.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#storage_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "413": {
            "description": "An input is over its size limit (`payload_too_large`). `param` names the input, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "text_too_long": {
                    "summary": "The text is over 50,000 characters.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "text must be 50,000 characters or less.",
                        "param": "text",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "resume_too_large": {
                    "summary": "The parsed resume is over 1 MB.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "resume must be 1 MB or less.",
                        "param": "resume",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "body_too_large": {
                    "summary": "The body is over 10 MB.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "The request body must be 10 MB or less.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      },
      "delete": {
        "operationId": "deleteResume",
        "tags": [
          "Resume database"
        ],
        "summary": "Erase a resume",
        "description": "Erases the resume, its file and all its scores (GDPR erasure). Erasing a resume that does not exist is not an error. Free.",
        "x-hirelayer-credits": "0",
        "responses": {
          "204": {
            "description": "Erased."
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "application_id_format": {
                    "summary": "`application_id` in the path is not a valid id.",
                    "value": {
                      "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"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/ErasureUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/jobs": {
      "get": {
        "operationId": "listJobs",
        "tags": [
          "Jobs and criteria"
        ],
        "summary": "List stored jobs",
        "description": "The jobs of the workspace, most recently updated first. Free.",
        "x-hirelayer-credits": "0",
        "parameters": [
          {
            "$ref": "#/components/parameters/Workspace"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          },
          {
            "name": "status",
            "in": "query",
            "schema": {
              "$ref": "#/components/schemas/JobStatus"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of jobs.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/JobList"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "status": {
                    "summary": "`status` is not `open` or `closed`.",
                    "value": {
                      "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"
                    }
                  },
                  "limit": {
                    "summary": "`limit` out of range.",
                    "value": {
                      "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"
                    }
                  },
                  "cursor": {
                    "summary": "`cursor` is not a `next_cursor` of this list.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "cursor is not a next_cursor returned by this API.",
                        "param": "cursor",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/jobs/{job_id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/JobId"
        },
        {
          "$ref": "#/components/parameters/Workspace"
        }
      ],
      "get": {
        "operationId": "getJob",
        "tags": [
          "Jobs and criteria"
        ],
        "summary": "Get a stored job",
        "description": "Free.",
        "x-hirelayer-credits": "0",
        "responses": {
          "200": {
            "description": "The job and its criteria.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                },
                "example": {
                  "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"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_id_format": {
                    "summary": "`job_id` in the path is not a valid id.",
                    "value": {
                      "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"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No such object in the workspace (`not_found`). `param` names the field that carries the id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_not_found": {
                    "summary": "No job under this id in the workspace.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No job req-7 in workspace default.",
                        "param": "job_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      },
      "put": {
        "operationId": "putJob",
        "tags": [
          "Jobs and criteria"
        ],
        "summary": "Store a job under your id",
        "description": "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.\n\n- **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.\n- **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`.\n- **Without storage**: refused in a workspace without storage (`400 storage_required`).\n\n- **Credits**: 0, plus 1 per stored score evaluated again because criteria were added, reworded or extracted again.\n- **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).\n",
        "x-hirelayer-credits": "0; 1 per stored score evaluated again",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutJobRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Job"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`), or the call needs storage while it runs without it (`storage_required`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "text_too_short": {
                    "summary": "`text` is under 30 characters.",
                    "value": {
                      "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"
                    }
                  },
                  "text_missing": {
                    "summary": "A new job without its text.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "text is required to create a job.",
                        "param": "text",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "status": {
                    "summary": "`status` is not `open` or `closed`.",
                    "value": {
                      "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"
                    }
                  },
                  "criterion_rule": {
                    "summary": "A criterion breaks a rule (here its weight): `param` names the field.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "criteria[0].weight must be 0, 1, 2 or 3.",
                        "param": "criteria[0].weight",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "criteria_count": {
                    "summary": "No criterion, or more than 20.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "criteria must hold 1 to 20 criteria.",
                        "param": "criteria",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "criteria_repeated": {
                    "summary": "Two criteria with the same label and threshold.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "criteria[1] repeats criteria[0] (same label and threshold).",
                        "param": "criteria[1].label",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "field_too_long": {
                    "summary": "`title` or `location` over 300 characters.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "title must be 300 characters or less.",
                        "param": "title",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "job_id_format": {
                    "summary": "`job_id` in the path is not a valid id.",
                    "value": {
                      "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"
                    }
                  },
                  "unknown_field": {
                    "summary": "A field the call does not take.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Unknown field description.",
                        "param": "description",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "body_not_json": {
                    "summary": "The body is not valid JSON, not an object, or not sent as `application/json`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body is not valid JSON.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_without_storage": {
                    "summary": "The workspace runs without storage, and the call would store something in it.",
                    "value": {
                      "error": {
                        "code": "storage_required",
                        "message": "This workspace runs without storage (do_not_store_data): nothing can be stored in it.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#storage_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Not enough credits (`insufficient_credits`). Nothing was processed or billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "The change evaluates the job's stored scores again, and the credits left do not cover them.",
                    "value": {
                      "error": {
                        "code": "insufficient_credits",
                        "message": "This call evaluates 12 scores, 1 credit each: 12 credits, and 3 are left. Nothing was processed or billed.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#insufficient_credits"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "An input is over its size limit (`payload_too_large`). `param` names the input, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "text_too_long": {
                    "summary": "The text is over 50,000 characters.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "text must be 50,000 characters or less.",
                        "param": "text",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "body_too_large": {
                    "summary": "The body is over 10 MB.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "The request body must be 10 MB or less.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/ModelUnavailable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      },
      "delete": {
        "operationId": "deleteJob",
        "tags": [
          "Jobs and criteria"
        ],
        "summary": "Delete a job",
        "description": "Deletes the job, its criteria and its scores. The resumes stay. Deleting a job that does not exist is not an error. Free.",
        "x-hirelayer-credits": "0",
        "responses": {
          "204": {
            "description": "Deleted."
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_id_format": {
                    "summary": "`job_id` in the path is not a valid id.",
                    "value": {
                      "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"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/jobs/{job_id}/criteria": {
      "parameters": [
        {
          "$ref": "#/components/parameters/JobId"
        },
        {
          "$ref": "#/components/parameters/Workspace"
        }
      ],
      "post": {
        "operationId": "addCriterion",
        "tags": [
          "Jobs and criteria"
        ],
        "summary": "Add a criterion",
        "description": "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`).",
        "x-hirelayer-credits": "1 per stored score of the job",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CriterionInput"
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Added.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Criterion"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`), or the call needs storage while it runs without it (`storage_required`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "label": {
                    "summary": "No label.",
                    "value": {
                      "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"
                    }
                  },
                  "type": {
                    "summary": "A field out of its values (here `type`): `param` names it.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "type must be one of skill, experience, education, language, certification, location, soft_skill, other.",
                        "param": "type",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "criterion_rule": {
                    "summary": "A criterion breaks a rule (here its weight): `param` names the field.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "weight must be 0, 1, 2 or 3.",
                        "param": "weight",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "criteria_full": {
                    "summary": "The job has 20 criteria already.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "A job has at most 20 criteria.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "criterion_repeated": {
                    "summary": "Another criterion of the job has the same label and threshold.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Criterion crit_3 already has this label and threshold.",
                        "param": "label",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "job_id_format": {
                    "summary": "`job_id` in the path is not a valid id.",
                    "value": {
                      "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"
                    }
                  },
                  "unknown_field": {
                    "summary": "A field the call does not take.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Unknown field name.",
                        "param": "name",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "body_not_json": {
                    "summary": "The body is not valid JSON, not an object, or not sent as `application/json`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body is not valid JSON.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_without_storage": {
                    "summary": "The workspace runs without storage, and the call would store something in it.",
                    "value": {
                      "error": {
                        "code": "storage_required",
                        "message": "This workspace runs without storage (do_not_store_data): nothing can be stored in it.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#storage_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Not enough credits (`insufficient_credits`). Nothing was processed or billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "The change evaluates the job's stored scores again, and the credits left do not cover them.",
                    "value": {
                      "error": {
                        "code": "insufficient_credits",
                        "message": "This call evaluates 12 scores, 1 credit each: 12 credits, and 3 are left. Nothing was processed or billed.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#insufficient_credits"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such object in the workspace (`not_found`). `param` names the field that carries the id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_not_found": {
                    "summary": "No job under this id in the workspace.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No job req-7 in workspace default.",
                        "param": "job_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "An input is over its size limit (`payload_too_large`). `param` names the input, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "body_too_large": {
                    "summary": "The body is over 10 MB.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "The request body must be 10 MB or less.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/jobs/{job_id}/criteria/{criterion_id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/JobId"
        },
        {
          "$ref": "#/components/parameters/CriterionId"
        },
        {
          "$ref": "#/components/parameters/Workspace"
        }
      ],
      "patch": {
        "operationId": "updateCriterion",
        "tags": [
          "Jobs and criteria"
        ],
        "summary": "Change a criterion",
        "description": "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.\n\nIn a workspace without storage, refused (`400 storage_required`), as `POST /jobs/{job_id}/criteria` is; removing a criterion stays allowed.\n",
        "x-hirelayer-credits": "0 for weight, requirement and type; 1 per stored score for label or threshold",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CriterionPatch"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Changed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Criterion"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`), or the call needs storage while it runs without it (`storage_required`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "nothing_to_change": {
                    "summary": "An empty body.",
                    "value": {
                      "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"
                    }
                  },
                  "criterion_rule": {
                    "summary": "A criterion breaks a rule (here its weight): `param` names the field.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "weight must be 0, 1, 2 or 3.",
                        "param": "weight",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "criterion_id_format": {
                    "summary": "`criterion_id` in the path is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "criterion_id must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "criterion_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "unknown_field": {
                    "summary": "A field the call does not take.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Unknown field name.",
                        "param": "name",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "body_not_json": {
                    "summary": "The body is not valid JSON, not an object, or not sent as `application/json`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body is not valid JSON.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_without_storage": {
                    "summary": "The workspace runs without storage, and the call would store something in it.",
                    "value": {
                      "error": {
                        "code": "storage_required",
                        "message": "This workspace runs without storage (do_not_store_data): nothing can be stored in it.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#storage_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Not enough credits (`insufficient_credits`). Nothing was processed or billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "The change evaluates the job's stored scores again, and the credits left do not cover them.",
                    "value": {
                      "error": {
                        "code": "insufficient_credits",
                        "message": "This call evaluates 12 scores, 1 credit each: 12 credits, and 3 are left. Nothing was processed or billed.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#insufficient_credits"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such object in the workspace (`not_found`). `param` names the field that carries the id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_not_found": {
                    "summary": "No job under this id in the workspace.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No job req-7 in workspace default.",
                        "param": "job_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "criterion_not_found": {
                    "summary": "No such criterion in the job.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No criterion crit_9 in job req-7.",
                        "param": "criterion_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "An input is over its size limit (`payload_too_large`). `param` names the input, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "body_too_large": {
                    "summary": "The body is over 10 MB.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "The request body must be 10 MB or less.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      },
      "delete": {
        "operationId": "deleteCriterion",
        "tags": [
          "Jobs and criteria"
        ],
        "summary": "Remove a criterion",
        "description": "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.",
        "x-hirelayer-credits": "0",
        "responses": {
          "204": {
            "description": "Removed."
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "last_criterion": {
                    "summary": "The job's last criterion.",
                    "value": {
                      "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"
                    }
                  },
                  "criterion_id_format": {
                    "summary": "`criterion_id` in the path is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "criterion_id must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "criterion_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No such object in the workspace (`not_found`). `param` names the field that carries the id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_not_found": {
                    "summary": "No job under this id in the workspace.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No job req-7 in workspace default.",
                        "param": "job_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "criterion_not_found": {
                    "summary": "No such criterion in the job.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No criterion crit_9 in job req-7.",
                        "param": "criterion_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/jobs/{job_id}/scores": {
      "parameters": [
        {
          "$ref": "#/components/parameters/JobId"
        },
        {
          "$ref": "#/components/parameters/Workspace"
        }
      ],
      "get": {
        "operationId": "listJobScores",
        "tags": [
          "Stored scores"
        ],
        "summary": "Read a job's ranking",
        "description": "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.\n",
        "x-hirelayer-credits": "0; 1 with precise_ranking=true",
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          },
          {
            "$ref": "#/components/parameters/Weights"
          },
          {
            "$ref": "#/components/parameters/Requirements"
          },
          {
            "name": "min_score",
            "in": "query",
            "description": "Only scores at least this high.",
            "schema": {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            }
          },
          {
            "name": "include",
            "in": "query",
            "description": "`criteria` adds the per-criterion detail to each score.",
            "schema": {
              "type": "string",
              "enum": [
                "criteria"
              ]
            }
          },
          {
            "name": "precise_ranking",
            "in": "query",
            "description": "Re-rank the 10 best of all the job's resumes and add `ranking_reason`. 1 credit.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "request_id",
            "in": "query",
            "description": "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).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A page of the ranking.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/StoredScoreList"
                },
                "example": {
                  "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
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "weights": {
                    "summary": "A query parameter out of its values (here a weight): `param` names it.",
                    "value": {
                      "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"
                    }
                  },
                  "request_id_alone": {
                    "summary": "A parameter other than `include` with `request_id`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "limit does not apply with request_id: a Scorer call is read whole, with include only.",
                        "param": "limit",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "limit": {
                    "summary": "`limit` out of range.",
                    "value": {
                      "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"
                    }
                  },
                  "cursor": {
                    "summary": "`cursor` is not a `next_cursor` of this list.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "cursor is not a next_cursor returned by this API.",
                        "param": "cursor",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "job_id_format": {
                    "summary": "`job_id` in the path is not a valid id.",
                    "value": {
                      "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"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Not enough credits for `precise_ranking=true` (`insufficient_credits`). Nothing was processed or billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "No credit left for the precise ranking.",
                    "value": {
                      "error": {
                        "code": "insufficient_credits",
                        "message": "This call needs 1 credit and none is left. Nothing was processed or billed.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#insufficient_credits"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No such object in the workspace (`not_found`). `param` names the field that carries the id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_not_found": {
                    "summary": "No job under this id in the workspace.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No job req-7 in workspace default.",
                        "param": "job_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "request_not_found": {
                    "summary": "No Scorer call under `request_id` for this job (kept 30 days).",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No Scorer call 5d0a3c1e-2f4b-4c8e-9a61-0b7e2d9f4c13 for job req-7.",
                        "param": "request_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/jobs/{job_id}/scores/{application_id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/JobId"
        },
        {
          "$ref": "#/components/parameters/ApplicationId"
        },
        {
          "$ref": "#/components/parameters/Workspace"
        }
      ],
      "get": {
        "operationId": "getJobScore",
        "tags": [
          "Stored scores"
        ],
        "summary": "Read one stored score",
        "description": "One resume's score for a job, criterion by criterion, with the priorities of this read. Free.",
        "x-hirelayer-credits": "0",
        "parameters": [
          {
            "$ref": "#/components/parameters/Weights"
          },
          {
            "$ref": "#/components/parameters/Requirements"
          }
        ],
        "responses": {
          "200": {
            "description": "The score.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Score"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "weights": {
                    "summary": "A query parameter out of its values (here a weight): `param` names it.",
                    "value": {
                      "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"
                    }
                  },
                  "application_id_format": {
                    "summary": "`application_id` in the path is not a valid id.",
                    "value": {
                      "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"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No such object in the workspace (`not_found`). `param` names the field that carries the id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "job_not_found": {
                    "summary": "No job under this id in the workspace.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No job req-7 in workspace default.",
                        "param": "job_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "score_not_found": {
                    "summary": "The resume has no score for this job.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No score of resume cand-42 for job req-7 in workspace default.",
                        "param": "application_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      },
      "delete": {
        "operationId": "deleteJobScore",
        "tags": [
          "Stored scores"
        ],
        "summary": "Detach a resume from a job",
        "description": "Deletes the score. The resume stays in the workspace. Free.",
        "x-hirelayer-credits": "0",
        "responses": {
          "204": {
            "description": "Deleted."
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "application_id_format": {
                    "summary": "`application_id` in the path is not a valid id.",
                    "value": {
                      "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"
                    }
                  },
                  "workspace_header": {
                    "summary": "`HireLayer-Workspace` is not a valid id.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters.",
                        "param": "HireLayer-Workspace",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/skills": {
      "get": {
        "operationId": "listSkills",
        "tags": [
          "Skills Normalizer"
        ],
        "summary": "List the skills taxonomy",
        "description": "The whole taxonomy, most frequent in resumes first. 1 credit.",
        "x-hirelayer-credits": "1",
        "parameters": [
          {
            "name": "language",
            "in": "query",
            "description": "`fr` (default) or `en`.",
            "schema": {
              "$ref": "#/components/schemas/Language"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The taxonomy.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SkillsTaxonomy"
                },
                "examples": {
                  "default": {
                    "summary": "The taxonomy (first two of 11,061 skills shown).",
                    "value": {
                      "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
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "language": {
                    "summary": "`language` is not `fr` or `en`.",
                    "value": {
                      "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"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "Not enough credits (`insufficient_credits`). Nothing was processed or billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "No credit left.",
                    "value": {
                      "error": {
                        "code": "insufficient_credits",
                        "message": "This call needs 1 credit and none is left. Nothing was processed or billed.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#insufficient_credits"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/workspaces": {
      "get": {
        "operationId": "listWorkspaces",
        "tags": [
          "Workspaces"
        ],
        "summary": "List workspaces",
        "description": "`default` first, then the others, oldest first. Free.",
        "x-hirelayer-credits": "0",
        "responses": {
          "200": {
            "description": "The workspaces.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/WorkspaceList"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/workspaces/{workspace_id}": {
      "parameters": [
        {
          "$ref": "#/components/parameters/WorkspaceId"
        }
      ],
      "put": {
        "operationId": "putWorkspace",
        "tags": [
          "Workspaces"
        ],
        "summary": "Create or rename a workspace",
        "description": "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.\n\n- **`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.\n- **`do_not_store_data: false`** lifts it; nothing processed meanwhile was kept.\n- A field left out keeps its current value.\n",
        "x-hirelayer-credits": "0",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PutWorkspaceRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Renamed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workspace"
                }
              }
            }
          },
          "201": {
            "description": "Created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Workspace"
                }
              }
            }
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "name_too_long": {
                    "summary": "`name` over 200 characters.",
                    "value": {
                      "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"
                    }
                  },
                  "default_workspace": {
                    "summary": "A name for the workspace `default`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The default workspace always exists and has no name to set.",
                        "param": "workspace_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "flag": {
                    "summary": "`do_not_store_data` is not a boolean.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "do_not_store_data must be true or false.",
                        "param": "do_not_store_data",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "workspace_id_format": {
                    "summary": "`workspace_id` in the path is not a valid id.",
                    "value": {
                      "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"
                    }
                  },
                  "unknown_field": {
                    "summary": "A field the call does not take.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "Unknown field label.",
                        "param": "label",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  },
                  "body_not_json": {
                    "summary": "The body is not valid JSON, not an object, or not sent as `application/json`.",
                    "value": {
                      "error": {
                        "code": "invalid_request",
                        "message": "The request body is not valid JSON.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#invalid_request"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "description": "`do_not_store_data` below the Enterprise plan (`enterprise_plan_required`). Nothing was processed or billed.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "enterprise_plan_required": {
                    "summary": "`do_not_store_data: true` below the Enterprise plan.",
                    "value": {
                      "error": {
                        "code": "enterprise_plan_required",
                        "message": "do_not_store_data is available on the Enterprise plan only. Nothing was processed or billed.",
                        "param": "do_not_store_data",
                        "doc_url": "https://hirelayer.co/api-docs/errors#enterprise_plan_required"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "An input is over its size limit (`payload_too_large`). `param` names the input, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "body_too_large": {
                    "summary": "The body is over 10 MB.",
                    "value": {
                      "error": {
                        "code": "payload_too_large",
                        "message": "The request body must be 10 MB or less.",
                        "doc_url": "https://hirelayer.co/api-docs/errors#payload_too_large"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      },
      "delete": {
        "operationId": "deleteWorkspace",
        "tags": [
          "Workspaces"
        ],
        "summary": "Erase a workspace",
        "description": "Erases every job, resume, file and score of the workspace, for example when your customer leaves. Free.",
        "x-hirelayer-credits": "0",
        "responses": {
          "204": {
            "description": "Erased."
          },
          "400": {
            "description": "The request is invalid (`invalid_request`). `param` names the input at fault, when there is one.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_id_format": {
                    "summary": "`workspace_id` in the path is not a valid id.",
                    "value": {
                      "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"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "404": {
            "description": "No such object in the workspace (`not_found`). `param` names the field that carries the id.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Error"
                },
                "examples": {
                  "workspace_not_found": {
                    "summary": "The workspace was never created or used.",
                    "value": {
                      "error": {
                        "code": "not_found",
                        "message": "No workspace acme: it was never created, and nothing was ever stored in it.",
                        "param": "workspace_id",
                        "doc_url": "https://hirelayer.co/api-docs/errors#not_found"
                      },
                      "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/ErasureUnavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/account": {
      "get": {
        "operationId": "getAccount",
        "tags": [
          "Account"
        ],
        "summary": "Get the account",
        "description": "The plan and the credits left of the key's account. Free.",
        "x-hirelayer-credits": "0",
        "responses": {
          "200": {
            "description": "The account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Account"
                },
                "example": {
                  "account": {
                    "email": "dev@example.com",
                    "plan": "scale"
                  },
                  "credits": {
                    "available": 4210,
                    "unlimited": false
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "502": {
            "$ref": "#/components/responses/Unreachable"
          },
          "503": {
            "$ref": "#/components/responses/Unavailable"
          },
          "504": {
            "$ref": "#/components/responses/Timeout"
          }
        }
      }
    },
    "/api/v4/health": {
      "get": {
        "operationId": "getHealth",
        "tags": [
          "Account"
        ],
        "summary": "Service health",
        "description": "No key needed. Free.",
        "security": [],
        "responses": {
          "200": {
            "description": "The service answers.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Health"
                },
                "example": {
                  "status": "healthy",
                  "service": "hirelayer-api",
                  "timestamp": "2026-10-27T09:00:00Z"
                }
              }
            }
          }
        }
      }
    },
    "/api/v3/parser": {
      "post": {
        "operationId": "parseResumeV3",
        "summary": "Parse a resume (v3)",
        "description": "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`.\n\n**Billing:** 1 credit per successful parse (HTTP 200, or 201 in HrFlow.ai’s format).\n\n**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.\n\n**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).\n\n**Retries:** Retry `502`, `503` and `504` with exponential backoff and honour `Retry-After`. Never retry `4xx` unchanged. Failed requests are not charged.\n\n**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.\n\n**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.\n\n**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.\n\n**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.\n\n**Request ID:** Successful responses carry `request_id`; error responses carry the `x-parser-request-id` header. Quote them when contacting support.\n\n**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).\n\n**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).\n\nReference: https://hirelayer.co/api-docs/legacy-parsers#parse-resume-v3",
        "tags": [
          "Legacy parsers"
        ],
        "deprecated": true,
        "x-stability": "legacy",
        "x-client-timeout-seconds": 150,
        "externalDocs": {
          "url": "https://hirelayer.co/api-docs/legacy-parsers#parse-resume-v3"
        },
        "parameters": [
          {
            "name": "output_format",
            "in": "query",
            "required": false,
            "description": "`hirelayer` (default): the response below. `hrflow`: the same parse as HrFlow.ai’s resume parsing answers it, with `201`, and errors as `{\"code\": <status>, \"message\": \"…\", \"error_code\": \"…\"}`. See [Migrate from HrFlow.ai](https://hirelayer.co/api-docs/migrate-from-hrflow.md).",
            "schema": {
              "type": "string",
              "enum": [
                "hirelayer",
                "hrflow"
              ]
            }
          },
          {
            "name": "Prefer",
            "in": "header",
            "required": false,
            "description": "`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).",
            "schema": {
              "type": "string",
              "enum": [
                "respond-async"
              ]
            }
          },
          {
            "name": "HireLayer-Workspace",
            "in": "header",
            "required": false,
            "description": "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`.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9._:~-]{1,200}$"
            },
            "example": "acme-corp"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ParseResumeV3Request"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Parsed resume.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParseResumeV3Response"
                },
                "examples": {
                  "example-1": {
                    "summary": "Parsed resume.",
                    "value": {
                      "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"
                      ]
                    }
                  }
                }
              }
            }
          },
          "201": {
            "description": "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).",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParseResumeV3CreatedResponse"
                },
                "examples": {
                  "example-1": {
                    "summary": "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).",
                    "value": {
                      "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": []
                        }
                      }
                    }
                  },
                  "in-hrflow-ai-s-format": {
                    "summary": "In HrFlow.ai’s format",
                    "value": {
                      "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": []
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "202": {
            "description": "Accepted in [asynchronous mode](https://hirelayer.co/api-docs/legacy-parsers.md#async): the outcome is posted to `webhook_url`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParseResumeV3AcceptedResponse"
                },
                "examples": {
                  "example-1": {
                    "summary": "Accepted in [asynchronous mode](https://hirelayer.co/api-docs/legacy-parsers.md#async): the outcome is posted to `webhook_url`.",
                    "value": {
                      "status": "accepted",
                      "application_id": "app_123",
                      "workspace": "acme-corp"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- `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.\n- `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.\n- `Missing required file field`: No multipart part named `file`. Do not retry.\n- `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.\n- `application_id must be a string when provided`: `application_id` was sent as a file part. Do not retry.\n- `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.\n- `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.\n- `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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "unsupported-output-format": {
                    "summary": "Unsupported output_format. Use one of: hirelayer, hrflow",
                    "value": {
                      "error": "Unsupported output_format. Use one of: hirelayer, hrflow",
                      "code": "UNSUPPORTED_OUTPUT_FORMAT"
                    }
                  },
                  "invalid-multipart-body": {
                    "summary": "The request body is not valid multipart/form-data. Check the boundary and the Content-Disposition header of each part.",
                    "value": {
                      "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"
                    }
                  },
                  "missing-required-file-field": {
                    "summary": "Missing required file field",
                    "value": {
                      "error": "Missing required file field"
                    }
                  },
                  "prefer-respond-async-requires-a-webhook-url-field-with-an-https-url": {
                    "summary": "Prefer: respond-async requires a webhook_url field with an HTTPS URL",
                    "value": {
                      "error": "Prefer: respond-async requires a webhook_url field with an HTTPS URL"
                    }
                  },
                  "application-id-must-be-a-string-when-provided": {
                    "summary": "application_id must be a string when provided",
                    "value": {
                      "error": "application_id must be a string when provided"
                    }
                  },
                  "application-id-must-contain-letters-digits-and-up-to-200-characters": {
                    "summary": "application_id must contain letters, digits and . _ : ~ -, up to 200 characters",
                    "value": {
                      "error": "application_id must contain letters, digits and . _ : ~ -, up to 200 characters"
                    }
                  },
                  "hirelayer-workspace-must-contain-letters-digits-and-up-to-200-characters": {
                    "summary": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters",
                    "value": {
                      "error": "HireLayer-Workspace must contain letters, digits and . _ : ~ -, up to 200 characters"
                    }
                  },
                  "invalid-file": {
                    "summary": "The uploaded file is empty or invalid. Please check the file and try again.",
                    "value": {
                      "error": "The uploaded file is empty or invalid. Please check the file and try again.",
                      "code": "INVALID_FILE"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "- `Missing API Key`: The `X-API-Key` header is absent. `Authorization: Bearer` is not accepted. Do not retry.\n- `Invalid API Key`: The key is malformed, unknown or revoked. Rotating a key revokes the previous one immediately. Do not retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "missing-api-key": {
                    "summary": "Missing API Key",
                    "value": {
                      "error": "Missing API Key"
                    }
                  },
                  "invalid-api-key": {
                    "summary": "Invalid API Key",
                    "value": {
                      "error": "Invalid API Key"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "- `Insufficient credits available`: The account has no credit left. Fix, then retry.\n- `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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "insufficient-credits-available": {
                    "summary": "Insufficient credits available",
                    "value": {
                      "error": "Insufficient credits available"
                    }
                  },
                  "enterprise-plan-required": {
                    "summary": "do_not_store_data=true is reserved for the Enterprise plan. Send the request without it, or with do_not_store_data=false.",
                    "value": {
                      "error": "do_not_store_data=true is reserved for the Enterprise plan. Send the request without it, or with do_not_store_data=false.",
                      "code": "ENTERPRISE_PLAN_REQUIRED"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "- `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.\n- `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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "the-uploaded-file-is-too-large-to-process-please-upload-a-smaller-file": {
                    "summary": "The uploaded file is too large to process. Please upload a smaller file.",
                    "value": {
                      "error": "The uploaded file is too large to process. Please upload a smaller file."
                    }
                  },
                  "the-request-body-is-larger-than-the-10-mb-limit-please-upload-a-smaller-file": {
                    "summary": "The request body is larger than the 10 MB limit. Please upload a smaller file.",
                    "value": {
                      "error": "The request body is larger than the 10 MB limit. Please upload a smaller file."
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "- `Content-Type must be multipart/form-data`: The request is not `multipart/form-data`. Do not retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "content-type-must-be-multipart-form-data": {
                    "summary": "Content-Type must be multipart/form-data",
                    "value": {
                      "error": "Content-Type must be multipart/form-data"
                    }
                  }
                }
              }
            }
          },
          "422": {
            "description": "- `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.\n- `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.\n- `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.\n- `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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "document-not-a-resume": {
                    "summary": "This document does not appear to be a CV or resume. Please upload a CV or resume and try again.",
                    "value": {
                      "error": "This document does not appear to be a CV or resume. Please upload a CV or resume and try again.",
                      "code": "DOCUMENT_NOT_A_RESUME"
                    }
                  },
                  "document-text-empty": {
                    "summary": "The text could not be extracted from this document. Please verify that the file is readable and contains selectable text.",
                    "value": {
                      "error": "The text could not be extracted from this document. Please verify that the file is readable and contains selectable text.",
                      "code": "DOCUMENT_TEXT_EMPTY"
                    }
                  },
                  "document-unreadable": {
                    "summary": "The document could not be read. Please upload a valid, readable file.",
                    "value": {
                      "error": "The document could not be read. Please upload a valid, readable file.",
                      "code": "DOCUMENT_UNREADABLE"
                    }
                  },
                  "document-too-large": {
                    "summary": "This document contains too much text to process. Please try a shorter or simpler version.",
                    "value": {
                      "error": "This document contains too much text to process. Please try a shorter or simpler version.",
                      "code": "DOCUMENT_TOO_LARGE"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "- `Internal Server Error`: Unexpected failure. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "internal-server-error": {
                    "summary": "Internal Server Error",
                    "value": {
                      "error": "Internal Server Error"
                    }
                  }
                }
              }
            }
          },
          "502": {
            "description": "- `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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "parser-unavailable": {
                    "summary": "An error occurred while processing the document or extracting its text. Please try again later.",
                    "value": {
                      "error": "An error occurred while processing the document or extracting its text. Please try again later.",
                      "code": "PARSER_UNAVAILABLE"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "- `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.\n- `Credit service temporarily unavailable`: Credits could not be checked or deducted. No credit is consumed, including when the operation itself had completed. Retry with backoff.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "parser-unavailable": {
                    "summary": "An error occurred while processing the document or extracting its text. Please try again later.",
                    "value": {
                      "error": "An error occurred while processing the document or extracting its text. Please try again later.",
                      "code": "PARSER_UNAVAILABLE"
                    }
                  },
                  "credit-service-temporarily-unavailable": {
                    "summary": "Credit service temporarily unavailable",
                    "value": {
                      "error": "Credit service temporarily unavailable"
                    }
                  }
                }
              }
            }
          },
          "504": {
            "description": "- `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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "parser-unavailable": {
                    "summary": "An error occurred while processing the document or extracting its text. Please try again later.",
                    "value": {
                      "error": "An error occurred while processing the document or extracting its text. Please try again later.",
                      "code": "PARSER_UNAVAILABLE"
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/v2/parser": {
      "post": {
        "operationId": "parseResumeV2",
        "summary": "Submit a resume (v2)",
        "description": "Legacy asynchronous contract: the request is accepted with `202` and the result is posted to `webhook_url`.\n\n**Billing:** 1 credit when the request is accepted (HTTP 202).\n\n**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\": …}`.\n\n**Billing:** The credit is consumed when the request is accepted, even if processing fails later.\n\nReference: https://hirelayer.co/api-docs/legacy-parsers#parse-resume-v2",
        "tags": [
          "Legacy parsers"
        ],
        "deprecated": true,
        "x-stability": "legacy",
        "x-client-timeout-seconds": 50,
        "externalDocs": {
          "url": "https://hirelayer.co/api-docs/legacy-parsers#parse-resume-v2"
        },
        "requestBody": {
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "$ref": "#/components/schemas/ParseResumeV2Request"
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted. The result is sent to `webhook_url` later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ParseResumeV2Response"
                },
                "examples": {
                  "example-1": {
                    "summary": "Accepted. The result is sent to `webhook_url` later.",
                    "value": {
                      "message": "CV processing initiated.",
                      "body": null,
                      "error": false
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "- `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.\n- `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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "invalid-multipart-body": {
                    "summary": "The request body is not valid multipart/form-data. Check the boundary and the Content-Disposition header of each part.",
                    "value": {
                      "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"
                    }
                  },
                  "an-error-occurred-while-processing-the-document-or-extracting-its-text-please-try-again-later": {
                    "summary": "An error occurred while processing the document or extracting its text. Please try again later.",
                    "value": {
                      "error": "An error occurred while processing the document or extracting its text. Please try again later."
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "- `Missing API Key`: The `X-API-Key` header is absent. `Authorization: Bearer` is not accepted. Do not retry.\n- `Invalid API Key`: The key is malformed, unknown or revoked. Rotating a key revokes the previous one immediately. Do not retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "missing-api-key": {
                    "summary": "Missing API Key",
                    "value": {
                      "error": "Missing API Key"
                    }
                  },
                  "invalid-api-key": {
                    "summary": "Invalid API Key",
                    "value": {
                      "error": "Invalid API Key"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "- `Insufficient credits available`: The account has no credit left. Fix, then retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "insufficient-credits-available": {
                    "summary": "Insufficient credits available",
                    "value": {
                      "error": "Insufficient credits available"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "- `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.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "the-request-body-is-larger-than-the-10-mb-limit-please-upload-a-smaller-file": {
                    "summary": "The request body is larger than the 10 MB limit. Please upload a smaller file.",
                    "value": {
                      "error": "The request body is larger than the 10 MB limit. Please upload a smaller file."
                    }
                  }
                }
              }
            }
          },
          "415": {
            "description": "- `Content-Type must be multipart/form-data`: The request is not `multipart/form-data`. Do not retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "content-type-must-be-multipart-form-data": {
                    "summary": "Content-Type must be multipart/form-data",
                    "value": {
                      "error": "Content-Type must be multipart/form-data"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "- `Internal Server Error`: The legacy parser did not accept the request within 45 seconds, or an unexpected failure. Retry with backoff.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "internal-server-error": {
                    "summary": "Internal Server Error",
                    "value": {
                      "error": "Internal Server Error"
                    }
                  }
                }
              }
            }
          },
          "503": {
            "description": "- `Credit service temporarily unavailable`: Credits could not be checked or deducted. No credit is consumed, including when the operation itself had completed. Retry with backoff.",
            "headers": {
              "Retry-After": {
                "description": "Seconds to wait before retrying.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/GatewayError"
                },
                "examples": {
                  "credit-service-temporarily-unavailable": {
                    "summary": "Credit service temporarily unavailable",
                    "value": {
                      "error": "Credit service temporarily unavailable"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "webhooks": {
    "resumeParsed": {
      "post": {
        "operationId": "resumeParsedWebhook",
        "summary": "A parse sent with webhook_url ended",
        "description": "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`.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Signature"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ParseWebhookEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Received."
          }
        }
      }
    },
    "scoresCompleted": {
      "post": {
        "operationId": "scoresCompletedWebhook",
        "summary": "A scoring call that answered 202 ended",
        "description": "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.",
        "parameters": [
          {
            "$ref": "#/components/parameters/Signature"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ScoreWebhookEvent"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Received."
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "X-API-Key",
        "description": "API key from the dashboard. `Authorization: Bearer` is not supported."
      }
    },
    "parameters": {
      "OutputFormat": {
        "name": "output_format",
        "in": "query",
        "required": false,
        "description": "`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.",
        "schema": {
          "type": "string",
          "enum": [
            "hirelayer",
            "hrflow"
          ],
          "default": "hirelayer"
        }
      },
      "Workspace": {
        "name": "HireLayer-Workspace",
        "in": "header",
        "required": false,
        "description": "Your customer's workspace id. Case-insensitive, created on first use. Absent, calls use `default`.",
        "schema": {
          "$ref": "#/components/schemas/ClientId"
        }
      },
      "JobId": {
        "name": "job_id",
        "in": "path",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/ClientId"
        }
      },
      "ApplicationId": {
        "name": "application_id",
        "in": "path",
        "required": true,
        "description": "The resume's id, including one returned by the legacy `/api/v3/parser` in `info_resume.application_id`.",
        "schema": {
          "$ref": "#/components/schemas/ClientId"
        }
      },
      "CriterionId": {
        "name": "criterion_id",
        "in": "path",
        "required": true,
        "schema": {
          "type": "string",
          "pattern": "^crit_[0-9]+$"
        }
      },
      "WorkspaceId": {
        "name": "workspace_id",
        "in": "path",
        "required": true,
        "schema": {
          "$ref": "#/components/schemas/ClientId"
        }
      },
      "Limit": {
        "name": "limit",
        "in": "query",
        "description": "Page size.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 100,
          "default": 20
        }
      },
      "Cursor": {
        "name": "cursor",
        "in": "query",
        "description": "The `next_cursor` of the previous page.",
        "schema": {
          "type": "string"
        }
      },
      "Weights": {
        "name": "weights",
        "in": "query",
        "style": "deepObject",
        "explode": true,
        "description": "Weights for this read only, by criterion id, such as `weights[crit_3]=0`. 0 turns a criterion off.",
        "schema": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/components/schemas/Weight"
          }
        }
      },
      "Requirements": {
        "name": "requirements",
        "in": "query",
        "style": "deepObject",
        "explode": true,
        "description": "Requirements for this read only, by criterion id, such as `requirements[crit_1]=required`.",
        "schema": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/components/schemas/Requirement"
          }
        }
      },
      "Signature": {
        "name": "HireLayer-Signature",
        "in": "header",
        "required": true,
        "description": "`t=<unix seconds>,v1=<hex HMAC-SHA256 of \"<t>.<raw body>\">`, 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.",
        "schema": {
          "type": "string"
        }
      }
    },
    "responses": {
      "Unauthorized": {
        "description": "The `X-API-Key` header is missing (`missing_api_key`) or the key is invalid (`invalid_api_key`).",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "missing_api_key": {
                "summary": "No `X-API-Key` header.",
                "value": {
                  "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"
                }
              },
              "bearer": {
                "summary": "The key sent as `Authorization: Bearer`: it goes in `X-API-Key`.",
                "value": {
                  "error": {
                    "code": "missing_api_key",
                    "message": "Authorization: Bearer is not accepted: send the key in the X-API-Key header.",
                    "doc_url": "https://hirelayer.co/api-docs/errors#missing_api_key"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              },
              "key_in_url": {
                "summary": "The key sent in the URL: it goes in `X-API-Key`.",
                "value": {
                  "error": {
                    "code": "missing_api_key",
                    "message": "The key goes in the X-API-Key header, not in the URL.",
                    "doc_url": "https://hirelayer.co/api-docs/errors#missing_api_key"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              },
              "invalid_api_key": {
                "summary": "The key is unknown, malformed or revoked.",
                "value": {
                  "error": {
                    "code": "invalid_api_key",
                    "message": "Invalid API key: it is unknown, malformed or revoked.",
                    "doc_url": "https://hirelayer.co/api-docs/errors#invalid_api_key"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              }
            }
          }
        }
      },
      "RateLimited": {
        "description": "Too many files parsed at once for the account (`rate_limited`). Retry after the `Retry-After` header.",
        "headers": {
          "Retry-After": {
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "rate_limited": {
                "summary": "Too many parses at once.",
                "value": {
                  "error": {
                    "code": "rate_limited",
                    "message": "Too many files are being parsed at once for this account: retry after the Retry-After delay.",
                    "doc_url": "https://hirelayer.co/api-docs/errors#rate_limited"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              }
            }
          }
        }
      },
      "InternalError": {
        "description": "An unexpected error (`internal_error`). Retry later; if it persists, contact support with the `request_id`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "internal_error": {
                "summary": "An unexpected error.",
                "value": {
                  "error": {
                    "code": "internal_error",
                    "message": "Internal error: retry later. If it persists, contact support with the request_id.",
                    "doc_url": "https://hirelayer.co/api-docs/errors#internal_error"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              }
            }
          }
        }
      },
      "ModelUnavailable": {
        "description": "The analysis did not complete after several attempts (`model_unavailable`): nothing was stored or billed, retry with backoff. Or the service could not be reached (`internal_error`): retry later.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "model_unavailable": {
                "summary": "The analysis did not complete.",
                "value": {
                  "error": {
                    "code": "model_unavailable",
                    "message": "The analysis did not complete after several attempts. Nothing was stored or billed: retry with backoff.",
                    "doc_url": "https://hirelayer.co/api-docs/errors#model_unavailable"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              },
              "unreachable": {
                "summary": "The service could not be reached.",
                "value": {
                  "error": {
                    "code": "internal_error",
                    "message": "The service could not be reached: retry later.",
                    "doc_url": "https://hirelayer.co/api-docs/errors#internal_error"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              }
            }
          }
        }
      },
      "Unreachable": {
        "description": "The service could not be reached (`internal_error`). Retry later.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "unreachable": {
                "summary": "The service could not be reached.",
                "value": {
                  "error": {
                    "code": "internal_error",
                    "message": "The service could not be reached: retry later.",
                    "doc_url": "https://hirelayer.co/api-docs/errors#internal_error"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              }
            }
          }
        }
      },
      "Unavailable": {
        "description": "A dependency is briefly unavailable (`internal_error`). Retry after the `Retry-After` header when there is one, else after a few seconds.",
        "headers": {
          "Retry-After": {
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "credits": {
                "summary": "The credit service is briefly unavailable.",
                "value": {
                  "error": {
                    "code": "internal_error",
                    "message": "The credit service is briefly unavailable: retry in a second.",
                    "doc_url": "https://hirelayer.co/api-docs/errors#internal_error"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              }
            }
          }
        }
      },
      "ErasureUnavailable": {
        "description": "The erasure could not be finished (`internal_error`): the same call finishes it. Retry after the `Retry-After` header.",
        "headers": {
          "Retry-After": {
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "erasure": {
                "summary": "An erasure could not be finished: the same call finishes it.",
                "value": {
                  "error": {
                    "code": "internal_error",
                    "message": "The erasure could not be finished: send the same call again to finish it.",
                    "doc_url": "https://hirelayer.co/api-docs/errors#internal_error"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              }
            }
          }
        }
      },
      "SearchUnavailable": {
        "description": "A dependency is briefly unavailable (`internal_error`). Retry after the `Retry-After` header.",
        "headers": {
          "Retry-After": {
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "credits": {
                "summary": "The credit service is briefly unavailable.",
                "value": {
                  "error": {
                    "code": "internal_error",
                    "message": "The credit service is briefly unavailable: retry in a second.",
                    "doc_url": "https://hirelayer.co/api-docs/errors#internal_error"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              },
              "location": {
                "summary": "The location filter is briefly unavailable.",
                "value": {
                  "error": {
                    "code": "internal_error",
                    "message": "The location filter is briefly unavailable: search without it, or retry later.",
                    "param": "filters.location",
                    "doc_url": "https://hirelayer.co/api-docs/errors#internal_error"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              }
            }
          }
        }
      },
      "JobsSearchUnavailable": {
        "description": "A dependency is briefly unavailable (`internal_error`). Retry after the `Retry-After` header.",
        "headers": {
          "Retry-After": {
            "schema": {
              "type": "integer"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "credits": {
                "summary": "The credit service is briefly unavailable.",
                "value": {
                  "error": {
                    "code": "internal_error",
                    "message": "The credit service is briefly unavailable: retry in a second.",
                    "doc_url": "https://hirelayer.co/api-docs/errors#internal_error"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              },
              "not_stored": {
                "summary": "The resume file was parsed but could not be stored yet.",
                "value": {
                  "error": {
                    "code": "internal_error",
                    "message": "The resume was parsed but could not be stored, so there is nothing to search with: retry in a few seconds.",
                    "param": "file",
                    "doc_url": "https://hirelayer.co/api-docs/errors#internal_error"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              }
            }
          }
        }
      },
      "Timeout": {
        "description": "The service did not answer in time (`internal_error`). A change may still have been applied, and the work it started billed as usual; read it (the job, the resume, the workspace or `results_url`) before sending the call again.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "timeout": {
                "summary": "No answer in time.",
                "value": {
                  "error": {
                    "code": "internal_error",
                    "message": "The service did not answer in time. The change may still be applied: read it before sending it again.",
                    "doc_url": "https://hirelayer.co/api-docs/errors#internal_error"
                  },
                  "request_id": "6f1c2a4e-1d2b-4c3a-9e8f-0a1b2c3d4e5f"
                }
              }
            }
          }
        }
      }
    },
    "schemas": {
      "ClientId": {
        "type": "string",
        "pattern": "^[A-Za-z0-9._:~-]{1,200}$",
        "description": "Letters, digits and `. _ : ~ -`, up to 200 characters."
      },
      "Language": {
        "type": "string",
        "enum": [
          "fr",
          "en"
        ]
      },
      "JobLanguage": {
        "type": "string",
        "enum": [
          "en",
          "fr",
          "de",
          "es",
          "pt"
        ],
        "description": "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."
      },
      "ErrorCode": {
        "type": "string",
        "enum": [
          "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"
        ],
        "description": "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."
      },
      "ErrorDetail": {
        "type": "object",
        "required": [
          "code",
          "message",
          "doc_url"
        ],
        "properties": {
          "code": {
            "$ref": "#/components/schemas/ErrorCode"
          },
          "message": {
            "type": "string",
            "description": "Readable explanation, for logs."
          },
          "param": {
            "type": "string",
            "description": "The field or parameter at fault, when there is one, such as `job.criteria` or `resumes[2].file`."
          },
          "doc_url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "Error": {
        "type": "object",
        "required": [
          "error",
          "request_id"
        ],
        "properties": {
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          },
          "request_id": {
            "type": "string",
            "description": "The call's id, also in the `HireLayer-Request-Id` header. Quote it when contacting support."
          }
        }
      },
      "CreditsUsed": {
        "type": "integer",
        "minimum": 0,
        "description": "Credits this call cost."
      },
      "DoNotStoreData": {
        "type": "boolean",
        "default": false,
        "description": "Enterprise plan only; below it the call is refused (`403 enterprise_plan_required`) before any work or credit.\n\nWhat is kept with `true`:\n- 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;\n- the candidate photo, when one is found: `face_url` works 10 minutes, and the image is deleted 30 days later;\n- the skill names read in the resume, alone (tied to no resume, call or account), kept to recognize them faster;\n- 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.\n\nNothing else: no file, text, parse, job, criterion or score, and no resume or job text in logs or error reports. Files are parsed under a neutral name, so even their names stay out of our logs.\n\nThe flag applies to one call. 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`): every call sent with that `HireLayer-Workspace` then runs without storage, whatever it sends.\n"
      },
      "WebhookUrl": {
        "type": "string",
        "format": "uri",
        "description": "HTTPS URL on the standard port, without credentials, that receives the result, signed."
      },
      "CriterionType": {
        "type": "string",
        "enum": [
          "skill",
          "experience",
          "education",
          "language",
          "certification",
          "location",
          "soft_skill",
          "other"
        ]
      },
      "Requirement": {
        "type": "string",
        "enum": [
          "required",
          "preferred",
          "bonus"
        ],
        "description": "`required`: a resume that clearly lacks it loses 25 % of its score, never eliminated outright. `preferred` and `bonus` count only through their weight."
      },
      "Weight": {
        "type": "integer",
        "minimum": 0,
        "maximum": 3,
        "description": "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."
      },
      "CriterionInput": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "label"
        ],
        "description": "A criterion in the format `POST /jobs/extract-criteria` returns. `criterion_id` and `source`, when sent back, are ignored: criteria are numbered `crit_1`, `crit_2`… in the order sent.",
        "properties": {
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "type": {
            "$ref": "#/components/schemas/CriterionType"
          },
          "requirement": {
            "$ref": "#/components/schemas/Requirement"
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "threshold": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 100,
            "description": "Minimum level in short text, such as `3 ans minimum`, `Bac+2` or `B2`."
          },
          "criterion_id": {
            "type": "string"
          },
          "source": {
            "type": "string"
          }
        }
      },
      "CriterionPatch": {
        "type": "object",
        "additionalProperties": false,
        "minProperties": 1,
        "properties": {
          "label": {
            "type": "string",
            "minLength": 1,
            "maxLength": 300
          },
          "type": {
            "$ref": "#/components/schemas/CriterionType"
          },
          "requirement": {
            "$ref": "#/components/schemas/Requirement"
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "threshold": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 100
          }
        }
      },
      "Criterion": {
        "type": "object",
        "required": [
          "criterion_id",
          "label",
          "type",
          "requirement",
          "weight",
          "threshold",
          "source"
        ],
        "properties": {
          "criterion_id": {
            "type": "string",
            "description": "Stable id in the job, such as `crit_2`. Never reused."
          },
          "label": {
            "type": "string"
          },
          "type": {
            "$ref": "#/components/schemas/CriterionType"
          },
          "requirement": {
            "$ref": "#/components/schemas/Requirement"
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "threshold": {
            "type": [
              "string",
              "null"
            ]
          },
          "source": {
            "type": "string",
            "enum": [
              "extracted",
              "custom"
            ],
            "description": "`extracted` by HireLayer, or `custom`: sent or edited by you."
          }
        }
      },
      "CriterionRef": {
        "type": "object",
        "required": [
          "criterion_id",
          "label"
        ],
        "properties": {
          "criterion_id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          }
        }
      },
      "ParseRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "file"
        ],
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "PDF, DOC, DOCX, ODT, PPT, PPTX, ODP, XLS, RTF, TXT, HTML, Markdown, JPG/JPEG, PNG or BMP, 4.5 MB at most."
          },
          "application_id": {
            "$ref": "#/components/schemas/ClientId"
          },
          "do_not_store_data": {
            "$ref": "#/components/schemas/DoNotStoreData"
          },
          "webhook_url": {
            "$ref": "#/components/schemas/WebhookUrl"
          }
        }
      },
      "ParseResult": {
        "type": "object",
        "required": [
          "application_id",
          "request_id",
          "stored",
          "already_stored",
          "resume",
          "warnings",
          "credits_used"
        ],
        "properties": {
          "application_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "The resume's id in the workspace, yours or derived from the file. `null` without storage."
          },
          "request_id": {
            "type": "string",
            "description": "Quote it when contacting support."
          },
          "stored": {
            "type": "boolean"
          },
          "already_stored": {
            "type": "boolean",
            "description": "The same file was already stored; it was not parsed again."
          },
          "resume": {
            "$ref": "#/components/schemas/ParsedResume"
          },
          "warnings": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Notes about skipped steps (OCR, photo, geocoding, occupation codes) or about a document that may not be a resume."
          },
          "credits_used": {
            "$ref": "#/components/schemas/CreditsUsed"
          }
        }
      },
      "HrFlowParseResult": {
        "type": "object",
        "description": "The body of HrFlow.ai's \"Parse a Resume in a Source\" with real-time parsing, filled from the same parse. A value HireLayer does not extract is `null` or an empty list, never estimated. Field by field: [Migrate from HrFlow.ai](https://hirelayer.co/api-docs/migrate-from-hrflow#fields).",
        "required": [
          "code",
          "message",
          "data"
        ],
        "properties": {
          "code": {
            "type": "integer",
            "enum": [
              201
            ]
          },
          "message": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "required": [
              "parsing",
              "profile"
            ],
            "properties": {
              "parsing": {
                "type": "object",
                "description": "HrFlow.ai's parsing object.",
                "additionalProperties": true
              },
              "profile": {
                "type": "object",
                "description": "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`.",
                "additionalProperties": true
              }
            }
          }
        }
      },
      "ParseAccepted": {
        "type": "object",
        "required": [
          "status",
          "request_id",
          "application_id",
          "webhook_url"
        ],
        "properties": {
          "status": {
            "type": "string",
            "const": "pending"
          },
          "request_id": {
            "type": "string"
          },
          "application_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "webhook_url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "ExtractCriteriaRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "text"
        ],
        "properties": {
          "text": {
            "type": "string",
            "minLength": 30,
            "maxLength": 50000,
            "description": "The full job description, as published."
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 300
          },
          "location": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 300,
            "description": "Where the job is based. Read by the extraction."
          },
          "language": {
            "$ref": "#/components/schemas/JobLanguage"
          },
          "job_id": {
            "$ref": "#/components/schemas/ClientId"
          },
          "do_not_store_data": {
            "$ref": "#/components/schemas/DoNotStoreData"
          }
        }
      },
      "ExtractCriteriaFileRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "file"
        ],
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "The job description as PDF, DOCX, TXT or HTML, 4.5 MB at most. A PDF of more than 50 pages, or one without a text layer (a scan), cannot be read (`422 job_unreadable`)."
          },
          "title": {
            "type": "string",
            "maxLength": 300
          },
          "location": {
            "type": "string",
            "maxLength": 300
          },
          "language": {
            "$ref": "#/components/schemas/JobLanguage"
          },
          "job_id": {
            "$ref": "#/components/schemas/ClientId"
          },
          "do_not_store_data": {
            "$ref": "#/components/schemas/DoNotStoreData"
          }
        }
      },
      "ExtractCriteriaResult": {
        "type": "object",
        "required": [
          "request_id",
          "job_id",
          "stored",
          "title",
          "location",
          "language",
          "criteria",
          "credits_used"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "description": "The call's id, also in the `HireLayer-Request-Id` header. Quote it when contacting support."
          },
          "job_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "`null` without storage."
          },
          "stored": {
            "type": "boolean"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "language": {
            "$ref": "#/components/schemas/JobLanguage"
          },
          "criteria": {
            "type": "array",
            "minItems": 1,
            "maxItems": 15,
            "items": {
              "$ref": "#/components/schemas/Criterion"
            },
            "description": "Usually 4 to 10, at most 15, numbered `crit_1`, `crit_2`… in order."
          },
          "credits_used": {
            "$ref": "#/components/schemas/CreditsUsed"
          }
        }
      },
      "JobFromFile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "file"
        ],
        "properties": {
          "file": {
            "type": "string",
            "description": "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_id": {
            "$ref": "#/components/schemas/ClientId",
            "description": "Store the job under your own id."
          },
          "criteria": {
            "type": "array",
            "minItems": 1,
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/CriterionInput"
            },
            "description": "The job's own criteria; they replace the extraction."
          },
          "title": {
            "type": "string",
            "maxLength": 300
          },
          "location": {
            "type": "string",
            "maxLength": 300
          },
          "language": {
            "$ref": "#/components/schemas/JobLanguage"
          }
        }
      },
      "JobFromText": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "text"
        ],
        "properties": {
          "text": {
            "type": "string",
            "minLength": 30,
            "maxLength": 50000,
            "description": "The job description."
          },
          "job_id": {
            "$ref": "#/components/schemas/ClientId",
            "description": "Store the job under your own id."
          },
          "criteria": {
            "type": "array",
            "minItems": 1,
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/CriterionInput"
            },
            "description": "The job's own criteria; they replace the extraction."
          },
          "title": {
            "type": "string",
            "maxLength": 300
          },
          "location": {
            "type": "string",
            "maxLength": 300
          },
          "language": {
            "$ref": "#/components/schemas/JobLanguage"
          }
        }
      },
      "JobFromId": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "job_id"
        ],
        "properties": {
          "job_id": {
            "$ref": "#/components/schemas/ClientId"
          }
        }
      },
      "ScoreJobInput": {
        "description": "Exactly one of `file`, `text` or `job_id`. `criteria` goes only with `file` or `text`; criteria alone are refused.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/JobFromFile"
          },
          {
            "$ref": "#/components/schemas/JobFromText"
          },
          {
            "$ref": "#/components/schemas/JobFromId"
          }
        ]
      },
      "ResumeFromFile": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "file"
        ],
        "properties": {
          "file": {
            "type": "string",
            "description": "Name of the multipart part that holds the resume file."
          },
          "application_id": {
            "$ref": "#/components/schemas/ClientId",
            "description": "Store the resume under your own id."
          },
          "reference": {
            "type": "string",
            "maxLength": 200,
            "description": "Your label, returned as is."
          }
        }
      },
      "ResumeFromText": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "text"
        ],
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50000,
            "description": "The resume as plain text."
          },
          "application_id": {
            "$ref": "#/components/schemas/ClientId",
            "description": "Store the resume under your own id."
          },
          "reference": {
            "type": "string",
            "maxLength": 200
          }
        }
      },
      "ResumeFromParsed": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "resume"
        ],
        "properties": {
          "resume": {
            "type": "object",
            "description": "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."
          },
          "application_id": {
            "$ref": "#/components/schemas/ClientId",
            "description": "Store the resume under your own id. Without one, its id is `text_` followed by the hash of its `info_resume.text`."
          },
          "reference": {
            "type": "string",
            "maxLength": 200
          }
        }
      },
      "ResumeFromId": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "application_id"
        ],
        "properties": {
          "application_id": {
            "$ref": "#/components/schemas/ClientId"
          },
          "reference": {
            "type": "string",
            "maxLength": 200
          }
        }
      },
      "ScoreResumeInput": {
        "description": "Exactly one of `file`, `text`, `resume` (the parsed resume JSON) or `application_id`, plus an optional `reference`.",
        "oneOf": [
          {
            "$ref": "#/components/schemas/ResumeFromFile"
          },
          {
            "$ref": "#/components/schemas/ResumeFromText"
          },
          {
            "$ref": "#/components/schemas/ResumeFromParsed"
          },
          {
            "$ref": "#/components/schemas/ResumeFromId"
          }
        ]
      },
      "ScoreRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "job",
          "resumes"
        ],
        "properties": {
          "job": {
            "$ref": "#/components/schemas/ScoreJobInput"
          },
          "resumes": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "items": {
              "$ref": "#/components/schemas/ScoreResumeInput"
            }
          },
          "precise_ranking": {
            "type": "boolean",
            "default": false,
            "description": "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."
          },
          "do_not_store_data": {
            "$ref": "#/components/schemas/DoNotStoreData"
          },
          "webhook_url": {
            "$ref": "#/components/schemas/WebhookUrl"
          }
        }
      },
      "ScoreMultipartRequest": {
        "type": "object",
        "required": [
          "request"
        ],
        "properties": {
          "request": {
            "$ref": "#/components/schemas/ScoreRequest"
          }
        },
        "additionalProperties": {
          "type": "string",
          "format": "binary",
          "description": "One part per file, named as the `file` fields of `request` cite it. A text part other than `request` is refused (`400`)."
        }
      },
      "ScoredJob": {
        "type": "object",
        "required": [
          "job_id",
          "stored",
          "title",
          "language",
          "criteria"
        ],
        "properties": {
          "job_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "`null` without storage."
          },
          "stored": {
            "type": "boolean"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "language": {
            "$ref": "#/components/schemas/JobLanguage"
          },
          "criteria": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Criterion"
            }
          }
        }
      },
      "Verdict": {
        "type": [
          "string",
          "null"
        ],
        "enum": [
          "highly_relevant",
          "relevant",
          "marginally_relevant",
          "not_relevant",
          null
        ],
        "description": "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.\n"
      },
      "CriterionResult": {
        "type": "object",
        "required": [
          "criterion_id",
          "label",
          "requirement",
          "weight",
          "status",
          "score",
          "gap",
          "confidence",
          "evidence",
          "explanation"
        ],
        "properties": {
          "criterion_id": {
            "type": "string"
          },
          "label": {
            "type": "string"
          },
          "requirement": {
            "$ref": "#/components/schemas/Requirement"
          },
          "weight": {
            "$ref": "#/components/schemas/Weight"
          },
          "status": {
            "type": "string",
            "enum": [
              "met",
              "partial",
              "missing",
              "unknown"
            ],
            "description": "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."
          },
          "score": {
            "type": [
              "number",
              "null"
            ],
            "enum": [
              0,
              0.33,
              0.67,
              1,
              null
            ],
            "description": "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."
          },
          "gap": {
            "type": [
              "string",
              "null"
            ],
            "enum": [
              "below_threshold",
              "related",
              "indirect",
              null
            ],
            "description": "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."
          },
          "confidence": {
            "type": "string",
            "enum": [
              "high",
              "medium",
              "low"
            ],
            "description": "A required criterion missing with `low` confidence does not lower the score."
          },
          "evidence": {
            "type": "string",
            "description": "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."
          },
          "explanation": {
            "type": "string",
            "description": "One sentence, in the job's language."
          }
        }
      },
      "Score": {
        "type": "object",
        "required": [
          "rank",
          "application_id",
          "reference",
          "file_name",
          "evaluation_status",
          "stale",
          "score",
          "required_missing",
          "to_verify",
          "error",
          "evaluated_at"
        ],
        "properties": {
          "rank": {
            "type": "integer",
            "minimum": 1,
            "description": "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."
          },
          "application_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "`null` without storage, and for a resume file that could not be read."
          },
          "reference": {
            "type": [
              "string",
              "null"
            ],
            "description": "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": {
            "type": [
              "string",
              "null"
            ],
            "description": "The name of the resume file sent to `POST /resumes/score`, given back as `reference` is."
          },
          "evaluation_status": {
            "type": "string",
            "enum": [
              "completed",
              "pending",
              "failed"
            ]
          },
          "stale": {
            "type": "boolean",
            "description": "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": {
            "type": [
              "number",
              "null"
            ],
            "minimum": 0,
            "maximum": 1,
            "description": "Rounded to 2 decimals; `null` until evaluated."
          },
          "verdict": {
            "$ref": "#/components/schemas/Verdict"
          },
          "summary": {
            "type": [
              "string",
              "null"
            ],
            "description": "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": {
            "type": "string",
            "description": "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": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriterionRef"
            },
            "description": "Required criteria marked `missing` with medium or high confidence; each multiplies the score by 0.75."
          },
          "to_verify": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriterionRef"
            },
            "description": "Required criteria not clearly met, to check with the candidate; those of `required_missing` included."
          },
          "criteria": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/CriterionResult"
            },
            "description": "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`."
          },
          "error": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ErrorDetail"
              },
              {
                "type": "null"
              }
            ],
            "description": "Why this resume failed, when `evaluation_status` is `failed`. It was not billed."
          },
          "evaluated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "ScoreResult": {
        "type": "object",
        "required": [
          "request_id",
          "job",
          "precise_ranking",
          "scores",
          "credits_used"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "description": "Quote it when contacting support."
          },
          "job": {
            "$ref": "#/components/schemas/ScoredJob"
          },
          "precise_ranking": {
            "type": "boolean"
          },
          "scores": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Score"
            }
          },
          "credits_used": {
            "$ref": "#/components/schemas/CreditsUsed"
          }
        }
      },
      "ScoreAccepted": {
        "type": "object",
        "required": [
          "status",
          "request_id",
          "job_id",
          "resumes_count",
          "webhook_url",
          "results_url"
        ],
        "properties": {
          "status": {
            "type": "string",
            "const": "pending"
          },
          "request_id": {
            "type": "string",
            "description": "Identifies this call in `results_url` and in the webhook."
          },
          "job_id": {
            "type": [
              "string",
              "null"
            ]
          },
          "resumes_count": {
            "type": "integer",
            "minimum": 1
          },
          "webhook_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri"
          },
          "results_url": {
            "type": [
              "string",
              "null"
            ],
            "format": "uri",
            "description": "With storage: `GET /jobs/{job_id}/scores?request_id=…`, the resumes of this call only. `null` without storage."
          }
        }
      },
      "SearchResumesRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "job_id": {
            "$ref": "#/components/schemas/ClientId"
          },
          "job": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "text"
            ],
            "properties": {
              "text": {
                "type": "string",
                "minLength": 30,
                "maxLength": 50000
              },
              "title": {
                "type": "string",
                "maxLength": 300
              },
              "job_id": {
                "$ref": "#/components/schemas/ClientId",
                "description": "Store the job under your own id."
              }
            },
            "description": "A job not stored yet; it is stored, as by `POST /jobs/extract-criteria`."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 500,
            "default": 50
          },
          "filters": {
            "type": "object",
            "additionalProperties": false,
            "properties": {
              "location": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "city"
                ],
                "description": "Resumes whose location is unknown are left out when this filter is set.",
                "properties": {
                  "city": {
                    "type": "string"
                  },
                  "country_code": {
                    "type": "string",
                    "pattern": "^[A-Z]{2}$",
                    "description": "ISO 3166-1 alpha-2, such as `FR`. Helps when a city name exists in several countries."
                  },
                  "radius_km": {
                    "type": "integer",
                    "minimum": 1,
                    "maximum": 500,
                    "default": 30
                  }
                }
              },
              "added_after": {
                "type": "string",
                "format": "date-time"
              }
            }
          },
          "do_not_store_data": {
            "$ref": "#/components/schemas/DoNotStoreData"
          }
        },
        "oneOf": [
          {
            "required": [
              "job_id"
            ]
          },
          {
            "required": [
              "job"
            ]
          }
        ]
      },
      "SearchResumesResult": {
        "type": "object",
        "required": [
          "request_id",
          "job_id",
          "results",
          "credits_used"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "description": "The call's id, also in the `HireLayer-Request-Id` header. Quote it when contacting support."
          },
          "job_id": {
            "type": "string"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "rank",
                "application_id",
                "similarity",
                "already_scored"
              ],
              "properties": {
                "rank": {
                  "type": "integer",
                  "minimum": 1
                },
                "application_id": {
                  "type": "string"
                },
                "similarity": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1,
                  "description": "Proximity to the job. Compare it only within one search; it is not a score."
                },
                "already_scored": {
                  "type": "boolean",
                  "description": "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": {
            "$ref": "#/components/schemas/CreditsUsed"
          }
        }
      },
      "SearchJobsRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "application_id": {
            "$ref": "#/components/schemas/ClientId"
          },
          "resume": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "text"
            ],
            "properties": {
              "text": {
                "type": "string",
                "minLength": 1,
                "maxLength": 50000
              },
              "application_id": {
                "$ref": "#/components/schemas/ClientId",
                "description": "Store the resume under your own id."
              }
            },
            "description": "A resume not stored yet; it is stored under your id, or a `text_` id."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 10
          },
          "do_not_store_data": {
            "$ref": "#/components/schemas/DoNotStoreData"
          }
        },
        "oneOf": [
          {
            "required": [
              "application_id"
            ]
          },
          {
            "required": [
              "resume"
            ]
          }
        ]
      },
      "SearchJobsFileRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "file"
        ],
        "properties": {
          "file": {
            "type": "string",
            "format": "binary"
          },
          "application_id": {
            "$ref": "#/components/schemas/ClientId",
            "description": "Store the resume under your own id."
          },
          "limit": {
            "type": "integer",
            "minimum": 1,
            "maximum": 100,
            "default": 10
          },
          "do_not_store_data": {
            "$ref": "#/components/schemas/DoNotStoreData"
          }
        }
      },
      "SearchJobsResult": {
        "type": "object",
        "required": [
          "request_id",
          "application_id",
          "results",
          "credits_used"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "description": "The call's id, also in the `HireLayer-Request-Id` header. Quote it when contacting support."
          },
          "application_id": {
            "type": "string"
          },
          "results": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "rank",
                "job_id",
                "title",
                "similarity",
                "already_scored"
              ],
              "properties": {
                "rank": {
                  "type": "integer",
                  "minimum": 1
                },
                "job_id": {
                  "type": "string"
                },
                "title": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "similarity": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                },
                "already_scored": {
                  "type": "boolean",
                  "description": "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": {
            "$ref": "#/components/schemas/CreditsUsed"
          }
        }
      },
      "NormalizeSkillsRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "text"
        ],
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 5000
          },
          "language": {
            "$ref": "#/components/schemas/Language"
          }
        }
      },
      "StoredResume": {
        "type": "object",
        "required": [
          "application_id",
          "workspace",
          "text",
          "resume",
          "job_ids",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "application_id": {
            "type": "string"
          },
          "workspace": {
            "type": "string"
          },
          "file_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the file the resume was parsed from, as sent. `null` for a resume sent as a text or a parsed JSON."
          },
          "text": {
            "type": "string",
            "description": "The resume's plain text."
          },
          "resume": {
            "oneOf": [
              {
                "$ref": "#/components/schemas/ParsedResume"
              },
              {
                "type": "null"
              }
            ],
            "description": "The structured resume, `null` when only plain text was stored."
          },
          "job_ids": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Jobs the resume was scored against."
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "StoredResumeSummary": {
        "type": "object",
        "required": [
          "application_id",
          "file_name",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "application_id": {
            "type": "string"
          },
          "file_name": {
            "type": [
              "string",
              "null"
            ],
            "description": "Name of the file the resume was parsed from, as sent. `null` for a resume sent as a text or a parsed JSON."
          },
          "candidate_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "job_title": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "StoredResumeList": {
        "type": "object",
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/StoredResumeSummary"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "PutResumeRequest": {
        "type": "object",
        "additionalProperties": false,
        "description": "Exactly one of `text` or `resume`.",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 1,
            "maxLength": 50000,
            "description": "The resume as plain text."
          },
          "resume": {
            "type": "object",
            "description": "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`)."
          }
        },
        "oneOf": [
          {
            "required": [
              "text"
            ]
          },
          {
            "required": [
              "resume"
            ]
          }
        ]
      },
      "JobStatus": {
        "type": "string",
        "enum": [
          "open",
          "closed"
        ],
        "description": "Only open jobs are found by `POST /jobs/search`."
      },
      "Job": {
        "type": "object",
        "required": [
          "job_id",
          "workspace",
          "title",
          "text",
          "location",
          "language",
          "status",
          "criteria",
          "scores_count",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "job_id": {
            "type": "string"
          },
          "workspace": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ]
          },
          "text": {
            "type": "string",
            "description": "The job description."
          },
          "location": {
            "type": [
              "string",
              "null"
            ]
          },
          "language": {
            "$ref": "#/components/schemas/JobLanguage"
          },
          "status": {
            "$ref": "#/components/schemas/JobStatus"
          },
          "criteria": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Criterion"
            }
          },
          "scores_count": {
            "type": "integer",
            "minimum": 0
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "updated_at": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "JobList": {
        "type": "object",
        "required": [
          "data",
          "next_cursor"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Job"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "PutJobRequest": {
        "type": "object",
        "additionalProperties": false,
        "description": "A field left out keeps its stored value; `text` is required to create the job.",
        "properties": {
          "text": {
            "type": "string",
            "minLength": 30,
            "maxLength": 50000,
            "description": "The job description. Required to create the job."
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 300,
            "description": "`null` erases it."
          },
          "location": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 300,
            "description": "`null` erases it."
          },
          "status": {
            "$ref": "#/components/schemas/JobStatus"
          },
          "language": {
            "$ref": "#/components/schemas/JobLanguage"
          },
          "criteria": {
            "type": "array",
            "minItems": 1,
            "maxItems": 20,
            "items": {
              "$ref": "#/components/schemas/CriterionInput"
            }
          },
          "recompute_criteria": {
            "type": "boolean",
            "default": false,
            "description": "Extract the criteria again from `text`. Not with `criteria`."
          }
        }
      },
      "StoredScoreList": {
        "type": "object",
        "required": [
          "job_id",
          "weights_used",
          "precise_ranking",
          "credits_used",
          "data",
          "next_cursor"
        ],
        "properties": {
          "job_id": {
            "type": "string"
          },
          "weights_used": {
            "type": "object",
            "additionalProperties": {
              "$ref": "#/components/schemas/Weight"
            },
            "description": "The weight of each criterion in this ranking, overrides included."
          },
          "precise_ranking": {
            "type": "boolean"
          },
          "credits_used": {
            "$ref": "#/components/schemas/CreditsUsed"
          },
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Score"
            }
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ]
          }
        }
      },
      "Workspace": {
        "type": "object",
        "required": [
          "workspace_id",
          "name",
          "do_not_store_data",
          "jobs_count",
          "resumes_count",
          "created_at"
        ],
        "properties": {
          "workspace_id": {
            "type": "string"
          },
          "name": {
            "type": [
              "string",
              "null"
            ]
          },
          "do_not_store_data": {
            "type": "boolean",
            "description": "Every call of this workspace runs without storage."
          },
          "jobs_count": {
            "type": "integer",
            "minimum": 0
          },
          "resumes_count": {
            "type": "integer",
            "minimum": 0
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          }
        }
      },
      "WorkspaceList": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Workspace"
            }
          }
        }
      },
      "PutWorkspaceRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200
          },
          "do_not_store_data": {
            "type": "boolean",
            "description": "Enterprise plan only. Impose the no-storage mode on every call of this workspace."
          }
        }
      },
      "Account": {
        "type": "object",
        "required": [
          "account",
          "credits"
        ],
        "properties": {
          "account": {
            "type": "object",
            "required": [
              "email",
              "plan"
            ],
            "properties": {
              "email": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "plan": {
                "type": "string",
                "enum": [
                  "free",
                  "starter",
                  "scale",
                  "pay_as_you_go",
                  "enterprise"
                ]
              }
            }
          },
          "credits": {
            "type": "object",
            "required": [
              "available",
              "unlimited"
            ],
            "properties": {
              "available": {
                "type": [
                  "integer",
                  "null"
                ],
                "description": "`null` on an unlimited plan."
              },
              "unlimited": {
                "type": "boolean"
              }
            }
          }
        }
      },
      "Health": {
        "type": "object",
        "required": [
          "status",
          "service",
          "timestamp"
        ],
        "properties": {
          "status": {
            "type": "string",
            "const": "healthy"
          },
          "service": {
            "type": "string"
          },
          "timestamp": {
            "type": "string",
            "format": "date-time"
          }
        }
      },
      "ParseWebhookEvent": {
        "type": "object",
        "required": [
          "event_id",
          "event",
          "created_at",
          "request_id",
          "workspace"
        ],
        "properties": {
          "event_id": {
            "type": "string",
            "description": "Unique per event, the same on every retry."
          },
          "event": {
            "type": "string",
            "enum": [
              "resume.parsed",
              "resume.parse_failed"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string",
            "description": "The `request_id` of the `202`."
          },
          "workspace": {
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/ParseResult"
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDetail"
          }
        }
      },
      "ScoreWebhookEvent": {
        "type": "object",
        "required": [
          "event_id",
          "event",
          "created_at",
          "request_id",
          "workspace"
        ],
        "description": "`data` with `scores.completed`, `error` with `scores.failed`.",
        "properties": {
          "event_id": {
            "type": "string",
            "description": "Unique per event, the same on every retry."
          },
          "event": {
            "type": "string",
            "enum": [
              "scores.completed",
              "scores.failed"
            ]
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          },
          "request_id": {
            "type": "string",
            "description": "The `request_id` of the `202`."
          },
          "workspace": {
            "type": "string"
          },
          "data": {
            "$ref": "#/components/schemas/ScoreResult"
          },
          "error": {
            "$ref": "#/components/schemas/ErrorDetail",
            "description": "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."
          }
        }
      },
      "ParsedResume": {
        "type": "object",
        "properties": {
          "info_resume": {
            "title": "ResumeInfo",
            "description": "The document.",
            "type": "object",
            "properties": {
              "date_parsing": {
                "description": "Parsing time in UTC, `YYYY-MM-DDTHH:mm:ss`, without a zone suffix.",
                "type": "string"
              },
              "language": {
                "description": "Main language of the resume, uppercase ISO 639-1 code such as `EN` or `FR`.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "url": {
                "description": "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.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "face_url": {
                "description": "Candidate photo cropped from the resume. `null` when no face is found and for `.txt` files.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "face_url_expires_at": {
                "description": "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.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "text": {
                "description": "Full extracted text, including OCR. May end with `[EXTRACTED_HYPERLINKS]` and `[PDF_ANNOTATION_TEXTS]` sections.",
                "type": "string"
              }
            },
            "required": [
              "date_parsing",
              "language",
              "url",
              "face_url",
              "face_url_expires_at",
              "text"
            ]
          },
          "info_candidate": {
            "title": "Candidate",
            "description": "The candidate profile.",
            "type": "object",
            "properties": {
              "full_name": {
                "description": "First and last name.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_name": {
                "description": "Last name.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "first_name": {
                "description": "First name.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "description": "Lower-cased email address.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone_number": {
                "description": "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.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "birth_date": {
                "description": "Date of birth, `YYYY-MM-DD`. A year alone becomes `YYYY-01-01`.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "age": {
                "description": "Age in years, as stated or inferred.",
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "availability_now": {
                "description": "Whether the candidate is available now.",
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "availability_date": {
                "description": "Date from which the candidate is available, `YYYY-MM-DD`.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "driver_license": {
                "description": "Driving licences as written, e.g. `Driving licence B`.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "job_title": {
                "description": "Target or current job title. Falls back to the most recent position.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "education_name": {
                "description": "Highest qualification relevant to the job title.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "education_level": {
                "description": "Highest European Qualifications Framework (EQF) level.",
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "Level 1",
                      "Level 2",
                      "Level 3",
                      "Level 4",
                      "Level 5",
                      "Level 6",
                      "Level 7",
                      "Level 8",
                      "Other"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "experience_level": {
                "description": "Total professional experience bracket.",
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "0 to 1 year",
                      "1 to 3 years",
                      "3 to 5 years",
                      "5 to 10 years",
                      "More than 10 years"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "linkedin_url": {
                "description": "LinkedIn profile URL.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "github_url": {
                "description": "GitHub profile URL.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "other_urls": {
                "description": "Other URLs in the resume (portfolio, website…).",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "location": {
                "title": "Location",
                "description": "Where the candidate lives.",
                "type": "object",
                "properties": {
                  "country": {
                    "description": "Country name.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "country_code": {
                    "description": "ISO 3166-1 alpha-2 country code, e.g. `FR`.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "region": {
                    "description": "Region.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "department": {
                    "description": "Department or county.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "city": {
                    "description": "City.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "postal_code": {
                    "description": "Postal code.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "full_address": {
                    "description": "Address as a single line.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "latitude": {
                    "description": "Latitude from geocoding.",
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "longitude": {
                    "description": "Longitude from geocoding.",
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "country",
                  "country_code",
                  "region",
                  "department",
                  "city",
                  "postal_code",
                  "full_address",
                  "latitude",
                  "longitude"
                ]
              },
              "mobility": {
                "title": "Mobility",
                "description": "Where else the candidate can work.",
                "type": "object",
                "properties": {
                  "can_work_in_other_cities": {
                    "description": "Whether the resume says the candidate can work elsewhere. `null` when not mentioned.",
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "other_cities": {
                    "description": "Cities explicitly named as possible work locations.",
                    "type": "array",
                    "items": {
                      "title": "MobilityCity",
                      "type": "object",
                      "properties": {
                        "city": {
                          "description": "City named in the resume.",
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "country": {
                          "description": "Country, when stated or reliably inferred.",
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "postal_code": {
                          "description": "Postal code, when present in the resume.",
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "latitude": {
                          "description": "Latitude from geocoding.",
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "longitude": {
                          "description": "Longitude from geocoding.",
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "city",
                        "country",
                        "postal_code",
                        "latitude",
                        "longitude"
                      ]
                    }
                  }
                },
                "required": [
                  "can_work_in_other_cities",
                  "other_cities"
                ]
              }
            },
            "required": [
              "full_name",
              "last_name",
              "first_name",
              "email",
              "phone_number",
              "birth_date",
              "age",
              "availability_now",
              "availability_date",
              "driver_license",
              "job_title",
              "education_name",
              "education_level",
              "experience_level",
              "linkedin_url",
              "github_url",
              "other_urls",
              "location",
              "mobility"
            ]
          },
          "work_experiences": {
            "type": "array",
            "items": {
              "title": "WorkExperience",
              "type": "object",
              "properties": {
                "company_name": {
                  "description": "Employer name.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "job_title": {
                  "description": "Job title for this position.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "description": "Tasks, responsibilities and achievements.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "contract_type": {
                  "description": "Canonical contract type. Unrecognized values become `Other`.",
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "Permanent contract",
                        "Fixed-term contract",
                        "Temporary assignment",
                        "Internship",
                        "Apprenticeship",
                        "Freelance",
                        "Volunteering",
                        "Other"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "start_date": {
                  "description": "Start date, `YYYY-MM-DD`. A year alone becomes `YYYY-01-01`; a month alone, its first day.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "end_date": {
                  "description": "End date, `YYYY-MM-DD`. `null` for an ongoing role. A year alone becomes `YYYY-12-31`; a month alone, its last day.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "currently_active": {
                  "description": "Whether this is a current position.",
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "work_experience_country": {
                  "description": "Country of the position.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "work_experience_country_code": {
                  "description": "ISO 3166-1 alpha-2 country code.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "work_experience_city": {
                  "description": "City of the position.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "work_experience_postal_code": {
                  "description": "Postal code of the position.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "experience_duration": {
                  "description": "Duration of this position in months, as extracted.",
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "company_name",
                "job_title",
                "description",
                "contract_type",
                "start_date",
                "end_date",
                "currently_active",
                "work_experience_country",
                "work_experience_country_code",
                "work_experience_city",
                "work_experience_postal_code",
                "experience_duration"
              ]
            }
          },
          "educations": {
            "type": "array",
            "items": {
              "title": "Education",
              "type": "object",
              "properties": {
                "degree_title": {
                  "description": "Name of the degree or programme.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "school_name": {
                  "description": "School or institution.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "description": "Details of the programme.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "degree_type": {
                  "description": "EQF level of the degree, expected to be one of `Level 1`…`Level 8` or `Other`. Not normalized: treat other strings as `Other`.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "start_date": {
                  "description": "Start date, `YYYY-MM-DD`.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "end_date": {
                  "description": "End date, `YYYY-MM-DD`.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "currently_active": {
                  "description": "Whether the programme is in progress.",
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "location": {
                  "title": "EducationLocation",
                  "description": "Location of the school.",
                  "type": "object",
                  "properties": {
                    "country": {
                      "description": "Country name.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "country_code": {
                      "description": "ISO 3166-1 alpha-2 country code, e.g. `FR`.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "region": {
                      "description": "Region.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "department": {
                      "description": "Department or county.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "city": {
                      "description": "City.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "postal_code": {
                      "description": "Postal code.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "full_address": {
                      "description": "Address as a single line.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "country",
                    "country_code",
                    "region",
                    "department",
                    "city",
                    "postal_code",
                    "full_address"
                  ]
                }
              },
              "required": [
                "degree_title",
                "school_name",
                "description",
                "degree_type",
                "start_date",
                "end_date",
                "currently_active",
                "location"
              ]
            }
          },
          "rome_jobs": {
            "description": "Occupations predicted from `info_candidate.job_title` with the French ROME taxonomy.",
            "type": "array",
            "items": {
              "title": "RomeJob",
              "type": "object",
              "properties": {
                "job_title": {
                  "description": "Occupation label, in French.",
                  "type": "string"
                },
                "job_code": {
                  "description": "Occupation (appellation) code.",
                  "type": "string"
                },
                "rome_title": {
                  "description": "ROME job family label, in French.",
                  "type": "string"
                },
                "rome_code": {
                  "description": "ROME code, e.g. `M1805`.",
                  "type": "string"
                },
                "prediction_score": {
                  "description": "Confidence between 0.7 and 1.",
                  "type": "number"
                }
              },
              "required": [
                "job_title",
                "job_code",
                "rome_title",
                "rome_code",
                "prediction_score"
              ]
            }
          },
          "languages": {
            "type": "array",
            "items": {
              "title": "Language",
              "type": "object",
              "properties": {
                "language": {
                  "description": "Language name as written in the resume.",
                  "type": "string"
                },
                "level": {
                  "description": "CEFR-based proficiency, or `null` when not stated.",
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "Native or Bilingual (C2)",
                        "Full Professional Proficiency (C1)",
                        "Professional Working Proficiency (B2)",
                        "Limited Working Proficiency (B1)",
                        "Advanced Basic Proficiency (A2)",
                        "Introductory Proficiency (A1)"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "language",
                "level"
              ]
            }
          },
          "skills": {
            "type": "array",
            "items": {
              "title": "Skill",
              "type": "object",
              "properties": {
                "skill_title": {
                  "description": "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`).",
                  "type": "string"
                },
                "skill_type": {
                  "type": "string",
                  "enum": [
                    "Hard skill",
                    "Soft skill",
                    "Software skill"
                  ]
                },
                "status": {
                  "description": "`normalized`: resolved to the [HireLayer Skills taxonomy](https://hirelayer.co/api-docs/skills.md). `raw`: kept as written in the resume.",
                  "type": "string",
                  "enum": [
                    "normalized",
                    "raw"
                  ]
                },
                "domain": {
                  "description": "Primary domain of the taxonomy skill, in the language of `skill_title`. `null` when `status` is `raw`.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "subcategory": {
                  "description": "Primary family of the taxonomy skill, in the language of `skill_title`. `null` when `status` is `raw`.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "skill_title",
                "skill_type",
                "status",
                "domain",
                "subcategory"
              ]
            }
          },
          "certifications": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "interests": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "required": [
          "info_resume",
          "info_candidate",
          "work_experiences",
          "educations",
          "rome_jobs",
          "languages",
          "skills",
          "certifications",
          "interests"
        ],
        "description": "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.",
        "title": "ParsedResume"
      },
      "NormalizeSkillsResult": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "description": "The call's id, also in the `HireLayer-Request-Id` header. Quote it when contacting support."
          },
          "language": {
            "description": "Language of the names returned.",
            "type": "string",
            "enum": [
              "fr",
              "en"
            ]
          },
          "skills": {
            "description": "Taxonomy skills named in the text, in the order of the text.",
            "type": "array",
            "items": {
              "title": "ResolvedSkill",
              "type": "object",
              "properties": {
                "id": {
                  "description": "Stable skill id, e.g. `excel`. Store and filter on it.",
                  "type": "string"
                },
                "name": {
                  "description": "Canonical name in the requested language.",
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "hard",
                    "software",
                    "certification",
                    "soft",
                    "language"
                  ]
                },
                "families": {
                  "description": "Families of the skill, the primary one first.",
                  "type": "array",
                  "items": {
                    "title": "SkillFamilyRef",
                    "type": "object",
                    "properties": {
                      "id": {
                        "description": "Stable family id, e.g. `office_software`.",
                        "type": "string"
                      },
                      "name": {
                        "description": "Family name in the requested language.",
                        "type": "string"
                      },
                      "domain_id": {
                        "description": "Id of the domain the family belongs to.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "domain_id"
                    ]
                  }
                },
                "domains": {
                  "description": "Domains of those families, the primary one first.",
                  "type": "array",
                  "items": {
                    "title": "SkillDomainRef",
                    "type": "object",
                    "properties": {
                      "id": {
                        "description": "Stable domain id, e.g. `data_ai`.",
                        "type": "string"
                      },
                      "name": {
                        "description": "Domain name in the requested language.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name"
                    ]
                  }
                },
                "broader": {
                  "description": "A more general skill to widen a search to (Excel → Microsoft Office), or `null`.",
                  "anyOf": [
                    {
                      "title": "BroaderSkill",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "mention": {
                  "description": "The part of the text the skill was found in.",
                  "type": "string"
                }
              },
              "required": [
                "id",
                "name",
                "type",
                "families",
                "domains",
                "broader",
                "mention"
              ]
            }
          },
          "unresolved": {
            "description": "Parts of the text that match no taxonomy skill.",
            "type": "array",
            "items": {
              "title": "UnresolvedSkill",
              "type": "object",
              "properties": {
                "text": {
                  "description": "Part of the text matching no skill.",
                  "type": "string"
                },
                "family_hints": {
                  "description": "Families it probably belongs to, possibly none. No skill is guessed.",
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "name": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name"
                    ]
                  }
                }
              },
              "required": [
                "text",
                "family_hints"
              ]
            }
          },
          "taxonomy_version": {
            "description": "Taxonomy version (`v1`, `v2`…). Results stored with an older version should be resolved again.",
            "type": "string"
          },
          "credits_used": {
            "$ref": "#/components/schemas/CreditsUsed"
          }
        },
        "required": [
          "language",
          "skills",
          "unresolved",
          "taxonomy_version",
          "credits_used"
        ],
        "description": "Skills found in the text."
      },
      "SkillsTaxonomy": {
        "type": "object",
        "properties": {
          "request_id": {
            "type": "string",
            "description": "The call's id, also in the `HireLayer-Request-Id` header. Quote it when contacting support."
          },
          "language": {
            "description": "Language of the names returned.",
            "type": "string",
            "enum": [
              "fr",
              "en"
            ]
          },
          "total": {
            "description": "Number of skills in the taxonomy.",
            "type": "integer"
          },
          "skills": {
            "description": "The whole taxonomy, most frequent in resumes first. There is no pagination.",
            "type": "array",
            "items": {
              "title": "TaxonomySkill",
              "type": "object",
              "properties": {
                "id": {
                  "description": "Stable skill id, e.g. `excel`. Store and filter on it.",
                  "type": "string"
                },
                "name": {
                  "description": "Canonical name in the requested language.",
                  "type": "string"
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "hard",
                    "software",
                    "certification",
                    "soft",
                    "language"
                  ]
                },
                "families": {
                  "description": "Families of the skill, the primary one first.",
                  "type": "array",
                  "items": {
                    "title": "SkillFamilyRef",
                    "type": "object",
                    "properties": {
                      "id": {
                        "description": "Stable family id, e.g. `office_software`.",
                        "type": "string"
                      },
                      "name": {
                        "description": "Family name in the requested language.",
                        "type": "string"
                      },
                      "domain_id": {
                        "description": "Id of the domain the family belongs to.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name",
                      "domain_id"
                    ]
                  }
                },
                "domains": {
                  "description": "Domains of those families, the primary one first.",
                  "type": "array",
                  "items": {
                    "title": "SkillDomainRef",
                    "type": "object",
                    "properties": {
                      "id": {
                        "description": "Stable domain id, e.g. `data_ai`.",
                        "type": "string"
                      },
                      "name": {
                        "description": "Domain name in the requested language.",
                        "type": "string"
                      }
                    },
                    "required": [
                      "id",
                      "name"
                    ]
                  }
                },
                "broader": {
                  "description": "A more general skill to widen a search to (Excel → Microsoft Office), or `null`.",
                  "anyOf": [
                    {
                      "title": "BroaderSkill",
                      "type": "object",
                      "properties": {
                        "id": {
                          "type": "string"
                        },
                        "name": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "id",
                        "name"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "id",
                "name",
                "type",
                "families",
                "domains",
                "broader"
              ]
            }
          },
          "taxonomy_version": {
            "description": "Taxonomy version (`v1`, `v2`…). Results stored with an older version should be resolved again.",
            "type": "string"
          },
          "credits_used": {
            "$ref": "#/components/schemas/CreditsUsed"
          }
        },
        "required": [
          "language",
          "total",
          "skills",
          "taxonomy_version",
          "credits_used"
        ],
        "description": "The taxonomy (first two of 11,061 skills shown)."
      },
      "GatewayError": {
        "type": "object",
        "description": "Error returned by the HireLayer gateway (authentication, credits, CV Extract).",
        "properties": {
          "error": {
            "type": "string",
            "description": "Human-readable message."
          },
          "code": {
            "type": "string",
            "description": "Machine-readable code (CV Extract errors only).",
            "enum": [
              "UNSUPPORTED_OUTPUT_FORMAT",
              "INVALID_MULTIPART_BODY",
              "INVALID_FILE",
              "ENTERPRISE_PLAN_REQUIRED",
              "DOCUMENT_NOT_A_RESUME",
              "DOCUMENT_TEXT_EMPTY",
              "DOCUMENT_UNREADABLE",
              "DOCUMENT_TOO_LARGE",
              "PARSER_UNAVAILABLE"
            ]
          },
          "availableCredits": {
            "type": "integer",
            "description": "Current balance, on `403` from `/api/v1` endpoints."
          }
        },
        "required": [
          "error"
        ]
      },
      "ParseResumeV3Request": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "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": {
            "description": "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).",
            "type": "string"
          },
          "webhook_url": {
            "description": "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).",
            "type": "string",
            "format": "uri"
          },
          "do_not_store_data": {
            "description": "`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).",
            "type": "string",
            "enum": [
              "true",
              "false"
            ]
          }
        },
        "required": [
          "file"
        ]
      },
      "ParseResumeV3Response": {
        "type": "object",
        "properties": {
          "status": {
            "description": "Always `success` on HTTP 200.",
            "type": "string",
            "const": "success"
          },
          "upstream_status": {
            "description": "Present when an optional step was skipped or the document is not a resume (see `warnings`). The data is still usable.",
            "type": "string",
            "const": "partial"
          },
          "request_id": {
            "description": "Unique request ID. Quote it when contacting support.",
            "type": "string"
          },
          "warnings": {
            "description": "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.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "errors": {
            "description": "Always empty on HTTP 200. Failures use non-2xx statuses.",
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "info_resume": {
            "title": "ResumeInfo",
            "description": "The document.",
            "type": "object",
            "properties": {
              "application_id": {
                "description": "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).",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "date_parsing": {
                "description": "Parsing time in UTC, `YYYY-MM-DDTHH:mm:ss`, without a zone suffix.",
                "type": "string"
              },
              "language": {
                "description": "Main language of the resume, uppercase ISO 639-1 code such as `EN` or `FR`.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "url": {
                "description": "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.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "face_url": {
                "description": "Candidate photo cropped from the resume. `null` when no face is found and for `.txt` files.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "face_url_expires_at": {
                "description": "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.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "text": {
                "description": "Full extracted text, including OCR. May end with `[EXTRACTED_HYPERLINKS]` and `[PDF_ANNOTATION_TEXTS]` sections.",
                "type": "string"
              }
            },
            "required": [
              "application_id",
              "date_parsing",
              "language",
              "url",
              "face_url",
              "face_url_expires_at",
              "text"
            ]
          },
          "info_candidate": {
            "title": "Candidate",
            "description": "The candidate profile.",
            "type": "object",
            "properties": {
              "full_name": {
                "description": "First and last name.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "last_name": {
                "description": "Last name.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "first_name": {
                "description": "First name.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "email": {
                "description": "Lower-cased email address.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "phone_number": {
                "description": "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.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "birth_date": {
                "description": "Date of birth, `YYYY-MM-DD`. A year alone becomes `YYYY-01-01`.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "age": {
                "description": "Age in years, as stated or inferred.",
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "availability_now": {
                "description": "Whether the candidate is available now.",
                "anyOf": [
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "availability_date": {
                "description": "Date from which the candidate is available, `YYYY-MM-DD`.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "driver_license": {
                "description": "Driving licences as written, e.g. `Driving licence B`.",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "job_title": {
                "description": "Target or current job title. Falls back to the most recent position.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "education_name": {
                "description": "Highest qualification relevant to the job title.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "education_level": {
                "description": "Highest European Qualifications Framework (EQF) level.",
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "Level 1",
                      "Level 2",
                      "Level 3",
                      "Level 4",
                      "Level 5",
                      "Level 6",
                      "Level 7",
                      "Level 8",
                      "Other"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "experience_level": {
                "description": "Total professional experience bracket.",
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "0 to 1 year",
                      "1 to 3 years",
                      "3 to 5 years",
                      "5 to 10 years",
                      "More than 10 years"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "linkedin_url": {
                "description": "LinkedIn profile URL.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "github_url": {
                "description": "GitHub profile URL.",
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "other_urls": {
                "description": "Other URLs in the resume (portfolio, website…).",
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "location": {
                "title": "Location",
                "description": "Where the candidate lives.",
                "type": "object",
                "properties": {
                  "country": {
                    "description": "Country name.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "country_code": {
                    "description": "ISO 3166-1 alpha-2 country code, e.g. `FR`.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "region": {
                    "description": "Region.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "department": {
                    "description": "Department or county.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "city": {
                    "description": "City.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "postal_code": {
                    "description": "Postal code.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "full_address": {
                    "description": "Address as a single line.",
                    "anyOf": [
                      {
                        "type": "string"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "latitude": {
                    "description": "Latitude from geocoding.",
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "longitude": {
                    "description": "Longitude from geocoding.",
                    "anyOf": [
                      {
                        "type": "number"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  }
                },
                "required": [
                  "country",
                  "country_code",
                  "region",
                  "department",
                  "city",
                  "postal_code",
                  "full_address",
                  "latitude",
                  "longitude"
                ]
              },
              "mobility": {
                "title": "Mobility",
                "description": "Where else the candidate can work.",
                "type": "object",
                "properties": {
                  "can_work_in_other_cities": {
                    "description": "Whether the resume says the candidate can work elsewhere. `null` when not mentioned.",
                    "anyOf": [
                      {
                        "type": "boolean"
                      },
                      {
                        "type": "null"
                      }
                    ]
                  },
                  "other_cities": {
                    "description": "Cities explicitly named as possible work locations.",
                    "type": "array",
                    "items": {
                      "title": "MobilityCity",
                      "type": "object",
                      "properties": {
                        "city": {
                          "description": "City named in the resume.",
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "country": {
                          "description": "Country, when stated or reliably inferred.",
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "postal_code": {
                          "description": "Postal code, when present in the resume.",
                          "anyOf": [
                            {
                              "type": "string"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "latitude": {
                          "description": "Latitude from geocoding.",
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        },
                        "longitude": {
                          "description": "Longitude from geocoding.",
                          "anyOf": [
                            {
                              "type": "number"
                            },
                            {
                              "type": "null"
                            }
                          ]
                        }
                      },
                      "required": [
                        "city",
                        "country",
                        "postal_code",
                        "latitude",
                        "longitude"
                      ]
                    }
                  }
                },
                "required": [
                  "can_work_in_other_cities",
                  "other_cities"
                ]
              }
            },
            "required": [
              "full_name",
              "last_name",
              "first_name",
              "email",
              "phone_number",
              "birth_date",
              "age",
              "availability_now",
              "availability_date",
              "driver_license",
              "job_title",
              "education_name",
              "education_level",
              "experience_level",
              "linkedin_url",
              "github_url",
              "other_urls",
              "location",
              "mobility"
            ]
          },
          "work_experiences": {
            "type": "array",
            "items": {
              "title": "WorkExperience",
              "type": "object",
              "properties": {
                "company_name": {
                  "description": "Employer name.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "job_title": {
                  "description": "Job title for this position.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "description": "Tasks, responsibilities and achievements.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "contract_type": {
                  "description": "Canonical contract type. Unrecognized values become `Other`.",
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "Permanent contract",
                        "Fixed-term contract",
                        "Temporary assignment",
                        "Internship",
                        "Apprenticeship",
                        "Freelance",
                        "Volunteering",
                        "Other"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "start_date": {
                  "description": "Start date, `YYYY-MM-DD`. A year alone becomes `YYYY-01-01`; a month alone, its first day.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "end_date": {
                  "description": "End date, `YYYY-MM-DD`. `null` for an ongoing role. A year alone becomes `YYYY-12-31`; a month alone, its last day.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "currently_active": {
                  "description": "Whether this is a current position.",
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "work_experience_country": {
                  "description": "Country of the position.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "work_experience_country_code": {
                  "description": "ISO 3166-1 alpha-2 country code.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "work_experience_city": {
                  "description": "City of the position.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "work_experience_postal_code": {
                  "description": "Postal code of the position.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "experience_duration": {
                  "description": "Duration of this position in months, as extracted.",
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "company_name",
                "job_title",
                "description",
                "contract_type",
                "start_date",
                "end_date",
                "currently_active",
                "work_experience_country",
                "work_experience_country_code",
                "work_experience_city",
                "work_experience_postal_code",
                "experience_duration"
              ]
            }
          },
          "educations": {
            "type": "array",
            "items": {
              "title": "Education",
              "type": "object",
              "properties": {
                "degree_title": {
                  "description": "Name of the degree or programme.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "school_name": {
                  "description": "School or institution.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "description": {
                  "description": "Details of the programme.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "degree_type": {
                  "description": "EQF level of the degree, expected to be one of `Level 1`…`Level 8` or `Other`. Not normalized: treat other strings as `Other`.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "start_date": {
                  "description": "Start date, `YYYY-MM-DD`.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "end_date": {
                  "description": "End date, `YYYY-MM-DD`.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "currently_active": {
                  "description": "Whether the programme is in progress.",
                  "anyOf": [
                    {
                      "type": "boolean"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "location": {
                  "title": "EducationLocation",
                  "description": "Location of the school.",
                  "type": "object",
                  "properties": {
                    "country": {
                      "description": "Country name.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "country_code": {
                      "description": "ISO 3166-1 alpha-2 country code, e.g. `FR`.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "region": {
                      "description": "Region.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "department": {
                      "description": "Department or county.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "city": {
                      "description": "City.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "postal_code": {
                      "description": "Postal code.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "full_address": {
                      "description": "Address as a single line.",
                      "anyOf": [
                        {
                          "type": "string"
                        },
                        {
                          "type": "null"
                        }
                      ]
                    }
                  },
                  "required": [
                    "country",
                    "country_code",
                    "region",
                    "department",
                    "city",
                    "postal_code",
                    "full_address"
                  ]
                }
              },
              "required": [
                "degree_title",
                "school_name",
                "description",
                "degree_type",
                "start_date",
                "end_date",
                "currently_active",
                "location"
              ]
            }
          },
          "rome_jobs": {
            "description": "Occupations predicted from `info_candidate.job_title` with the French ROME taxonomy.",
            "type": "array",
            "items": {
              "title": "RomeJob",
              "type": "object",
              "properties": {
                "job_title": {
                  "description": "Occupation label, in French.",
                  "type": "string"
                },
                "job_code": {
                  "description": "Occupation (appellation) code.",
                  "type": "string"
                },
                "rome_title": {
                  "description": "ROME job family label, in French.",
                  "type": "string"
                },
                "rome_code": {
                  "description": "ROME code, e.g. `M1805`.",
                  "type": "string"
                },
                "prediction_score": {
                  "description": "Confidence between 0.7 and 1.",
                  "type": "number"
                }
              },
              "required": [
                "job_title",
                "job_code",
                "rome_title",
                "rome_code",
                "prediction_score"
              ]
            }
          },
          "languages": {
            "type": "array",
            "items": {
              "title": "Language",
              "type": "object",
              "properties": {
                "language": {
                  "description": "Language name as written in the resume.",
                  "type": "string"
                },
                "level": {
                  "description": "CEFR-based proficiency, or `null` when not stated.",
                  "anyOf": [
                    {
                      "type": "string",
                      "enum": [
                        "Native or Bilingual (C2)",
                        "Full Professional Proficiency (C1)",
                        "Professional Working Proficiency (B2)",
                        "Limited Working Proficiency (B1)",
                        "Advanced Basic Proficiency (A2)",
                        "Introductory Proficiency (A1)"
                      ]
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "language",
                "level"
              ]
            }
          },
          "skills": {
            "type": "array",
            "items": {
              "title": "Skill",
              "type": "object",
              "properties": {
                "skill_title": {
                  "description": "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`).",
                  "type": "string"
                },
                "skill_type": {
                  "type": "string",
                  "enum": [
                    "Hard skill",
                    "Soft skill",
                    "Software skill"
                  ]
                },
                "status": {
                  "description": "`normalized`: resolved to the [HireLayer Skills taxonomy](https://hirelayer.co/api-docs/skills.md). `raw`: kept as written in the resume.",
                  "type": "string",
                  "enum": [
                    "normalized",
                    "raw"
                  ]
                },
                "domain": {
                  "description": "Primary domain of the taxonomy skill, in the language of `skill_title`. `null` when `status` is `raw`.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "subcategory": {
                  "description": "Primary family of the taxonomy skill, in the language of `skill_title`. `null` when `status` is `raw`.",
                  "anyOf": [
                    {
                      "type": "string"
                    },
                    {
                      "type": "null"
                    }
                  ]
                }
              },
              "required": [
                "skill_title",
                "skill_type",
                "status",
                "domain",
                "subcategory"
              ]
            }
          },
          "certifications": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "interests": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "workspace": {
            "description": "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).",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "required": [
          "status",
          "request_id",
          "warnings",
          "errors",
          "info_resume",
          "info_candidate",
          "work_experiences",
          "educations",
          "rome_jobs",
          "languages",
          "skills",
          "certifications",
          "interests"
        ],
        "description": "Parsed resume."
      },
      "ParseResumeV3CreatedResponse": {
        "title": "HrFlowParseResult",
        "description": "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).",
        "type": "object",
        "properties": {
          "code": {
            "type": "number",
            "const": 201
          },
          "message": {
            "type": "string"
          },
          "data": {
            "type": "object",
            "properties": {
              "parsing": {
                "description": "HrFlow.ai’s parsing object.",
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              },
              "profile": {
                "description": "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`.",
                "type": "object",
                "properties": {},
                "additionalProperties": {}
              }
            },
            "required": [
              "parsing",
              "profile"
            ]
          }
        },
        "required": [
          "code",
          "message",
          "data"
        ]
      },
      "ParseResumeV3AcceptedResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "const": "accepted"
          },
          "application_id": {
            "description": "Your `application_id`, or `null` when not sent.",
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "workspace": {
            "description": "Only when you send the `HireLayer-Workspace` header: its value, the workspace the parse is stored in.",
            "type": "string"
          }
        },
        "required": [
          "status",
          "application_id"
        ],
        "description": "Accepted in [asynchronous mode](https://hirelayer.co/api-docs/legacy-parsers.md#async): the outcome is posted to `webhook_url`."
      },
      "ParseResumeV2Request": {
        "type": "object",
        "properties": {
          "file": {
            "type": "string",
            "format": "binary",
            "description": "The resume: PDF, DOCX, ODT, PPTX, ODP, TXT, JPG or PNG."
          },
          "webhook_url": {
            "description": "URL that receives the result when processing ends.",
            "type": "string",
            "format": "uri"
          },
          "application_id": {
            "description": "Your own reference, echoed in the webhook payload.",
            "type": "string"
          }
        },
        "required": [
          "file",
          "webhook_url"
        ]
      },
      "ParseResumeV2Response": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "const": "CV processing initiated."
          },
          "body": {
            "type": "null"
          },
          "error": {
            "type": "boolean",
            "const": false
          }
        },
        "required": [
          "message",
          "body",
          "error"
        ],
        "description": "Accepted. The result is sent to `webhook_url` later."
      }
    }
  }
}