curl --request GET \
--url https://api.routa.chat/v1/templates/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.routa.chat/v1/templates/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.routa.chat/v1/templates/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.routa.chat/v1/templates/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.routa.chat/v1/templates/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "tmpl_01J8ZK9M3Q7XABCDEFGHJKMNPQ",
"channel": "chan_01J8ZK9M3Q7XABCDEFGHJKMNPQ",
"name": "order_confirmation",
"language": "en_US",
"category": "marketing",
"body_text": "Hi {{1}}! Your order {{2}} is confirmed.",
"variables": [
{
"index": 1,
"example": "Ana"
}
],
"status": "draft",
"rejection_reason": "abusive_content",
"failure_code": null,
"failure_detail": null,
"deletion_requested": false,
"deletion_failure_detail": null,
"origin": "routa",
"read_only": false,
"unsupported_components": [],
"created_at": "2026-09-04T13:22:41.031Z",
"updated_at": "2026-09-04T13:22:41.031Z",
"components": {
"header": {
"kind": "text",
"text": "<string>",
"example": "<string>"
},
"footer": {
"text": "<string>"
},
"buttons": [
{
"kind": "quick_reply",
"text": "<string>"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "channel_inactive",
"message": "Channel chan_01J8... is not active and cannot send messages.",
"request_id": "req_01J8ZK9M3Q7XABCDEFGHJKMNPQ",
"param": "components.buttons.0.example",
"doc_url": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request_error",
"code": "channel_inactive",
"message": "Channel chan_01J8... is not active and cannot send messages.",
"request_id": "req_01J8ZK9M3Q7XABCDEFGHJKMNPQ",
"param": "components.buttons.0.example",
"doc_url": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request_error",
"code": "channel_inactive",
"message": "Channel chan_01J8... is not active and cannot send messages.",
"request_id": "req_01J8ZK9M3Q7XABCDEFGHJKMNPQ",
"param": "components.buttons.0.example",
"doc_url": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request_error",
"code": "channel_inactive",
"message": "Channel chan_01J8... is not active and cannot send messages.",
"request_id": "req_01J8ZK9M3Q7XABCDEFGHJKMNPQ",
"param": "components.buttons.0.example",
"doc_url": "<string>",
"details": {}
}
}Retrieve template
Returns a template with its current approval status. If it was rejected, rejection_reason gives the reason. If Routa could not send it to WhatsApp (status: failed), failure_code gives the reason and failure_detail carries the provider’s own sentence, when it gave one. Through the API, you have to create the template again. In the dashboard, a failed or rejected template can be edited and sent again.
While a deletion requested in the dashboard is in progress, deletion_requested is true and the template cannot be used to send.
curl --request GET \
--url https://api.routa.chat/v1/templates/{id} \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.routa.chat/v1/templates/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.routa.chat/v1/templates/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.routa.chat/v1/templates/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.routa.chat/v1/templates/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"id": "tmpl_01J8ZK9M3Q7XABCDEFGHJKMNPQ",
"channel": "chan_01J8ZK9M3Q7XABCDEFGHJKMNPQ",
"name": "order_confirmation",
"language": "en_US",
"category": "marketing",
"body_text": "Hi {{1}}! Your order {{2}} is confirmed.",
"variables": [
{
"index": 1,
"example": "Ana"
}
],
"status": "draft",
"rejection_reason": "abusive_content",
"failure_code": null,
"failure_detail": null,
"deletion_requested": false,
"deletion_failure_detail": null,
"origin": "routa",
"read_only": false,
"unsupported_components": [],
"created_at": "2026-09-04T13:22:41.031Z",
"updated_at": "2026-09-04T13:22:41.031Z",
"components": {
"header": {
"kind": "text",
"text": "<string>",
"example": "<string>"
},
"footer": {
"text": "<string>"
},
"buttons": [
{
"kind": "quick_reply",
"text": "<string>"
}
]
}
}{
"error": {
"type": "invalid_request_error",
"code": "channel_inactive",
"message": "Channel chan_01J8... is not active and cannot send messages.",
"request_id": "req_01J8ZK9M3Q7XABCDEFGHJKMNPQ",
"param": "components.buttons.0.example",
"doc_url": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request_error",
"code": "channel_inactive",
"message": "Channel chan_01J8... is not active and cannot send messages.",
"request_id": "req_01J8ZK9M3Q7XABCDEFGHJKMNPQ",
"param": "components.buttons.0.example",
"doc_url": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request_error",
"code": "channel_inactive",
"message": "Channel chan_01J8... is not active and cannot send messages.",
"request_id": "req_01J8ZK9M3Q7XABCDEFGHJKMNPQ",
"param": "components.buttons.0.example",
"doc_url": "<string>",
"details": {}
}
}{
"error": {
"type": "invalid_request_error",
"code": "channel_inactive",
"message": "Channel chan_01J8... is not active and cannot send messages.",
"request_id": "req_01J8ZK9M3Q7XABCDEFGHJKMNPQ",
"param": "components.buttons.0.example",
"doc_url": "<string>",
"details": {}
}
}Authorizations
Response
Success
The template body, with the {{1}}, {{2}}, … placeholders. It is null only on an imported, read-only template (read_only), which Routa cannot reproduce.
"Hi {{1}}! Your order {{2}} is confirmed."
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.
draft, submitted, pending, approved, rejected, paused, disabled, failed Components of an imported template that Routa cannot reproduce. Empty when read_only is false.
named_parameters, media_header, location_header, carousel, flow_button, otp_button, copy_code_button, catalog, limited_time_offer, other []