# Get client templates (paginated)

Retrieve a paginated list of all WhatsApp templates for your account. Use searchString to filter by template name, category, language code, or approval status. Results are sorted by sortField (default requestedDate) in the specified direction.

Endpoint: GET /whatsapp-api-service/whatsAppTemplates/getWhatsAppClientTemplates
Version: 3.0.0
Security: apikeyAuth

## Security:

  - `apikeyAuth` (unknown)
    apiKey in header Authorization

## Query parameters:

  - `page` (integer)

  - `size` (integer)

  - `searchString` (string)
    Search by template name, category, language, or status

  - `sortField` (string)

  - `sortDir` (string)

## Response 200:

  - `200` (unknown)
    Success

## Response 200 fields (application/json):

  - `content` (array)

  - `content.id` (string)
    Example: b2c3d4e5-f6a7-8901-b2c3-d4e5f6a78901

  - `content.templateRequest` (string)
    Stringified JSON of the template definition.
    Example: {"template_name":"promo","language":"en_GB"}

  - `content.templateName` (string)
    Example: seasonal_promo_2024

  - `content.namespace` (string)
    Example: whatsapp:hsm:technology:ecommunicate

  - `content.status` (string)
    Example: approved

  - `content.templateType` (string)
    Example: TEXT

  - `content.languageCode` (string)
    Example: en_GB

  - `content.approved` (boolean)
    Example: true

  - `content.whatsAppProvider` (string)
    Enum: "DLG", "WL", "KX", "TW"

  - `content.requestedDate` (string)
    Example: 2026-01-10T08:00:00Z

  - `content.externalId` (string)
    Example: 1234567890123456

  - `content.attachmentType` (string | null)
    Enum: "IMAGE", "DOCUMENT", "VIDEO", "NULL"

  - `content.whatsAppNumber` (string)
    Example: +27123456789

  - `content.rejectedReason` (string | null)
    Example: Template content policy violation

  - `content.qualityScore` (string)
    Enum: "GREEN", "YELLOW", "RED", "UNKNOWN"

  - `totalPages` (integer)
    Example: 5

  - `totalElements` (integer)
    Example: 47

  - `size` (integer)
    Example: 10

  - `number` (integer)
    Example: 0

  - `first` (boolean)
    Example: true

  - `last` (boolean)
    Example: false

  - `empty` (boolean)
    Example: false

## Response 401:

  - `401` (unknown)
    Authentication failed — the API key sent in the `Authorization` header is missing,
invalid, or has been revoked.
**Verify your API key before changing anything else.** Check the key currently active
on your account either in the eCommunicate web UI (API key settings), or by calling
`POST /payless4messaging-service/WhatsApp/authenticate/retrieveApiKey` with your
account credentials — that endpoint needs no existing key, so it works while every
other call is returning `401`. Compare the result with the value your integration is
sending: pass the key on its own (no `Bearer` prefix), trimmed of whitespace, as a
36-character UUID.
Do not retry a `401` — it will fail identically until the key is corrected. See the
[Authentication guide](/guides/authentication#troubleshooting-a-401).

## Response 401 fields (application/json):

  - `status` (string)
    Example: ERROR

  - `message` (string)
    Example: Unauthorized user

  - `requestId` (string)
    Example: c3a1f8e2-4b6d-11ee-be56-0242ac120002

  - `timestamp` (string)
    Example: 2026-01-15T10:30:00Z

