---
title: "Get All Group Templates"
method: GET
path: "/orgunit/{orgunitId}/groups/{groupId}/templates"
tags: ["Group"]
---

# Get All Group Templates

`GET /orgunit/{orgunitId}/groups/{groupId}/templates`

Retrieves a paginated list of group-level message templates.  Supports global search filtering by template name or body text,  sorting options, and direct lookup using a specific template ID.

## Path parameters

- `orgunitId` string, required
- `groupId` string, required

## Query parameters

- `search` string
- `pageNumber` integer
- `pageSize` integer
- `sorting` 'Ascending' | 'Descending'
- `templateId` string
- `status` 'All' | 'Active' | 'Pending' | 'Rejected' | 'Flagged' | 'Failed'

## Response `200`

Success

- TemplatePaginatedResponse3ExternalApiResponseNew
  - `data` TemplatePaginatedResponse3
    - `pageNumber` integer
    - `pageSize` integer
    - `totalCount` integer
    - `totalPages` integer
    - `data` Template[]
      - `templateId` string, nullable
      - `referenceId` string, nullable
      - `parentOrgunitId` string, nullable
      - `name` string, nullable
      - `message` string, nullable
      - `description` string, nullable
      - `status` string, nullable
      - `reason` string, nullable
      - `type` string, nullable
      - `whatsappTemplate` WhatsappTemplatesRequestParams
        - `name` string, required
        - `referenceId` string, nullable
        - `language` string, required
        - `category` string — MARKETING, UTILITY and AUTHENTICATION
        - `buttons` WhatsappButton[], nullable
          - `type` string, nullable — Values such as URL, QUICK_REPLY, PHONE_NUMBER
          - `postbackData` string, nullable
          - `text` string — Button text required for all types.
          - `phoneNumber` string, nullable — Required for type PHONE_NUMBER
          - `url` string, nullable — Required for type URL
          - `example` string, nullable
        - `body` TemplateBody
          - `text` string, nullable
          - `placeHolders` PlaceHolderData[], nullable — To be used for merge fields such as FirstName, LastName
            - `name` string, nullable
            - `value` string, nullable
        - `footer` TemplateFooter
          - `text` string, nullable
        - `header` TemplateHeader
          - `format` string, nullable — Values such as TEXT, IMAGE, VIDEO, DOCUMENT
          - `url` string, nullable
          - `text` string, nullable
          - `fileName` string, nullable
  - `appCode` string, nullable
  - `message` string, nullable
  - `isError` boolean

## Other responses

- `400` — Bad Request

---

[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/revisions/ca6e9c8f430d/schema)
