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

# List Contact Books

> Returns all contact books belonging to the authenticated user.



## OpenAPI

````yaml GET /contacts/books
openapi: 3.0.0
info:
  title: ECSEND Developer API
  description: Public API for programmatically sending SMS and managing campaigns/contacts.
  version: 1.0.0
servers:
  - url: https://ecsend.paysgator.com
    description: Production Base URL
security:
  - ApiKeyAuth: []
paths:
  /contacts/books:
    get:
      tags:
        - Contacts
      summary: List all contact books
      description: Returns all contact books belonging to the authenticated user.
      operationId: listContactBooks
      responses:
        '200':
          description: List of contact books
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/ContactBook'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    ContactBook:
      type: object
      properties:
        name:
          type: string
          example: My Contacts
        description:
          type: string
          example: Personal contact list
        contactCount:
          type: integer
          example: 25
    Error:
      type: object
      properties:
        error:
          type: string
          example: Unauthorized. Invalid or missing X-Api-Key.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key

````