> ## Documentation Index
> Fetch the complete documentation index at: https://developer.thehaystack.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# List Chapters



## OpenAPI

````yaml GET /media/chapters
openapi: 3.1.0
info:
  title: Haystack API
  description: Content management and semantic search API for Haystack
  version: 2.0.0
  contact:
    name: Haystack Support
    email: support@thehaystack.ai
    url: https://thehaystack.ai
servers:
  - url: https://api.thehaystack.ai/v2/haystack
    description: Production server
security:
  - bearerAuth: []
tags:
  - name: Items
    description: Content item management
  - name: Collections
    description: Top-level content organization
  - name: Series
    description: Multi-part content grouping
  - name: Speakers
    description: Content presenter management
  - name: Media
    description: Video and audio asset management
  - name: Search
    description: Semantic content search
  - name: Analytics
    description: Usage statistics and metrics
  - name: Resources
    description: Attach supplementary files, links, and videos to items
  - name: Scriptures
    description: Attach Bible references to items
  - name: Chapters
    description: Time-based chapter markers on media assets
  - name: Stats
    description: Analytics and reporting
  - name: Frontend
    description: Public frontend configuration
paths:
  /media/chapters:
    get:
      tags:
        - Chapters
      summary: List chapters
      parameters:
        - name: _limit
          in: query
          required: false
          schema:
            type: integer
            default: 50
            maximum: 100
        - name: _offset
          in: query
          required: false
          schema:
            type: integer
            default: 0
        - name: _orderBy
          in: query
          required: false
          schema:
            type: array
            items:
              type: string
          style: form
          explode: true
          description: Sort spec, e.g. "date,DESC"
        - name: mediaAssetId
          in: query
          required: false
          schema:
            type: integer
      responses:
        '200':
          description: Paginated chapters
          content:
            application/json:
              schema:
                type: object
                properties:
                  chapters:
                    type: array
                    items:
                      $ref: '#/components/schemas/MediaChapter'
                  limit:
                    type: integer
                  offset:
                    type: integer
                  page:
                    type: integer
                  totalRecords:
                    type: integer
                  totalPages:
                    type: integer
                  hasMore:
                    type: boolean
components:
  schemas:
    MediaChapter:
      type: object
      properties:
        id:
          type: integer
        itemId:
          type: integer
        mediaAssetId:
          type: integer
        title:
          type: string
          example: Introduction
        startMs:
          type: integer
          description: Chapter start time in milliseconds
        suggested:
          type: boolean
          nullable: true
          description: Whether this chapter was AI-suggested
        accepted:
          type: boolean
          nullable: true
          description: Whether a suggested chapter has been accepted
        hidden:
          type: boolean
          description: True if chapter is suggested but not accepted
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: Enter your API token from the Haystack dashboard

````