About this endpoint
What it does
Compares two candidate resumes against each other, with an optional job title context, and returns a winner plus a written rationale. The response also includes a comparison matrix with breakdowns for experience, soft skills, and technical skills.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| resumeA | String | Yes | Resume content of candidate A. |
| resumeB | String | Yes | Resume content of candidate B. |
| jobTitle | String | No | Job title context for the comparison. |
Response
Returns a JSON object with winner and rationale string fields, plus a comparisonMatrix object containing experience, softSkills, and technicalSkills string fields.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| winner | String | No | The selected winner of the head-to-head comparison. |
| rationale | String | No | Explanation for why that candidate was chosen. |
| comparisonMatrix | Object | No | Comparison details broken down by experience, soft skills, and technical skills. |
| comparisonMatrix.experience | String | No | Summary of how the candidates compare on experience. |
| comparisonMatrix.softSkills | String | No | Summary of how the candidates compare on soft skills. |
| comparisonMatrix.technicalSkills | String | No | Summary of how the candidates compare on technical skills. |