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

# Start contact export job

> Enqueues a CSV export of contacts and returns immediately with a `fileId` — poll `GET /v1/contacts/export-files/{fileId}` for status and the download URL once it finishes. Either `contactIds` or `exportAll: true` with an optional `filter` is required. Example: `{"fields":["sys:firstName","sys:email"],"exportAll":true,"filter":{"contactFilter":{...}}}`.



## OpenAPI

````yaml /api-reference/platform-api.json post /v1/contacts/export
openapi: 3.1.1
info:
  title: ChatbotX
  version: 0.0.1
servers:
  - url: https://app.chatbotx.io/api
security:
  - bearerAuth: []
  - developerAccessToken: []
  - tokenInSearchParams: []
paths:
  /v1/contacts/export:
    post:
      tags:
        - Contacts
      summary: Start contact export job
      description: >-
        Enqueues a CSV export of contacts and returns immediately with a
        `fileId` — poll `GET /v1/contacts/export-files/{fileId}` for status and
        the download URL once it finishes. Either `contactIds` or `exportAll:
        true` with an optional `filter` is required. Example:
        `{"fields":["sys:firstName","sys:email"],"exportAll":true,"filter":{"contactFilter":{...}}}`.
      operationId: contacts.export
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                fields:
                  type: array
                  minItems: 1
                  items:
                    type: string
                  description: >-
                    Contact fields to include as CSV columns, e.g.
                    `sys:firstName`, `sys:email`, or a custom field id.
                contactIds:
                  type: array
                  items:
                    type: string
                    pattern: ^\d+$
                  description: >-
                    Specific contact ids to export. Required unless `exportAll`
                    is true.
                exportAll:
                  type: boolean
                  description: >-
                    Export every contact matching `filter` (or the whole
                    workspace if omitted).
                filter:
                  type: object
                  properties:
                    keyword:
                      type: string
                      description: >-
                        Case-insensitive substring match against the contact's
                        name, email, or phone.
                    contactFilter:
                      type: object
                      properties:
                        operator:
                          enum:
                            - and
                            - or
                          type: string
                        conditions:
                          type: array
                          items:
                            anyOf:
                              - anyOf:
                                  - type: object
                                    properties:
                                      field:
                                        const: locale
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: language
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: fullName
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: country
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: continent
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: gender
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: subscribedToBroadcast
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: contactCreatedAt
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: source
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: conversationTransferredToHuman
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: interactedInLast24h
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: followUp
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: archived
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: blocked
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: currentChannel
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: inbox
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: timezone
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: lastSeen
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: lastSent
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: lastInteraction
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: contactCreatedDateMinutesAgo
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: lastSeenMinutesAgo
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: lastInteractionMinutesAgo
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: lastUserInput
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: lastComment
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: lastUserInputType
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: email
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: phone
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: hasContactInfo
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: tags
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: broadcastSent
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: broadcastDelivered
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: broadcastSeen
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: broadcastClicked
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: broadcastFailed
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: subscribedToDripCampaign
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: entryPointsLinks
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: questionnaireStarted
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: questionnaireInProgress
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: questionnaireFinished
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: conversationAssigned
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: unreplied
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: unread
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: existingContact
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: consecutiveAiFailures
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: emailWasVerified
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: optedInForEmail
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: fromCtwaAd
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                                  - type: object
                                    properties:
                                      field:
                                        const: ctwaConversion
                                      operator:
                                        enum:
                                          - in
                                          - notIn
                                          - isEmpty
                                          - isNotEmpty
                                          - eq
                                          - ne
                                          - startsWith
                                          - endsWith
                                          - contains
                                          - notContains
                                          - lt
                                          - lte
                                          - gt
                                          - gte
                                          - isBetween
                                          - notBetween
                                          - used
                                        type: string
                                      value:
                                        anyOf:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: array
                                            items:
                                              type: string
                                              minLength: 1
                                              maxLength: 255
                                          - type: array
                                            prefixItems:
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                              - type: string
                                                minLength: 1
                                                maxLength: 255
                                    required:
                                      - field
                                      - operator
                              - type: object
                                properties:
                                  field:
                                    const: customField
                                  customFieldId:
                                    type: string
                                    minLength: 1
                                  customFieldType:
                                    enum:
                                      - shortText
                                      - email
                                      - phoneNumber
                                      - number
                                      - date
                                      - datetime
                                      - boolean
                                      - longText
                                    type: string
                                  valueType:
                                    enum:
                                      - multiSelect
                                      - select
                                      - text
                                      - boolean
                                      - datetime
                                      - number
                                    type: string
                                  operator:
                                    enum:
                                      - in
                                      - notIn
                                      - isEmpty
                                      - isNotEmpty
                                      - eq
                                      - ne
                                      - startsWith
                                      - endsWith
                                      - contains
                                      - notContains
                                      - lt
                                      - lte
                                      - gt
                                      - gte
                                      - isBetween
                                      - notBetween
                                      - used
                                    type: string
                                  value:
                                    anyOf:
                                      - type: string
                                        minLength: 1
                                        maxLength: 255
                                      - type: array
                                        prefixItems:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                required:
                                  - field
                                  - customFieldId
                                  - valueType
                                  - operator
                              - type: object
                                properties:
                                  field:
                                    const: botField
                                  botFieldId:
                                    type: string
                                    minLength: 1
                                  botFieldType:
                                    enum:
                                      - shortText
                                      - email
                                      - phoneNumber
                                      - number
                                      - date
                                      - datetime
                                      - boolean
                                      - longText
                                    type: string
                                  valueType:
                                    enum:
                                      - multiSelect
                                      - select
                                      - text
                                      - boolean
                                      - datetime
                                      - number
                                    type: string
                                  operator:
                                    enum:
                                      - in
                                      - notIn
                                      - isEmpty
                                      - isNotEmpty
                                      - eq
                                      - ne
                                      - startsWith
                                      - endsWith
                                      - contains
                                      - notContains
                                      - lt
                                      - lte
                                      - gt
                                      - gte
                                      - isBetween
                                      - notBetween
                                      - used
                                    type: string
                                  value:
                                    anyOf:
                                      - type: string
                                        minLength: 1
                                        maxLength: 255
                                      - type: array
                                        prefixItems:
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                          - type: string
                                            minLength: 1
                                            maxLength: 255
                                required:
                                  - field
                                  - botFieldId
                                  - valueType
                                  - operator
                              - type: object
                                properties:
                                  field:
                                    const: couponTopic
                                  topicId:
                                    type: string
                                    minLength: 1
                                  operator:
                                    enum:
                                      - in
                                      - notIn
                                      - isEmpty
                                      - isNotEmpty
                                      - eq
                                      - ne
                                      - startsWith
                                      - endsWith
                                      - contains
                                      - notContains
                                      - lt
                                      - lte
                                      - gt
                                      - gte
                                      - isBetween
                                      - notBetween
                                      - used
                                    type: string
                                  value:
                                    type: string
                                    minLength: 1
                                    maxLength: 255
                                required:
                                  - field
                                  - topicId
                                  - operator
                              - type: object
                                properties:
                                  field:
                                    const: ctwaRetarget
                                  segment:
                                    enum:
                                      - conversations
                                      - leads
                                      - purchases
                                    type: string
                                  adId:
                                    type: string
                                    minLength: 1
                                  integrationWhatsappId:
                                    type: string
                                    pattern: ^\d+$
                                  channel:
                                    enum:
                                      - whatsapp
                                      - messenger
                                      - instagram
                                    type: string
                                  since:
                                    type: string
                                    pattern: ^\d{4}-\d{2}-\d{2}$
                                  until:
                                    type: string
                                    pattern: ^\d{4}-\d{2}-\d{2}$
                                required:
                                  - field
                                  - segment
                                  - since
                                  - until
                        timezone:
                          type: string
                          maxLength: 64
                      required:
                        - operator
                        - conditions
                      description: >-
                        Structured filter for advanced matching beyond keyword.
                        See `contacts.listFilterFields` for the field/operator
                        reference.
                  description: Narrows which contacts `exportAll` exports.
              required:
                - fields
      responses:
        '202':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  fileId:
                    type: string
                    pattern: ^\d+$
                    description: >-
                      Export file id (numeric string). Poll
                      `contacts.getExportFile` with it.
                required:
                  - fileId
        '400':
          description: '400'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: businessError
                      status:
                        const: 400
                      message:
                        type: string
                        default: An error occurred while processing your request
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - $ref: '#/components/schemas/UndefinedError'
        '401':
          description: '401'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: UNAUTHORIZED
                      status:
                        const: 401
                      message:
                        type: string
                        default: Authentication required
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: INVALID_CHATBOT_TOKEN
                      status:
                        const: 401
                      message:
                        type: string
                        default: Invalid or missing workspace API token
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - $ref: '#/components/schemas/UndefinedError'
        '403':
          description: '403'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: FORBIDDEN
                      status:
                        const: 403
                      message:
                        type: string
                        default: You do not have permission to perform this action
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: trialExpired
                      status:
                        const: 403
                      message:
                        type: string
                        default: Trial expired
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: macLimitReached
                      status:
                        const: 403
                      message:
                        type: string
                        default: Monthly active contact limit reached
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - $ref: '#/components/schemas/UndefinedError'
        '422':
          description: '422'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: invalidRequestData
                      status:
                        const: 422
                      message:
                        type: string
                        default: Input validation failed
                      data:
                        type: object
                        properties:
                          issues:
                            type: array
                            items:
                              type: object
                              properties:
                                message:
                                  type: string
                                path:
                                  type: array
                                  items:
                                    anyOf:
                                      - type: string
                                      - type: number
                                      - type: object
                                        properties:
                                          key:
                                            anyOf:
                                              - type: string
                                              - type: number
                                        required:
                                          - key
                                        additionalProperties: {}
                              required:
                                - message
                              additionalProperties: {}
                        required:
                          - issues
                        additionalProperties: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                      - data
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: validation
                      status:
                        const: 422
                      message:
                        type: string
                        default: Validation error
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - $ref: '#/components/schemas/UndefinedError'
        '429':
          description: '429'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: tooManyRequests
                      status:
                        const: 429
                      message:
                        type: string
                        default: Too many requests
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - $ref: '#/components/schemas/UndefinedError'
        '500':
          description: '500'
          content:
            application/json:
              schema:
                oneOf:
                  - type: object
                    properties:
                      defined:
                        const: true
                      code:
                        const: INTERNAL_SERVER_ERROR
                      status:
                        const: 500
                      message:
                        type: string
                        default: An unexpected error occurred
                      data: {}
                    required:
                      - defined
                      - code
                      - status
                      - message
                  - $ref: '#/components/schemas/UndefinedError'
components:
  schemas:
    UndefinedError:
      type: object
      properties:
        defined:
          const: false
        code:
          type: string
        status:
          type: number
        message:
          type: string
        data: {}
      required:
        - defined
        - code
        - status
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    developerAccessToken:
      type: http
      scheme: bearer
    tokenInSearchParams:
      type: apiKey
      in: query
      name: token

````