---
title: "Generate Job Description"
method: POST
path: "/api/job-roles/generate-jd"
tags: ["Job Roles"]
---

# Generate Job Description

`POST /api/job-roles/generate-jd`

## 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/generate-jd`
- Auth: HTTP bearer

Generate a job description using AI based on job title, department, and key requirements

This endpoint helps recruiters quickly create comprehensive JDs by providing:
- Job title (required)
- Department (optional, for context)
- Key requirements (3-5 bullet points of must-have skills/qualifications)

The AI will generate a complete JD with:
- Role overview
- Responsibilities
- Qualifications
- Culture fit

Requires: admin or recruiter role

## Request body

- BackendRoutersJobRolesGenerateJDRequest: Request to generate a job description with AI
  - `job_title` string, required
  - `department` string, nullable
  - `company_name` string, nullable
  - `key_requirements` string[], nullable
  - `fix_instructions` string[], nullable

## Response `200`

Successful Response

- GenerateJDResponse: Response with generated job description
  - `success` boolean, required
  - `job_description` string, required
  - `message` 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)
