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

# List books

> Every book on the author's account, newest first, with how many of its videos have been posted through Sonder.



## OpenAPI

````yaml /api-reference/openapi.json get /books
openapi: 3.1.0
info:
  title: Sonder API
  version: 1.0.0
  description: >-
    Read an author's Sonder videos, views, viral days and view milestones. Every
    request uses an API key the author creates in Sonder, and sees that author's
    data only.
servers:
  - url: https://api.yousonder.com/v1
    description: Production
  - url: https://sonder-server-production.up.railway.app/v1
    description: Production (direct address)
security:
  - bearerAuth: []
tags:
  - name: Account
    description: Who the key belongs to.
  - name: Books
    description: The author's books.
  - name: Videos
    description: Posted videos with views, viral status and milestones.
  - name: Stats
    description: Day-by-day views.
  - name: Events
    description: Viral and milestone moments, for polling.
  - name: Connect
    description: One-click connect (OAuth 2.0).
paths:
  /books:
    get:
      tags:
        - Books
      summary: List books
      description: >-
        Every book on the author's account, newest first, with how many of its
        videos have been posted through Sonder.
      operationId: listBooks
      responses:
        '200':
          description: The books.
          content:
            application/json:
              schema:
                type: object
                required:
                  - success
                  - data
                properties:
                  success:
                    type: boolean
                    const: true
                  data:
                    type: array
                    items:
                      $ref: '#/components/schemas/Book'
              example:
                success: true
                data:
                  - id: 5b1d7c2e-8f0a-4c1b-9d3e-2a6f4b8c9e01
                    title: The Quiet Hours
                    subtitle: Raising Children Who Rest
                    author: Jane Author
                    videos_posted: 41
                    created_at: '2026-07-02T08:15:00.000Z'
        '401':
          description: The API key is missing, malformed or revoked.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error:
                  code: invalid_api_key
                  message: >-
                    That API key is not valid. Check it was copied in full, or
                    create a new one in Sonder under Settings → API keys.
        '403':
          description: The author's Sonder plan isn't active.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error:
                  code: plan_inactive
                  message: >-
                    This Sonder account doesn't have an active plan, so its data
                    isn't shared. The key works again as soon as the plan is
                    active.
        '429':
          description: >-
            More than 60 requests in a minute with this key. Wait for the
            seconds in `Retry-After`.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                success: false
                error:
                  code: rate_limited
                  message: >-
                    Too many requests. Each key allows 60 a minute; try again
                    after the time in the Retry-After header.
components:
  schemas:
    Book:
      type: object
      required:
        - id
        - title
        - subtitle
        - author
        - videos_posted
        - created_at
      properties:
        id:
          type: string
          format: uuid
        title:
          type: string
        subtitle:
          type:
            - string
            - 'null'
        author:
          type:
            - string
            - 'null'
          description: Author name as entered in Sonder (often a pen name).
        videos_posted:
          type: integer
        created_at:
          type: string
          format: date-time
    Error:
      type: object
      required:
        - success
        - error
      properties:
        success:
          type: boolean
          const: false
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              description: Stable, machine-readable reason.
              enum:
                - missing_api_key
                - invalid_api_key
                - api_key_revoked
                - plan_inactive
                - rate_limited
                - invalid_parameter
                - range_too_long
                - not_found
                - internal_error
            message:
              type: string
              description: What went wrong and what to do, in plain English.
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: An API key from Sonder → Settings → API keys, like `sonder_live_…`.

````