Listar templates
curl --request GET \
--url https://api.liderhub.com.br/v1/templates \
--header 'x-company-key: <api-key>'import requests
url = "https://api.liderhub.com.br/v1/templates"
headers = {"x-company-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-company-key': '<api-key>'}};
fetch('https://api.liderhub.com.br/v1/templates', 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://api.liderhub.com.br/v1/templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-company-key: <api-key>"
],
]);
$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.liderhub.com.br/v1/templates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-company-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.liderhub.com.br/v1/templates")
.header("x-company-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liderhub.com.br/v1/templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-company-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"templates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hasVariables": true,
"variableCount": 123,
"type": "conversation",
"trigger": "<string>",
"content": "<string>",
"caption": "<string>",
"fileUrl": "<string>",
"fileName": "<string>",
"metaName": "<string>",
"metaStatus": "APPROVED",
"metaComponents": {},
"metadata": [
{
"status": "APPROVED",
"category": "MARKETING",
"language": "pt_BR",
"waba": "<string>",
"id": "<string>"
}
]
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 100,
"totalPages": 5,
"hasNextPage": true,
"hasPreviousPage": false
}
}Templates
Listar templates
Lista mensagens rápidas (templates) do workspace. Filtros: type, status Meta, paginação. Para envio use POST /v1/send/template.
GET
/
v1
/
templates
Listar templates
curl --request GET \
--url https://api.liderhub.com.br/v1/templates \
--header 'x-company-key: <api-key>'import requests
url = "https://api.liderhub.com.br/v1/templates"
headers = {"x-company-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-company-key': '<api-key>'}};
fetch('https://api.liderhub.com.br/v1/templates', 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://api.liderhub.com.br/v1/templates",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-company-key: <api-key>"
],
]);
$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.liderhub.com.br/v1/templates"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-company-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.liderhub.com.br/v1/templates")
.header("x-company-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.liderhub.com.br/v1/templates")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-company-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"templates": [
{
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"hasVariables": true,
"variableCount": 123,
"type": "conversation",
"trigger": "<string>",
"content": "<string>",
"caption": "<string>",
"fileUrl": "<string>",
"fileName": "<string>",
"metaName": "<string>",
"metaStatus": "APPROVED",
"metaComponents": {},
"metadata": [
{
"status": "APPROVED",
"category": "MARKETING",
"language": "pt_BR",
"waba": "<string>",
"id": "<string>"
}
]
}
],
"pagination": {
"page": 1,
"limit": 20,
"total": 100,
"totalPages": 5,
"hasNextPage": true,
"hasPreviousPage": false
}
}Autorizações
Chave de autenticação do workspace (gerada na plataforma Liderhub)
Parâmetros de consulta
Filtrar por tipo da mensagem rápida
Opções disponíveis:
conversation, imageMessage, videoMessage, audioMessage, documentMessage, button Filtrar pelo status Meta em metadata (APPROVED, PENDING, REJECTED)
Opções disponíveis:
APPROVED, PENDING, REJECTED Página (padrão: 1)
Exemplo:
1
Itens por página (padrão: 20, máximo: 100)
Exemplo:
20
Última modificação em 19 de agosto de 2026
Esta página foi útil?
⌘I