---
title: "Create Text Exercise"
method: POST
path: "/homework-helper/create-text-exercise"
tags: ["Homework Helper"]
---

# Create Text Exercise

`POST /homework-helper/create-text-exercise`

## Request body

- CreateTextExerciseRequest
  - `latex_content` string, required
  - `subject` 'maths' | 'physique-chimie', nullable
  - `image_urls` string[]
  - `figure_id` string, nullable — Optional ID of a Figure document to associate with this exercise.
  - `title` string, nullable — Optional title override for the homework helper exercise.
  - `source_chat_id` string, nullable — Optional chat ID used for CTA idempotency so repeated clicks reopen the same homework helper session.

## Response `200`

Successful Response

- RoutersHomeworkHelperRoutesBasicResponse
  - `status` 'success' | 'error', required
  - `message` string, required
  - `data` object, nullable

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