> ## 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.

# Search Records Lead



## OpenAPI

````yaml /actionkit/openapi.json POST /projects/{project_id}/tools/#SALESFORCE_SEARCH_RECORDS_V2_LEAD
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/#SALESFORCE_SEARCH_RECORDS_V2_LEAD:
    post:
      summary: Search Records Lead
      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: SALESFORCE_SEARCH_RECORDS_V2_LEAD
                parameters:
                  type: object
                  properties:
                    filterFormula:
                      type: object
                      description: >-
                        A filter in disjunctive normal form: OR of AND groups of
                        single conditions
                      properties:
                        operator:
                          type: string
                          description: Top-level operator must be OR (DNF enforced)
                          enum:
                            - OR
                        conditions:
                          type: array
                          description: >-
                            Each item is an AND group (a conjunction of single
                            conditions)
                          items:
                            type: object
                            properties:
                              operator:
                                type: string
                                description: Each group is an AND of single conditions
                                enum:
                                  - AND
                              conditions:
                                type: array
                                description: List of single conditions (AND together)
                                items:
                                  type: object
                                  properties:
                                    field:
                                      type: string
                                      enum:
                                        - FirstName
                                        - LastName
                                        - Company
                                        - Email
                                        - Phone
                                        - Website
                                        - Title
                                        - Status
                                        - Description
                                    operator:
                                      type: string
                                      enum:
                                        - $none
                                        - $stringContains
                                        - $stringDoesNotContain
                                        - $stringExactlyMatches
                                        - $stringDoesNotExactlyMatch
                                        - $stringIsIn
                                        - $stringIsNotIn
                                        - $stringStartsWith
                                        - $stringDoesNotStartWith
                                        - $stringEndsWith
                                        - $stringDoesNotEndWith
                                        - $numberGreaterThan
                                        - $numberLessThan
                                        - $numberEquals
                                        - $numberDoesNotEqual
                                        - $dateTimeAfter
                                        - $dateTimeBefore
                                        - $dateTimeEquals
                                        - $booleanTrue
                                        - $booleanFalse
                                        - $exists
                                        - $doesNotExist
                                    value:
                                      type: string
                                      description: Value to compare against
                                  required:
                                    - field
                                    - operator
                                    - value
                            required:
                              - operator
                              - conditions
                      required:
                        - operator
                        - conditions
                    sortBy:
                      type: string
                      description: 'Sort By (example: "CreatedDate")'
                    sortDirection:
                      type: string
                      description: Sort Direction
                      enum:
                        - ASC
                        - DESC
                    includeAllFields:
                      type: boolean
                      description: Include All Fields
                    paginationParameters:
                      type: object
                      description: Pagination parameters for paginated results
                      properties:
                        pageCursor:
                          type: string
                          description: The cursor indicating the current page
                  x-integration: salesforce
              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.

````