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

# List Contacts

> Retrieve a paginated list of contacts with optional search and filtering.



## OpenAPI

````yaml GET /api/contacts
openapi: 3.0.0
info:
  title: Recepta Public API
  version: 1.0.0
  description: >-
    The Recepta API lets you programmatically manage calls, contacts, and SMS
    messages.


    Use this API to integrate Recepta with your own applications, CRMs, AI
    agents, or automation workflows.


    ## Authentication


    All endpoints require an API key passed in the `x-api-key` header.


    ```

    x-api-key: rcp_your_api_key_here

    ```


    Create and manage API keys in **Settings > API Keys** in the Recepta
    dashboard.


    ## Rate Limits


    Rate limits depend on your subscription plan:


    | Plan | Requests / Minute |

    |------|-------------------|

    | Free | 30 |

    | Starter | 60 |

    | Growth | 300 |

    | Enterprise | 1,000 |


    Every response includes rate limit headers:

    - `X-RateLimit-Limit` — maximum requests per window

    - `X-RateLimit-Remaining` — requests remaining

    - `X-RateLimit-Reset` — seconds until window resets


    When exceeded, you receive a `429 Too Many Requests` response with a
    `Retry-After` header.


    ## Pagination


    List endpoints support pagination via `page` and `limit` query parameters.
    Responses include a `pagination` object:


    ```json

    {
      "pagination": {
        "total": 142,
        "page": 1,
        "limit": 20,
        "totalPages": 8
      }
    }

    ```


    ## Errors


    All errors follow the same format:


    ```json

    {
      "success": false,
      "message": "Human-readable error description"
    }

    ```


    | Code | Meaning |

    |------|--------|

    | 400 | Bad Request — invalid or missing parameters |

    | 401 | Unauthorized — invalid or missing API key |

    | 403 | Forbidden — API key lacks required permission |

    | 404 | Not Found — resource does not exist |

    | 409 | Conflict — duplicate resource |

    | 429 | Rate Limited — too many requests |

    | 500 | Server Error — try again later |
  contact:
    name: Recepta Support
    email: support@recepta.ai
    url: https://recepta.ai
servers:
  - url: https://api.recepta.ai/api/v1
    description: Production
security:
  - ApiKeyAuth: []
tags:
  - name: Calls
    description: Make calls, retrieve transcripts, and manage call records
  - name: Contacts
    description: Create, read, update, and delete contacts
  - name: SMS
    description: Send messages and manage SMS conversations
paths:
  /api/contacts:
    get:
      tags:
        - Contacts
      summary: List contacts
      description: >-
        Retrieve a paginated list of contacts with optional search and
        filtering.
      operationId: listContacts
      parameters:
        - name: page
          in: query
          schema:
            type: integer
            default: 1
          description: Page number
        - name: limit
          in: query
          schema:
            type: integer
            default: 50
          description: Results per page (max 100)
        - name: search
          in: query
          schema:
            type: string
          description: Search by name, email, or phone
        - name: source
          in: query
          schema:
            type: string
            enum:
              - MANUAL
              - FACEBOOK
              - CSV
              - API
              - CALL
          description: Filter by source
        - name: tags
          in: query
          schema:
            type: string
          description: Filter by tag
      responses:
        '200':
          description: Contacts retrieved
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    example: true
                  message:
                    type: string
                    example: Clients retrieved successfully
                  data:
                    type: object
                    properties:
                      clients:
                        type: array
                        items:
                          $ref: '#/components/schemas/Contact'
                      pagination:
                        $ref: '#/components/schemas/Pagination'
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Contact:
      type: object
      properties:
        id:
          type: string
          example: 697929d5ebccbcca5cdaf13b
        firstName:
          type: string
          example: Jane
        lastName:
          type: string
          example: Doe
        fullName:
          type: string
          nullable: true
          example: Jane Doe
        email:
          type: string
          example: jane@example.com
        phone:
          type: string
          example: '+15551234567'
        source:
          type: string
          enum:
            - MANUAL
            - FACEBOOK
            - CSV
            - API
            - CALL
          example: API
        tags:
          type: array
          items:
            type: string
          example:
            - lead
            - website
        status:
          type: string
          example: active
        notes:
          type: string
          example: Interested in premium plan
        company_name:
          type: string
          nullable: true
          example: Acme Corp
        address:
          type: string
          nullable: true
        city:
          type: string
          nullable: true
        state:
          type: string
          nullable: true
        zipCode:
          type: string
          nullable: true
        country:
          type: string
          nullable: true
        customFields:
          type: object
          nullable: true
          example:
            referralSource: google
        isActive:
          type: boolean
          example: true
        createdAt:
          type: string
          format: date-time
        updatedAt:
          type: string
          format: date-time
    Pagination:
      type: object
      properties:
        total:
          type: integer
          example: 142
        page:
          type: integer
          example: 1
        limit:
          type: integer
          example: 20
        totalPages:
          type: integer
          example: 8
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: Your Recepta API key (starts with `rcp_`)

````