---
title: "Create chapter"
method: POST
path: "/experiences/{experience_id}/chapters"
tags: ["Chapters"]
---

# Create chapter

`POST /experiences/{experience_id}/chapters`

## Request

- Base URL: `https://api.crevio.co/v1`
- URL: `https://api.crevio.co/v1/experiences/{experience_id}/chapters`
- Auth: API key in header `Authorization`

Adds a chapter to a course experience

## Path parameters

- `experience_id` string, required

## Headers

- `Idempotency-Key` string

## Request body

- ChapterRequest
  - `title` string: Chapter title (defaults to "Chapter N")
  - `position` integer: Zero-based ordinal among the course's chapters

## Response `201`

Chapter created

- Chapter
  - `id` string, required
  - `object` string, required
  - `title` string, required
  - `position` integer, required
  - `lessons` Lesson[], required
    - `id` string, required
    - `object` string, required
    - `title` string, required
    - `position` integer, required
    - `lesson_type` string, required
    - `published` boolean, required
    - `published_at` string, date-time, nullable, required
    - `html_content` string, nullable, required
    - `chapter` string, required
    - `video_url` string, nullable, required
    - `files` object[], required
      - `id` string, required
      - `filename` string, nullable, required
      - `content_type` string, nullable
      - `byte_size` integer, required
      - `url` string, required

## Other responses

- `400`: Bad request
- `401`: Authentication required
- `403`: Forbidden
- `404`: Resource not found
- `422`: Validation error
- `429`: Rate limit exceeded — 600 requests per minute per credential. Retry after the number of seconds in `Retry-After`.
- `500`: Internal server error

---

[API](https://skmtc.dev/crevio/apis/crevio-api-v1.md) · [All operations](https://skmtc.dev/crevio/apis/crevio-api-v1/llms.txt) · [OpenAPI document](https://skmtc.dev/crevio/apis/crevio-api-v1/revisions/2219f18ad651?raw)
