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

# List Contacts

> Returns a paginated list of contacts with optional filtering capabilities



## OpenAPI

````yaml GET /public-api/contacts
openapi: 3.0.0
info:
  title: Agents Public API
  version: '1.0'
  description: REST API for managing contacts, campaigns, and conversations
  termsOfService: https://agents.nineteen58.co.za/terms
  contact:
    name: API Support
    url: https://agents.nineteen58.co.za/support
    email: support@nineteen58.co.za
servers:
  - url: https://agents.nineteen58.co.za
    description: Production server
security:
  - apiKeyAuth: []
tags: []
paths:
  /public-api/contacts:
    get:
      tags:
        - Contacts
      summary: Retrieve a paginated list of contacts
      description: >-
        Returns a paginated list of contacts with optional filtering
        capabilities
      operationId: getpublicapicontacts
      parameters:
        - in: header
          name: x-api-key
          schema:
            type: string
          required: true
          description: API key for authentication
        - in: query
          name: page
          schema:
            type: integer
            minimum: 1
            default: 1
          description: Page number for pagination
        - in: query
          name: pageSize
          schema:
            type: integer
            minimum: 1
            maximum: 100
            default: 10
          description: Number of items per page
        - in: query
          name: name
          schema:
            type: string
          description: Filter contacts by partial name match (case-insensitive)
        - in: query
          name: email
          schema:
            type: string
          description: Filter contacts by partial email match (case-insensitive)
        - in: query
          name: channel
          schema:
            type: string
            enum:
              - whatsapp
              - email
          description: Filter contacts by exact channel match
        - in: query
          name: identifier
          schema:
            type: string
          description: Filter contacts by partial identifier match (case-insensitive)
      responses:
        '200':
          description: Successfully retrieved contacts
          content:
            application/json:
              schema:
                type: object
                properties:
                  contacts:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: string
                          format: uuid
                        identifier:
                          type: string
                        name:
                          type: string
                        email:
                          type: string
                        channel:
                          type: string
                        personal_context:
                          type: string
                        notes:
                          type: string
                        relevant_information:
                          type: string
                  totalCount:
                    type: integer
                  currentPage:
                    type: integer
                  pageSize:
                    type: integer
                  totalPages:
                    type: integer
        '401':
          description: Unauthorized - Invalid or missing authentication token
        '500':
          description: Internal server error
      security:
        - apiKeyAuth: []
components:
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````