Implementation:Elevenlabs Elevenlabs python ChapterSnapshotResponse
| Metadata | Value |
|---|---|
| source | Elevenlabs_Elevenlabs_python |
| domain | Projects, Audio Books, Snapshots |
| last_updated | 2026-02-15 |
Overview
Description: ChapterSnapshotResponse is a Pydantic model representing a snapshot of a chapter within an ElevenLabs project. A snapshot captures the state of a chapter's audio conversion at a specific point in time, identified by a unique snapshot ID. It includes references back to the parent project and chapter, along with creation timestamp and a human-readable name.
Usage: This model is returned by the ElevenLabs Projects API when listing or retrieving chapter snapshots. Snapshots allow users to maintain a version history of their chapter conversions, enabling rollback to previous versions and comparison between different conversion runs.
Code Reference
Source file: src/elevenlabs/types/chapter_snapshot_response.py
Class signature:
class ChapterSnapshotResponse(UncheckedBaseModel):
...
Import statement:
from elevenlabs.types import ChapterSnapshotResponse
I/O Contract
| Field | Type | Required | Description |
|---|---|---|---|
| chapter_snapshot_id | str | Yes | The ID of the chapter snapshot |
| project_id | str | Yes | The ID of the project |
| chapter_id | str | Yes | The ID of the chapter |
| created_at_unix | int | Yes | The creation date of the chapter snapshot (Unix timestamp) |
| name | str | Yes | The name of the chapter snapshot |
Usage Examples
from elevenlabs.types import ChapterSnapshotResponse
# Working with a chapter snapshot from the API
snapshot = ChapterSnapshotResponse(
chapter_snapshot_id="snap_abc123",
project_id="proj_xyz789",
chapter_id="ch_def456",
created_at_unix=1700000000,
name="Initial conversion",
)
# Access snapshot properties
print(f"Snapshot ID: {snapshot.chapter_snapshot_id}")
print(f"Project: {snapshot.project_id}")
print(f"Chapter: {snapshot.chapter_id}")
print(f"Name: {snapshot.name}")
print(f"Created at: {snapshot.created_at_unix}")