---
title: "Create Exercise Session"
method: POST
path: "/exercise-sessions"
tags: ["exercise_sessions"]
---

# Create Exercise Session

`POST /exercise-sessions`

Creates a new exercise session doc with the chosen exercises, sequential/parallel, etc.
Returns session_id in the 'message' field of BasicResponse.

## Request body

- ExerciseSessionCreate
  - `exercise_ids` string[], required
  - `subject` 'maths' | 'physique-chimie', nullable
  - `is_sequential` boolean, required
  - `use_timer` boolean, required
  - `device_type` string, nullable
  - `assignment_id` string, nullable
  - `is_trial_run` boolean

## Response `200`

Successful Response

- RoutersExerciseSessionsBasicResponse
  - `status` string, required
  - `message` string, required
  - `data` object, nullable
  - `transcript` string, nullable
  - `url` string, 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/8d495ed916c6/schema)
