# Get All Contacts in an Org

## OpenAPI Specification

```yaml
openapi: 3.0.1
info:
  title: ''
  description: ''
  version: 1.0.0
paths:
  /contacts:
    get:
      summary: Get All Contacts in an Org
      deprecated: false
      description: >-
        ### Description :

        Contacts represent the data stored for the contacts that are available
        within your Beetexting account. This API helps get all contacts of an
        Organization.


        ### URL : 

        https://connect.beetexting.com/prod/contacts?page=1&size=10&sort=createdDateTime,ASC

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


        **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: page
          in: query
          description: |-
            Zero-based page index (0..N)

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

            Default value : 20
          required: false
          example: 10
          schema:
            type: integer
        - name: sort
          in: query
          description: >-
            Sorting criteria in the format: property,(asc|desc). Default sort
            order is ascending. Multiple sort criteria are supported. The
            parameter type is array[string], i.e. array of Strings


            Default value : List [ "createdDateTime,ASC" ]. 
          required: false
          example:
            - createdDateTime,ASC
          schema:
            type: array
            items:
              type: string
        - name: x-api-key
          in: header
          description: ''
          required: true
          example: fh7g6scysr8V2f5nmVzU64nOzdBoZ7rt1wT1A74S
          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: '936888363936'
                    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-21020108-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
            authRequestParams: []
            tokenRequestParams: []
servers: []
security: []

```
