# Analyze resume and persist latest analysis

Uses Hiresweep AI to analyze the current resume and returns a structured analysis with scorecard, strengths, and improvement suggestions. The latest analysis is persisted and can be fetched later. Uses one AI action. Requires authentication.

```http
POST https://hiresweep.com/api/openapi/ai/analyze-resume
x-api-key: YOUR_API_KEY
```

## Request body

```json
{
  "type": "object",
  "properties": {
    "resumeId": {
      "type": "string"
    }
  },
  "required": [
    "resumeId"
  ]
}
```

## Responses

- `200`: Structured resume analysis returned and persisted successfully.
- `400`: 400
- `402`: 402
- `502`: 502
