> ## 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.

# Create Contact Book

> Creates a new contact book with a unique name.



## OpenAPI

````yaml POST /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:
    post:
      tags:
        - Contacts
      summary: Create a new contact book
      description: Creates a new contact book with a unique name.
      operationId: createContactBook
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CreateContactBookRequest'
      responses:
        '201':
          description: Contact book created
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateContactBookResponse'
        '400':
          description: Missing required field
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: Contact book already exists
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    CreateContactBookRequest:
      type: object
      required:
        - name
      properties:
        name:
          type: string
          example: My Contacts
        description:
          type: string
          example: Personal contact list
    CreateContactBookResponse:
      type: object
      properties:
        success:
          type: boolean
          example: true
        name:
          type: string
          example: My Contacts
    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

````