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

# Advanced Filtering



## OpenAPI

````yaml /actionkit/openapi.json POST /projects/{project_id}/tools/#CLOSE_ADVANCED_FILTERING
openapi: 3.0.0
info:
  title: ActionKit Tools API
  version: 1.0.0
servers:
  - url: https://actionkit.useparagon.com
    description: US Cloud
security: []
paths:
  /projects/{project_id}/tools/#CLOSE_ADVANCED_FILTERING:
    post:
      summary: Advanced Filtering
      parameters:
        - name: project_id
          in: path
          required: true
          schema:
            type: string
            description: >-
              Your Paragon Project ID. You can copy your Project ID from your
              dashboard URL or by clicking Copy Project ID under the Environment
              switcher.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                tool:
                  type: string
                  default: CLOSE_ADVANCED_FILTERING
                parameters:
                  type: object
                  properties:
                    jsonFilter:
                      type: object
                      description: >-
                        Json Filter : Write a query using the Close CRM Advanced
                        Filtering specification. See the close docs
                        (https://developer.close.com/resources/advanced-filtering/)
                        for more details. (example: "{
                          "query":{ 
                            "queries": [
                              {
                                "object_type": "contact",
                                "type": "object_type"
                              },
                              {
                                "type": "field_condition",
                                "field": {
                                  "object_type": "contact",
                                  "type": "regular_field",
                                  "field_name": "title"
                                },
                                "condition": {
                                  "type": "text",
                                  "mode": "full_words",
                                  "value": "CEO"
                                }
                              }
                            ],
                            "type": "and",
                            },
                          "_fields": {
                            "contact": ["id", "name", "title"]
                          }
                        }")
                      properties: {}
                    recordType:
                      type: string
                      description: Record Type
                      enum:
                        - lead
                        - opportunity
                        - contact
                        - task
                    paginationParameters:
                      type: object
                      description: Pagination Parameters
                      properties:
                        skip:
                          type: number
                          description: Skip(_skip) for skip the number of items to return
                        limit:
                          type: number
                          description: >-
                            Limit(_limit) to limit the number of items to
                            return. Default is 100
                  required:
                    - jsonFilter
                    - recordType
                  x-integration: close
              required:
                - tool
                - parameters
      responses:
        '200':
          description: Success
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: >-
        Your [Paragon User
        Token](/getting-started/installing-the-connect-sdk#setup) (JWT), which
        you can generate using your project's signing keys.

````