About this endpoint
What it does
Compares two candidate resumes against a job title and returns a winner, a rationale, and a comparison matrix of key dimensions.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| resumeA | String | Yes | Resume content for candidate A. |
| resumeB | String | Yes | Resume content for candidate B. |
| jobTitle | String | Yes | The job title used as the comparison context. |
Response
Returns a JSON object with three top-level fields: winner and rationale are strings, and comparisonMatrix is an object containing string fields for experience, softSkills, and technicalSkills.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| winner | String | No | The selected candidate identifier. |
| rationale | String | No | Explanation for why that candidate was chosen. |
| comparisonMatrix | Object | No | Comparison details across key dimensions. Contains experience, softSkills, and technicalSkills as string fields. |