Skip to main content
GET
/
whatsapp
/
template
/
list
Bot Template Get
curl --request GET \
  --url https://platform.chatsyncs.com/api/v1/whatsapp/template/list
import requests

url = "https://platform.chatsyncs.com/api/v1/whatsapp/template/list"

response = requests.get(url)

print(response.text)
const options = {method: 'GET'};

fetch('https://platform.chatsyncs.com/api/v1/whatsapp/template/list', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://platform.chatsyncs.com/api/v1/whatsapp/template/list",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);

$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://platform.chatsyncs.com/api/v1/whatsapp/template/list"

req, _ := http.NewRequest("GET", url, nil)

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://platform.chatsyncs.com/api/v1/whatsapp/template/list")
.asString();
require 'uri'
require 'net/http'

url = URI("https://platform.chatsyncs.com/api/v1/whatsapp/template/list")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)

response = http.request(request)
puts response.read_body
{
  "status": "1",
  "message": {
    "id": 48,
    "template_id": "437509121867805",
    "whatsapp_business_id": 11,
    "template_name": "ada",
    "template_type": "single",
    "locale": "en_US",
    "header_type": "media",
    "header_subtype": "image",
    "body_content": "To send an interactive message template, make a POST call to /PHONE_NUMBER_ID/",
    "footer_content": "",
    "button_content": "[]",
    "button_type": "none",
    "status": "Rejected",
    "system_template": "0"
  }
}
Returns the WhatsApp message templates created on a bot, including their approval status and underlying template JSON.
See Message Templates for how templates are created and approved in the dashboard, and Template Approval & Rejections for what each status means.
The response includes two different ID-looking fields: id (a short internal ChatSyncs number, e.g. 48) and template_id (a long Meta-assigned number, e.g. 437509121867805). When sending a template with Send Template Message, use the value shown in your dashboard’s template generator for template_id — if you’re unsure which field that corresponds to here, the API Developer Console → Send Text Message generator (see Send Template Message) is the authoritative source.

Query Parameters

apiToken
string
required

Your ChatSyncs API key (not a WhatsApp/Meta access token). Where to find it.

Example:

"API-KEY"

phone_number_id
string
required

The WhatsApp account's phone number ID. Where to find it.

Example:

"PHONE-NUMBER-ID"

Response

200 - application/json

Standard ChatSyncs response. status is "1" on success and "0" on failure.

status
string

"1" = success, "0" = failure.

message
string

Human-readable result message.