# Parse a DOCX file into resume data

Extracts structured resume data from a DOCX or DOC file, sent as a base64-encoded string with the document's media type. A DOCX is read as text, so it runs on Hiresweep's hosted AI (counted against the plan); a legacy DOC is not supported there. Returns a complete ResumeData object. Requires authentication.

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

## Request body

```json
{
  "type": "object",
  "properties": {
    "file": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "data": {
          "type": "string",
          "maxLength": 13981018
        }
      },
      "required": [
        "name",
        "data"
      ]
    },
    "mediaType": {
      "enum": [
        "application/msword",
        "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
      ],
      "type": "string"
    }
  },
  "required": [
    "file",
    "mediaType"
  ]
}
```

## Responses

- `200`: The DOCX was successfully parsed into structured resume data.
- `400`: 400
- `402`: 402
- `502`: 502
