---
title: "Get Zalo template"
method: GET
path: "/zalo/1/sender/{sender}/templates/{templateName}"
tags: ["channels", "zalo", "zalo-service-management", "zalo-template-management"]
---

# Get Zalo template

`GET /zalo/1/sender/{sender}/templates/{templateName}`

## Request

- Base URL: `https://api.infobip.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.infobip.com/zalo/1/sender/{sender}/templates/{templateName}`
- Auth: one of:
  - OAuth 2
    - Client credentials
    - Token URL: `https://api.infobip.com/auth/1/oauth2/token`
  - API key in header `Authorization`
  - API key in header `Authorization`
  - HTTP basic

Returns template's info for given template name.

## Path parameters

- `sender` string, required: Sender ID.
- `templateName` integer, required: Name identifying the template. Must be the same as registered template_id.

## Response `200`

OK

- 6a8bbdacebad88e7e0de8bdfd30e29e04d114b9f00175a0482b9e26b742d85d5TemplateInfo: Information about a ZNS message template.
  - `templateName` integer: Name identifying the template. Must be the same as registered template_id.
  - `displayName` string: Human readable name of the template.
  - `status` string: Template status. Possible values: `PENDING_REVIEW`, `DISABLE`, `ENABLE`, `REJECT`.
  - `reason` string: Reason for current template status.
  - `templateProperties` 6a8bbdacebad88e7e0de8bdfd30e29e04d114b9f00175a0482b9e26b742d85d5TemplateProperty[]: List of template properties.
    - `name` string: Property name.
    - `required` boolean: Indicates if the property is mandatory.
    - `type` string: Property type e.g. STRING.
    - `maxLength` integer: Maximum number of characters that the property value can have.
    - `minLength` integer: Minimum number of characters that the property value can have.
    - `acceptNull` boolean: Indicates if the property value can be null.
  - `templateButtons` 6a8bbdacebad88e7e0de8bdfd30e29e04d114b9f00175a0482b9e26b742d85d5TemplateButton[]: List of template buttons.
    - `type` 'GO_TO_COMPANY_PAGE' | 'MAKE_PHONE_CALL' | 'GO_TO_OA_INFORMATION_PAGE' | 'GO_TO_ZALO_MINI_APP' | 'GO_TO_COMPANY_APPLICATION_PAGE' | 'GO_TO_ANOTHER_WEBSITE_OR_MINI_APP' | 'GO_TO_ANOTHER_APPLICATION' | 'GO_TO_OA_POST' | 'COPY' | 'PAY_NOW' | 'SEE_DETAILS' | 'GO_TO_ELECTRONIC_INVOICE_LOOKUP_PAGE' | 'GO_TO_LANDING_PAGE_APP_DOWNLOAD': Type of button action.
    - `title` string: Button title.
    - `content` string: Button content.
  - `previewUrl` string: Path to the template preview.
  - `templateTag` 'TRANSACTION' | 'CUSTOMER_CARE' | 'PROMOTION': Template tag for classification.
  - `templateContent` 6a8bbdacebad88e7e0de8bdfd30e29e04d114b9f00175a0482b9e26b742d85d5ZbsTemplateContent: Template content.
    - `type` 'AUTHENTICATION' | 'PAYMENT_REQUEST' | 'SERVICE_REVIEW' | 'VOUCHER' | 'CUSTOM', required

## Other responses

- `400`: Bad Request
- `401`: Unauthorized
- `403`: Forbidden
- `404`: Not Found
- `429`: Too Many Requests
- `500`: Internal Server Error
- `502`: Bad Gateway

---

[API](https://skmtc.dev/infobip/apis/infobip-openapi-specification.md) - [All operations](https://skmtc.dev/infobip/apis/infobip-openapi-specification/llms.txt) - [OpenAPI document](https://skmtc.dev/infobip/apis/infobip-openapi-specification/revisions/9dcbbaf902de?raw)
