Skip to main content
POST
Create Chapter

Overview

Creates a new chapter within a project. Chapters are segments of your video that can have individual content and duration.

Request

Path Parameters

string
required
The project ID

Headers

string
required
Bearer token with your API key
string
required
Must be application/json

Body

string
required
Chapter name (1-30 characters)
number
Optional duration in seconds (must be positive integer)

Response

string
Unique chapter identifier (format: cht_[A-Za-z0-9]{21})
string
Parent project ID
string
Chapter name
number
Duration in seconds
string
ISO 8601 timestamp when the chapter was created

Examples

Response Example

Error Responses

400
Invalid request parameters
404
Project not found

Next Steps

Submit Prompt

Add video content to this chapter

List Chapters

View all chapters in the project