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

# Advanced filtered search



## OpenAPI

````yaml /openapi/inbox.yaml post /inbox/search
openapi: 3.1.0
info:
  title: Connie Inbox API
  version: 1.0.0
  description: >
    Unified inbox API for managing conversations across email, WhatsApp, and
    LinkedIn. All endpoints require authentication unless noted otherwise.
servers:
  - url: https://connie.ai/api
    description: Production
security:
  - cookieAuth: []
tags:
  - name: Init & Counts
    description: Initialization and conversation counts
  - name: Conversations
    description: Conversation listing and retrieval
  - name: Messages
    description: Message retrieval and read status
  - name: Compose
    description: Sending emails, starting chats, and drafts
  - name: Labels
    description: Label management
  - name: Assignments
    description: Conversation assignment to team members
  - name: Search
    description: Full-text and filtered search
  - name: Attachments
    description: File attachments
  - name: Spam
    description: Spam management
  - name: Views & Starred
    description: Custom views and starred conversations
paths:
  /inbox/search:
    post:
      tags:
        - Search
      summary: Advanced filtered search
      operationId: searchInboxFiltered
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                query:
                  type: string
                filters:
                  type: object
                  properties:
                    accountIds:
                      type: array
                      items:
                        type: string
                    types:
                      type: array
                      items:
                        type: string
                    providers:
                      type: array
                      items:
                        type: string
                    sentiments:
                      type: array
                      items:
                        type: string
                    labels:
                      type: array
                      items:
                        type: string
                    dateFrom:
                      type: string
                      format: date-time
                    dateTo:
                      type: string
                      format: date-time
                limit:
                  type: integer
                  default: 20
                offset:
                  type: integer
                  default: 0
      responses:
        '200':
          description: Filtered search results
          content:
            application/json:
              schema:
                type: object
                properties:
                  conversations:
                    type: array
                    items:
                      $ref: '#/components/schemas/Conversation'
                  total:
                    type: integer
                  hasMore:
                    type: boolean
                  responseTime:
                    type: number
components:
  schemas:
    Conversation:
      type: object
      properties:
        id:
          type: string
          format: uuid
        account_id:
          type: string
        type:
          type: string
          enum:
            - email
            - whatsapp
            - linkedin
        subject:
          type: string
          nullable: true
        last_message_at:
          type: string
          format: date-time
        unread_count:
          type: integer
        is_starred:
          type: boolean
        folder:
          type: string
        sentiment:
          type: string
          nullable: true
        assigned_to:
          type: string
          nullable: true
  securitySchemes:
    cookieAuth:
      type: apiKey
      in: cookie
      name: session

````

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