---
title: "Generate Chat Title"
method: POST
path: "/chats/{chat_id}/generate-title"
tags: ["Chats"]
---

# Generate Chat Title

`POST /chats/{chat_id}/generate-title`

## Path parameters

- `chat_id` string, required

## Request body

- ChatTitleGenerateRequest
  - `messages` ChatTitleMessageRequest[], required
    - `role` 'user' | 'student' | 'assistant', required
    - `content` string, required
  - `context` ChatTitleContextRequest
    - `session_id` string, nullable
    - `exercise_id` string, nullable
    - `course_id` string, nullable
    - `course_route_kind` 'my_course' | 'assigned_course', nullable
    - `cpge_exercise_id` string, nullable

## Response `200`

Successful Response

- RoutersSimpleChatBasicResponse
  - `status` string, required
  - `message` string, required
  - `data` unknown

## 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.dev/excellence-ai/apis/excellence-learning/revisions/2a0c1636fd3b?raw)
