Skip to main content
GET
Retrieve template

Authorizations

Authorization
string
header
required

Project API key, in the format rt_live_... or rt_test_..., sent as Authorization: Bearer <key>.

Scopes

templates:read

Path Parameters

id
string
required

Template ID (tmpl_...).

Response

Success

id
string
required

Template ID.

Example:

"tmpl_01J8ZK9M3Q7XABCDEFGHJKMNPQ"

channel
string
required

Channel the template belongs to.

Example:

"chan_01J8ZK9M3Q7XABCDEFGHJKMNPQ"

name
string
required

Template name.

Example:

"order_confirmation"

language
string
required

The WhatsApp language code, such as pt_BR or en_US.

Example:

"en_US"

category
enum<string>
required

Category: marketing, utility or authentication.

Available options:
marketing,
utility,
authentication
body_text
string | null
required

The template body, with the {{1}}, {{2}}, … placeholders. It is null only on an imported, read-only template (read_only), which Routa cannot reproduce.

Example:

"Hi {{1}}! Your order {{2}} is confirmed."

variables
object[]
required

Positional placeholders of the body ({{1}}, {{2}}, …).

status
enum<string>
required

Approval state. Only approved allows sending. rejected means the provider reviewed the template and refused it. failed means Routa could not send it to the provider. A failed or rejected template can be edited and sent again in the dashboard, and then goes back to submitted.

Available options:
draft,
submitted,
pending,
approved,
rejected,
paused,
disabled,
failed
rejection_reason
enum<string> | null
required

Reason for the rejection, when status is rejected.

Available options:
abusive_content,
incorrect_category,
invalid_format,
scam,
tag_content_mismatch,
other
failure_code
enum<string> | null
required

Why it could not be sent for approval, when status is failed. null in every other status.

Available options:
provider_unavailable,
provider_auth_failed,
provider_rejected_request,
channel_unavailable,
media_unavailable,
attempts_exhausted
Example:

null

failure_detail
string | null
required

Only when status is failed and the provider explained why: its own sentence, written for a person and often in the language of the account. It is informational text. Never compare against it; use failure_code. null otherwise.

Example:

null

deletion_requested
boolean
required

true from the moment a deletion is accepted (made in the dashboard) until Routa finishes deleting the template on WhatsApp. In between, the template cannot be used to send, and a message that cites it returns 422 template_not_sendable. false otherwise.

Example:

false

deletion_failure_detail
string | null
required

Why the last deletion ended without deleting the template, in the provider's own sentence when it gave one. It is informational text. null when no deletion failed.

Example:

null

origin
enum<string>
required

Who created the template: routa for a template created by Routa, provider for one that already existed on WhatsApp and was imported.

Available options:
routa,
provider
Example:

"routa"

read_only
boolean
required

true for an imported template that Routa cannot reproduce. Sending a message with it returns 422 template_not_sendable. Always false when origin is routa.

Example:

false

unsupported_components
enum<string>[]
required

Components of an imported template that Routa cannot reproduce. Empty when read_only is false.

Available options:
named_parameters,
media_header,
location_header,
carousel,
flow_button,
otp_button,
copy_code_button,
catalog,
limited_time_offer,
other
Example:
created_at
string<date-time>
required

When the template was created.

Example:

"2026-09-04T13:22:41.031Z"

updated_at
string<date-time>
required

When the template was last updated.

Example:

"2026-09-04T13:22:41.031Z"

components
object

Header, footer and buttons of the template. The field is omitted, not empty, on a body-only template.