---
title: "Extract Competencies From Uploaded File"
method: POST
path: "/api/job-roles/extract-competencies-from-file"
tags: ["Job Roles"]
---

# Extract Competencies From Uploaded File

`POST /api/job-roles/extract-competencies-from-file`

## Request

- Base URL: `https://api.thebetterhire.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.thebetterhire.ai/api/job-roles/extract-competencies-from-file`
- Auth: HTTP bearer

Extract competencies from uploaded JD file (PDF/DOCX) using AI

This endpoint allows extraction BEFORE saving the job role.
Upload a file and get competencies back immediately.

Parameters:
- extract_jd_text: If True, returns full JD text along with competencies

Requires: admin or recruiter role

## Response `200`

Successful Response

- ExtractCompetenciesResponse: Response with extracted competencies
  - `success` boolean, required
  - `competencies` CompetencyItem[], required
    - `name` string, required
    - `description` string, required
    - `importance` integer, required
    - `evaluation_criteria` string, nullable
  - `message` string, nullable
  - `jd_text` string, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api.md) · [All operations](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api/llms.txt) · [OpenAPI document](https://skmtc.dev/thebetterhire/apis/interanalysis-b2b-api/revisions/c8ad03e900ea?raw)
