---
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`

## Request

- Base URL: `https://api-docs.ministrybytext.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.ministrybytext.com/orgunit/{orgunitId}/groups/{groupId}/templates`
- Auth: none declared
- TypeScript: <https://skmtc.dev/ministrybytext/apis/pbt-api-documentation/docs/orgunit/:orgunitId/groups/:groupId/templates/get.ts> (a function with typed inputs; its response is checked against the schema)

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.dev/ministrybytext/apis/pbt-api-documentation.md) - [All operations](https://skmtc.dev/ministrybytext/apis/pbt-api-documentation/llms.txt) - [OpenAPI document](https://skmtc.dev/ministrybytext/apis/pbt-api-documentation/revisions/7d64a1f0b0c3?raw)
