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

# List contacts

> A page at a time. Send the nextCursor back as cursor for the next one. Archived contacts are left out.



## OpenAPI

````yaml /api-reference/openapi.json post /v1/contacts/list
openapi: 3.0.3
info:
  title: RevenueBee public API
  version: 1.0.0
  description: >-
    Send contacts, events and external accounts from your own backend, vouch for
    who is using the chat widget, and start calls with a voice agent.
servers:
  - url: https://crm.example.com/public-api
security:
  - apiKey: []
paths:
  /v1/contacts/list:
    post:
      tags:
        - Contacts
      summary: List contacts
      description: >-
        A page at a time. Send the nextCursor back as cursor for the next one.
        Archived contacts are left out.
      operationId: listContacts
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                limit:
                  type: integer
                  minimum: 1
                  maximum: 100
                  default: 25
                cursor:
                  type: string
                  nullable: true
                sort:
                  type: string
                  enum:
                    - createdAt
                    - displayName
                    - lifecycleChangedAt
                order:
                  type: string
                  enum:
                    - asc
                    - desc
                q:
                  type: string
                  maxLength: 200
                  description: search query
                filters:
                  type: array
                  items:
                    oneOf:
                      - type: object
                        properties:
                          field:
                            type: string
                          op:
                            type: string
                            enum:
                              - in
                          values:
                            type: array
                            items:
                              type: string
                              minLength: 1
                            minItems: 1
                            maxItems: 50
                        required:
                          - field
                          - op
                          - values
                      - type: object
                        properties:
                          field:
                            type: string
                          op:
                            type: string
                            enum:
                              - contains
                          value:
                            type: string
                            minLength: 1
                            maxLength: 200
                        required:
                          - field
                          - op
                          - value
                      - type: object
                        properties:
                          field:
                            type: string
                          op:
                            type: string
                            enum:
                              - between
                          from:
                            type: string
                            format: date-time
                          to:
                            type: string
                            format: date-time
                        required:
                          - field
                          - op
                      - type: object
                        properties:
                          field:
                            type: string
                          op:
                            type: string
                            enum:
                              - is_null
                        required:
                          - field
                          - op
                      - type: object
                        properties:
                          field:
                            type: string
                          op:
                            type: string
                            enum:
                              - not_null
                        required:
                          - field
                          - op
                  maxItems: 20
                  default: []
      responses:
        '200':
          description: A page of contacts
          headers:
            X-RateLimit-Limit:
              schema:
                type: string
                description: Requests allowed in the window.
                example: '100'
              required: true
            X-RateLimit-Remaining:
              schema:
                type: string
                description: Requests left in the window.
                example: '97'
              required: true
            X-RateLimit-Reset:
              schema:
                type: string
                description: >-
                  Seconds until the window resets; on a 429, until the next
                  request fits.
                example: '42'
              required: true
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    example: Contacts listed
                  metaData:
                    type: object
                    properties:
                      warnings:
                        type: array
                        items:
                          type: string
                  data:
                    $ref: '#/components/schemas/ContactPage'
                required:
                  - message
                  - metaData
                  - data
        '400':
          description: The input was rejected
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                type: bad_request
                message: 'partyId: Invalid uuid'
        '401':
          description: The API key is missing, wrong or revoked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                type: unauthorized
                message: 'Send a valid API key as Authorization: Bearer gd_key_…'
        '429':
          description: >-
            Rate limit reached: per workspace, 100 writes a minute and 2,000 an
            hour, 200 reads a minute and 4,000 an hour. Retry-After says when to
            try again.
          headers:
            X-RateLimit-Limit:
              schema:
                type: string
                description: Requests allowed in the window.
                example: '100'
              required: true
            X-RateLimit-Remaining:
              schema:
                type: string
                description: Requests left in the window.
                example: '97'
              required: true
            X-RateLimit-Reset:
              schema:
                type: string
                description: >-
                  Seconds until the window resets; on a 429, until the next
                  request fits.
                example: '42'
              required: true
            Retry-After:
              schema:
                type: string
                description: Seconds to wait before retrying.
                example: '30'
              required: true
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
              example:
                type: rate_limited
                message: Rate limit reached. Retry in 30s.
components:
  schemas:
    ContactPage:
      type: object
      properties:
        items:
          type: array
          items:
            $ref: '#/components/schemas/Contact'
        nextCursor:
          type: string
          nullable: true
          description: Send as cursor for the next page; null on the last.
      required:
        - items
        - nextCursor
    Error:
      type: object
      properties:
        type:
          type: string
          enum:
            - bad_request
            - unauthorized
            - forbidden
            - not_found
            - conflict
            - limit_reached
            - rate_limited
            - server_error
        message:
          type: string
      required:
        - type
        - message
    Contact:
      type: object
      properties:
        id:
          type: string
          description: The CRM's own id.
        dbId:
          type: string
          example: user_42
        name:
          type: string
          example: Ada Lovelace
        kind:
          type: string
          enum:
            - person
            - organization
        emails:
          type: array
          items:
            type: string
          example:
            - ada@example.com
        phones:
          type: array
          items:
            type: string
          example:
            - '+14155550123'
        externalAccounts:
          type: array
          items:
            $ref: '#/components/schemas/ExternalAccount'
        lifecycle:
          type: string
          enum:
            - unknown
            - prospect
            - qualified
            - trial
            - customer
            - churn_risk
            - former_customer
          description: Where the contact stands, decided by the CRM.
        unsubscribed:
          type: boolean
          description: Whether the contact opted out of messages.
        archived:
          type: boolean
        createdAt:
          type: string
        updatedAt:
          type: string
      required:
        - id
        - dbId
        - name
        - kind
        - emails
        - phones
        - externalAccounts
        - lifecycle
        - unsubscribed
        - archived
        - createdAt
        - updatedAt
    ExternalAccount:
      type: object
      properties:
        type:
          type: string
          description: The system the account lives in.
          example: stripe
        value:
          type: string
          description: Its id there.
          example: cus_123
        createdAt:
          type: string
          description: When it was linked.
          example: '2026-10-14T09:00:00.000Z'
      required:
        - type
        - value
        - createdAt
  securitySchemes:
    apiKey:
      type: http
      scheme: bearer
      description: A key from Settings → API keys. It starts with gd_key_.

````

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