---
title: "Scan Course Content"
method: POST
path: "/demo-custom-course/scan"
tags: ["Demo Custom Course"]
---

# Scan Course Content

`POST /demo-custom-course/scan`

Scan an image or PDF and convert it to LaTeX using OpenAI's Vision API.
Uses base64 encoded content for compatibility with both web and mobile.

## Query parameters

- `session_id` string, required — Ephemeral session ID

## Request body

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

## Response `200`

Successful Response

- object

## 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/ef67479ed898/schema)
