Skip to main content
GET
Retrieve a WhatsApp template

Authorizations

Authorization
string
header
required

A project API key, created in the dashboard.

Path Parameters

template
string
required

ID of the template.

Response

The template.

object
any
required
id
string
required
Example:

"5b0c6f3e-2a41-4d8e-9f7a-1c2d3e4f5a6b"

agent
object
required

The agent this belongs to.

name
string
required

The template's name in Meta.

Example:

"order_update"

language
string
required

Meta's language code. Each template has one language, and translations are separate templates with the same name.

Example:

"en_US"

category
string
required

Meta's category, such as marketing, utility or authentication.

Example:

"utility"

status
string
required

Meta's review status: approved, pending, rejected, paused, disabled, in_appeal, limit_exceeded, or archived, or deleted if it was deleted in Meta. Meta may add other statuses. Only approved templates can be sent.

Example:

"approved"

rejected_reason
string | null
required

Meta's reason if the template is rejected, paused, or disabled, such as INVALID_FORMAT.

quality_score
string | null
required

Meta's rating of how recipients respond: green, yellow, red, or unknown. null until Meta rates the template.

Example:

"green"

source
enum<string>
required

Whether the template was created in Chatling or in Meta's WhatsApp Manager.

Available options:
chatling,
meta
sendable
boolean
required

Whether the template can be sent. It must be approved, Chatling must support all its parts, and an image, video, or document header must have a saved file.

header
object | null
required
body
string
required

The template text, with variables as {{name}} or {{1}}.

Example:

"Hi {{name}}, your order shipped."

Fixed text under the body.

buttons
object[]
required
variables
object[]
required

The values to fill in when sending, in order.

created_at
string<date-time>
required

Time at which Chatling first saw the template.

updated_at
string<date-time>
required