# Search a contact using Number

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /contacts/search:
    get:
      summary: Search a contact using Number
      deprecated: false
      description: >-
        ### Description :

        Contacts represent the data stored for the contacts that are available
        within your Beetexting account. This API helps search contacts using
        search criteria. Search criteria in the format: 'property(:|<|>)value'.
        Multiple search criterias are supported.
         
        ### URL : 

        https://connect.beetexting.com/prod/contacts/search?q=name:jhon&page=0&size=5

        (While sending the request please make sure to append
        https://connect.beetexting.com/prod if the url in the cUrl command
        starts with /contacts/search ...)


        **Note : To add the OAuth2.0 Auth Token please see the section 'OAuth2.0
        For Beetexting' and 'Postman How-to for beetexting section'
      tags:
        - APIs/Contacts
      parameters:
        - name: q
          in: query
          description: >-
            Search criteria in the format: 'property(:|<|>)value'. Multiple
            search criterias are supported 


            Example: For amount = 100 and bill creation time > 05/10/2023
            12:00:00 AM, the search string is
            'amount:100,createdDateTime>1683720000000' 
          required: true
          example: '13462958864'
          schema:
            type: string
        - name: page
          in: query
          description: |-
            Zero-based page index (0..N) 

            Default value: 0 
          required: false
          example: 0
          schema:
            type: integer
        - name: size
          in: query
          description: |-
            The size of the page to be returned 

            Default value: 20 
          required: false
          example: 5
          schema:
            type: integer
        - name: sort
          in: query
          description: >-
            Sorting criteria in the format: property,(asc|desc). The default
            sort order is ascending. Multiple sort criteria are supported.  It
            takes an array of Strings.


            Default value: List [ "createdDateTime,ASC" ] 
          required: false
          schema:
            type: array
            items:
              type: string
        - name: x-api-key
          in: header
          description: ''
          required: true
          example: HvG7OZaxgz3raDMzX9CYp9105hV9VwDa6zrCS234
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties: {}
                x-apidog-orders: []
              example:
                totalPages: 0
                totalElements: 0
                numberOfElements: 0
                pageable:
                  pageNumber: 0
                  pageSize: 0
                  paged: true
                  unpaged: true
                  offset: 0
                  sort:
                    sorted: true
                    unsorted: true
                    empty: true
                number: 0
                first: true
                last: true
                size: 0
                content:
                  - id: string
                    firstName: string
                    lastName: string
                    name: string
                    mobileNumber: '981712129981'
                    notes:
                      - id: string
                        createdAgentName: string
                        message: string
                        creationDate: 0
                        lastUpdatedDate: 0
                        noteAssociatedType: CONTACT
                        contactId: string
                        agentId: string
                    tags: '[tag1, tag2, tag3..]'
                    email: string
                    blocked: false
                    optOutStatus: false
                    donotDisturb: false
                sort:
                  sorted: true
                  unsorted: true
                  empty: true
                empty: true
          headers: {}
          x-apidog-name: Success
      security:
        - oauth21: []
      x-apidog-folder: APIs/Contacts
      x-apidog-status: released
      x-run-in-apidog: https://app.apidog.com/web/project/1058487/apis/api-21020110-run
components:
  schemas: {}
  securitySchemes:
    oauth21:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: ''
          tokenUrl: ''
          refreshUrl: ''
          scopes: {}
          x-apidog:
            addTokenTo: header
            useTokenType: access_token
            queryParamKey: access_token
            headerPrefix: Bearer
            codeVerifier: ''
            challengeAlgorithm: S256
            clientAuthentication: header
            useTokenConfigAsRefreshTokenConfig: true
            authRequestParams: []
            tokenRequestParams: []
servers: []
security: []

```
