---
title: "Upload Word"
method: POST
path: "/image/upload-word"
tags: ["image"]
---

# Upload Word

`POST /image/upload-word`

Accepts a base64-encoded Word (.docx) file,
converts it to PDF via pandoc, then to JPEG images,
uploads each page to S3, and returns image URLs.

## Request body

- Base64WordUploadRequest
  - `file_content` string, required
  - `file_name` string, required
  - `content_type` string

## Response `200`

Successful Response

- PDFUploadResponse
  - `status` string, required
  - `message` string, required
  - `image_urls` string[], required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/excellence-ai/apis/excellence-learning.md) · [All operations](https://skmtc.dev/excellence-ai/apis/excellence-learning/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/excellence-ai/excellence-learning/revisions/8d495ed916c6/schema)
