---
title: "Get all contacts"
method: GET
path: "/orgunit/{orgunitId}/contact"
tags: ["Contact"]
---

# Get all contacts

`GET /orgunit/{orgunitId}/contact`

## Path parameters

- `orgunitId` string, required

## Query parameters

- `startsWith` string
- `search` string
- `mobileCountryCode` string
- `pageNumber` integer
- `pageSize` integer

## Response `200`

Success

- ContactResponse1PaginatedResponse3ExternalApiResponseNew
  - `data` ContactResponsePaginatedResponse
    - `pageNumber` integer
    - `pageSize` integer
    - `totalCount` integer
    - `totalPages` integer
    - `data` ContactResponse[], nullable
      - `id` string, nullable
      - `firstName` string, nullable
      - `lastName` string, nullable
      - `mobileNo` string, nullable
      - `createdOn` string, date-time
      - `address` AddressResponse
        - `address1` string, nullable
        - `state` string, nullable
        - `postalCode` string, nullable
        - `countryCode` string, nullable
      - `gender` string, nullable
      - `age` integer, nullable
      - `orgunitId` string, nullable
      - `relations` RelationsResponse[], nullable
        - `name` string, nullable
        - `relationship` string, nullable
      - `region` string, nullable
      - `subscriptionGroup` SubscriptionGroup[], nullable
        - `groupId` string, nullable
        - `status` string, nullable
      - `birthDate` string, date-time
      - `imageUrl` string, nullable
      - `customParams` CustomParams[], nullable
        - `name` string
        - `value` string
  - `appCode` string, nullable
  - `message` string, nullable
  - `isError` boolean

## Other responses

- `400` — Bad Request
- `401` — Unauthorized

---

[API](https://skmtc.net/ministrybytext/apis/pbt-api-documentation.md) · [All operations](https://skmtc.net/ministrybytext/apis/pbt-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/ministrybytext/pbt-api-documentation/versions/ca6e9c8f430d/schema)
