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

# List the contacts of a list

> Returns the contacts of a list, one page at a time. Follow `next_cursor` for the next page. To search by text, use the search operation.



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/contact-lists/{list_uuid}/contacts
openapi: 3.1.0
info:
  description: >-
    Manage your Klatt voice and chat agents, conversations, contacts and
    knowledge with an organization API key. Start with the
    [introduction](https://docs.klatt.ai/api-reference/introduction).
  title: Klatt API
  version: 1.0.0
servers:
  - url: https://api.klatt.ai
security:
  - bearerAuth: []
tags:
  - description: >-
      Agents that answer and place phone calls, and where they can transfer a
      call.
    name: Voice agents
  - description: Agents that answer WhatsApp chats.
    name: Chat agents
  - description: Calls and chats your agents have handled, with their analysis and state.
    name: Conversations
  - description: Lists of contacts and the custom fields each list defines.
    name: Contact lists
  - description: The people in a contact list.
    name: Contacts
  - description: Documents your agents read from, and their extracted text.
    name: Knowledge documents
  - description: >-
      Short question-and-answer and company-information entries your agents can
      use.
    name: Knowledge entries
paths:
  /api/v1/contact-lists/{list_uuid}/contacts:
    get:
      tags:
        - Contacts
      summary: List the contacts of a list
      description: >-
        Returns the contacts of a list, one page at a time. Follow `next_cursor`
        for the next page. To search by text, use the search operation.
      operationId: listContacts
      parameters:
        - description: Unique identifier (UUID) of the contact list.
          in: path
          name: list_uuid
          required: true
          schema:
            format: uuid
            type: string
        - description: >-
            Opaque cursor from the `next_cursor` of the previous page. Omit it
            to start at the beginning.
          in: query
          name: cursor
          required: false
          schema:
            anyOf:
              - maxLength: 512
                type: string
              - type: 'null'
        - description: Maximum number of contacts to return, from 1 to 100.
          in: query
          name: limit
          required: false
          schema:
            default: 50
            maximum: 100
            minimum: 1
            type: integer
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactPage'
          description: Successful Response
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
          description: The contact list does not exist in your organization.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: The request failed validation.
        '429':
          $ref: '#/components/responses/RateLimited'
        '503':
          $ref: '#/components/responses/ServiceUnavailable'
components:
  schemas:
    ContactPage:
      properties:
        items:
          description: The contacts of this page.
          items:
            $ref: '#/components/schemas/ContactResponse'
          type: array
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            Cursor to send as `cursor` to get the next page. `null` on the last
            page.
        total:
          description: Number of contacts that match, across all pages.
          type: integer
      required:
        - items
        - total
      type: object
    Error:
      description: Body of an error response.
      properties:
        detail:
          description: >-
            A stable error code such as `agent_not_found`. A few authentication
            errors carry a short text instead, such as `Invalid or expired API
            key`.
          type: string
        message:
          description: >-
            A human-readable explanation. Present only on errors raised before
            the request reaches the API, such as `api_key_wrong_host`.
          type: string
      required:
        - detail
      type: object
    HTTPValidationError:
      description: 'Body of a `422` response: the request failed validation.'
      properties:
        detail:
          anyOf:
            - items:
                $ref: '#/components/schemas/ValidationError'
              type: array
            - type: string
            - type: object
          description: >-
            A list of field errors when the body or a parameter is invalid, a
            string with an error code for some other refusals, or an object with
            a `code` when a knowledge limit is exceeded.
      type: object
    ContactResponse:
      properties:
        additional_fields:
          description: >-
            Values of the list's custom fields, keyed by field key. Values are
            text, numbers or booleans. Keys you leave out keep their value on
            update; `null` clears a value.
          maxProperties: 20
          patternProperties:
            ^[a-zA-Z][a-zA-Z0-9_]*$:
              anyOf:
                - type: string
                - type: integer
                - type: number
                - type: boolean
                - type: 'null'
          propertyNames:
            maxLength: 40
            minLength: 1
          type: object
        company:
          anyOf:
            - maxLength: 200
              type: string
            - type: 'null'
          description: Company the contact belongs to, up to 200 characters.
        contact_uuid:
          description: Unique identifier (UUID) of the contact.
          format: uuid
          type: string
        created_at:
          description: When the contact was created (ISO 8601, UTC).
          format: date-time
          type: string
        created_by_assistant:
          default: false
          description: Whether the analysis of a conversation created the contact.
          type: boolean
        created_conversation_kind:
          anyOf:
            - enum:
                - voice
                - chat
              type: string
            - type: 'null'
          description: Channel of that conversation, `voice` or `chat`.
        created_conversation_uuid:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The conversation whose analysis created the contact. `null` when
            `created_source` is `null`.
        created_source:
          anyOf:
            - const: extracted
              type: string
            - type: 'null'
          description: >-
            `extracted` when the analysis of a conversation created the contact.
            `null` when a person or an import did.
        emails:
          description: >-
            Email addresses, up to 10. A contact needs at least one phone number
            or email address.
          items:
            $ref: '#/components/schemas/ContactEmail'
          maxItems: 10
          type: array
        field_changes:
          description: History of changes to the custom fields, up to the last 20.
          items:
            $ref: '#/components/schemas/FieldChange'
          maxItems: 20
          type: array
        first_name:
          anyOf:
            - maxLength: 100
              type: string
            - type: 'null'
          description: First name, up to 100 characters.
        last_conversation_at:
          anyOf:
            - format: date-time
              type: string
            - type: 'null'
          description: >-
            When the most recent conversation with this contact happened (ISO
            8601, UTC).
        last_conversation_uuid:
          anyOf:
            - format: uuid
              type: string
            - type: 'null'
          description: >-
            The most recent conversation with this contact. `null` if there is
            none.
        last_name:
          anyOf:
            - maxLength: 100
              type: string
            - type: 'null'
          description: Last name, up to 100 characters.
        list_uuid:
          description: Unique identifier (UUID) of the list the contact belongs to.
          format: uuid
          type: string
        notes:
          anyOf:
            - maxLength: 5000
              type: string
            - type: 'null'
          description: Free-form notes, up to 5000 characters.
        phones:
          description: >-
            Phone numbers, up to 10. A contact needs at least one phone number
            or email address.
          items:
            $ref: '#/components/schemas/ContactPhone'
          maxItems: 10
          type: array
        updated_at:
          description: When the contact was last changed (ISO 8601, UTC).
          format: date-time
          type: string
      required:
        - contact_uuid
        - list_uuid
        - created_at
        - updated_at
      type: object
    ValidationError:
      description: One invalid field of a request.
      properties:
        ctx:
          description: Extra details about the error, such as the limit that was exceeded.
          type: object
        input:
          description: The value that failed validation, when it is returned.
        loc:
          description: 'Where the error is: `body`, `query` or `path`, then the field names.'
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          description: What is wrong with the value.
          type: string
        type:
          description: A short code for the kind of error.
          type: string
      required:
        - loc
        - msg
        - type
      type: object
    ContactEmail:
      additionalProperties: false
      properties:
        address:
          description: Email address, up to 254 characters. Stored in lowercase.
          maxLength: 254
          type: string
        label:
          anyOf:
            - enum:
                - home
                - work
                - other
              type: string
            - type: 'null'
          description: 'Label of the address: `home`, `work` or `other`.'
      required:
        - address
      type: object
    FieldChange:
      properties:
        conversation_kind:
          anyOf:
            - enum:
                - voice
                - chat
              type: string
            - type: 'null'
          description: Channel of that conversation, `voice` or `chat`.
        conversation_uuid:
          anyOf:
            - type: string
            - type: 'null'
          description: >-
            The conversation that caused the change, when `source` is
            `extracted`.
        created_at:
          description: When the change was made (ISO 8601, UTC).
          format: date-time
          type: string
        field_key:
          description: Key of the custom field that changed.
          type: string
        new_value:
          anyOf:
            - type: string
            - type: integer
            - type: number
            - type: boolean
            - type: 'null'
          description: Value after the change. `null` if the field was cleared.
        old_value:
          anyOf:
            - type: string
            - type: integer
            - type: number
            - type: boolean
            - type: 'null'
          description: Value before the change. `null` if the field was empty.
        reason:
          anyOf:
            - type: string
            - type: 'null'
          description: Why the value changed, when one was recorded.
        source:
          description: >-
            What made the change: `manual` (a person or the API), `extracted`
            (the analysis of a conversation) or `bulk_import`.
          enum:
            - manual
            - extracted
            - bulk_import
          type: string
      required:
        - field_key
        - source
        - created_at
      type: object
    ContactPhone:
      additionalProperties: false
      properties:
        label:
          anyOf:
            - enum:
                - home
                - work
                - other
              type: string
            - type: 'null'
          description: 'Label of the number: `home`, `work` or `other`.'
        number:
          description: Phone number, up to 32 characters. Stored in international format.
          maxLength: 32
          type: string
      required:
        - number
      type: object
  responses:
    Unauthorized:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: >-
        The API key is missing, malformed, unknown, deleted or sent to the wrong
        host. `detail` is a code such as `api_key_required`,
        `console_token_not_accepted` or `api_key_wrong_host`, or a short text
        such as `Invalid or expired API key`. Keys do not expire.
      headers:
        WWW-Authenticate:
          description: Always `Bearer`.
          schema:
            type: string
    Forbidden:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: >-
        The key is valid but may not do this. `detail` is `permission_required`,
        `organization_deleted` or `Organization API keys cannot access this
        operation`.
    RateLimited:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: The key exceeded its request limit. `detail` is `rate_limited`.
      headers:
        Retry-After:
          description: Seconds to wait before sending the next request.
          schema:
            type: integer
    ServiceUnavailable:
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
      description: >-
        A dependency the request needs is temporarily unavailable. `detail`
        names it, for example `rate_limit_unavailable` or
        `contacts_unavailable`. Retry with backoff.
  securitySchemes:
    bearerAuth:
      description: >-
        An organization API key created in the Klatt console, sent as
        `Authorization: Bearer <key>`. The key belongs to one organization.
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.