# Tailor a resume to a job posting (/docs/reference/tailor)

`POST https://api.getmattered.com/api/v1/developer/tailor`

Tailors a resume to a job posting and scores it before and after. `light` is a quick rewrite, `pro` a deeper rewrite. Spends the tokens it uses plus the request fee, recorded as `light_cv_pack` or `pro_cv_pack`.

Authentication: `Authorization: Bearer gm_live_...` (see /authentication.md).

## Request body (application/json)

```json
{
  "type": "object",
  "properties": {
    "jobDescription": {
      "type": "string",
      "minLength": 50,
      "maxLength": 50000,
      "description": "The job posting text, 50 to 50,000 characters.",
      "example": "We are hiring a Senior Frontend Engineer with React, TypeScript and GraphQL experience to own our design system..."
    },
    "jobTitle": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "The job title of the posting.",
      "example": "Senior Frontend Engineer"
    },
    "resumeText": {
      "type": "string",
      "minLength": 50,
      "maxLength": 50000,
      "description": "The resume as plain text or Markdown, 50 to 50,000 characters.",
      "example": "Jane Doe\nSenior Software Engineer\n6 years building React and TypeScript apps at Acme. Led the move to Next.js..."
    },
    "tier": {
      "type": "string",
      "enum": [
        "light",
        "pro"
      ],
      "default": "light",
      "description": "Tailoring depth. `light` is a quick rewrite, `pro` a deeper rewrite.",
      "example": "light"
    }
  },
  "required": [
    "jobDescription",
    "jobTitle",
    "resumeText"
  ],
  "additionalProperties": false
}
```

## Responses

### 200: The tailored resume with its before and after ATS scores.

```json
{
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "after": {
          "type": "object",
          "properties": {
            "overallScore": {
              "type": "number",
              "minimum": 0,
              "maximum": 100,
              "description": "Overall ATS compatibility score (0-100).",
              "example": 72
            },
            "keywordMatches": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Keywords found in the resume that match the job description.",
              "example": [
                "JavaScript",
                "React",
                "Node.js"
              ]
            },
            "missingKeywords": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Important keywords from the job description missing from the resume.",
              "example": [
                "TypeScript",
                "GraphQL"
              ]
            },
            "sectionScores": {
              "type": "object",
              "properties": {
                "skills": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "experience": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "education": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "formatting": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                },
                "keywords": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100
                }
              },
              "required": [
                "skills",
                "experience",
                "education",
                "formatting",
                "keywords"
              ],
              "additionalProperties": false,
              "description": "Per-section ATS sub-scores derived from the analysis."
            },
            "suggestions": {
              "type": "array",
              "items": {
                "type": "string"
              },
              "description": "Actionable improvement suggestions.",
              "example": [
                "Add \"TypeScript\" to your skills section."
              ]
            }
          },
          "required": [
            "overallScore",
            "keywordMatches",
            "missingKeywords",
            "sectionScores",
            "suggestions"
          ],
          "additionalProperties": false,
          "description": "The ATS score of the tailored resume."
        },
        "before": {
          "allOf": [
            {
              "type": "object",
              "properties": {
                "overallScore": {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 100,
                  "description": "Overall ATS compatibility score (0-100).",
                  "example": 72
                },
                "keywordMatches": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Keywords found in the resume that match the job description.",
                  "example": [
                    "JavaScript",
                    "React",
                    "Node.js"
                  ]
                },
                "missingKeywords": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Important keywords from the job description missing from the resume.",
                  "example": [
                    "TypeScript",
                    "GraphQL"
                  ]
                },
                "sectionScores": {
                  "type": "object",
                  "properties": {
                    "skills": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    "experience": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    "education": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    "formatting": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    },
                    "keywords": {
                      "type": "number",
                      "minimum": 0,
                      "maximum": 100
                    }
                  },
                  "required": [
                    "skills",
                    "experience",
                    "education",
                    "formatting",
                    "keywords"
                  ],
                  "additionalProperties": false,
                  "description": "Per-section ATS sub-scores derived from the analysis."
                },
                "suggestions": {
                  "type": "array",
                  "items": {
                    "type": "string"
                  },
                  "description": "Actionable improvement suggestions.",
                  "example": [
                    "Add \"TypeScript\" to your skills section."
                  ]
                }
              },
              "required": [
                "overallScore",
                "keywordMatches",
                "missingKeywords",
                "sectionScores",
                "suggestions"
              ],
              "additionalProperties": false,
              "description": "The ATS score of the tailored resume."
            },
            {
              "description": "The ATS score of the resume as sent."
            }
          ]
        },
        "keywordsAdded": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Posting keywords the tailored resume now carries.",
          "example": [
            "GraphQL"
          ]
        },
        "summary": {
          "type": [
            "string",
            "null"
          ],
          "description": "What the tailoring emphasized and why.",
          "example": "Moved the design-system work to the top."
        },
        "tailoredResume": {
          "type": "string",
          "description": "The tailored resume, Markdown."
        },
        "tier": {
          "type": "string",
          "enum": [
            "light",
            "pro"
          ],
          "description": "Tailoring depth. `light` is a quick rewrite, `pro` a deeper rewrite.",
          "example": "light"
        },
        "usage": {
          "type": "object",
          "properties": {
            "tokens": {
              "type": "integer",
              "description": "The tokens this call spent from the key owner's account: the work it ran plus the request fee.",
              "example": 450
            }
          },
          "required": [
            "tokens"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "after",
        "before",
        "keywordsAdded",
        "summary",
        "tailoredResume",
        "tier",
        "usage"
      ],
      "additionalProperties": false
    },
    "meta": {
      "type": "object",
      "properties": {
        "duration": {
          "type": "number",
          "minimum": 0,
          "description": "Request duration in milliseconds",
          "example": 150
        },
        "performance": {
          "type": "object",
          "properties": {
            "dbQueries": {
              "type": "integer",
              "minimum": 0
            },
            "totalDbTime": {
              "type": "number",
              "minimum": 0
            }
          },
          "description": "Performance metrics (preview/local only)"
        },
        "requestId": {
          "type": "string",
          "description": "Unique request identifier",
          "example": "req_abc123"
        },
        "timestamp": {
          "type": "string",
          "format": "date-time",
          "description": "ISO 8601 timestamp",
          "example": "2026-11-17T12:00:00.000Z"
        },
        "version": {
          "type": "string",
          "description": "API version",
          "example": "v1"
        }
      }
    },
    "success": {
      "type": "boolean",
      "enum": [
        true
      ]
    }
  },
  "required": [
    "data",
    "success"
  ],
  "additionalProperties": false,
  "description": "Successful API response"
}
```

### 400: Bad Request

### 401: Unauthorized

### 402: The key owner's API balance has no tokens for this call. Nothing was spent.

### 404: Not Found

### 429: Too Many Requests

### 500: Internal Server Error

Error responses use the envelope in /errors.md.