Listar modelos
curl --request GET \
--url https://app.escrybe.com.br/api/whatsapp/v1/templates/get \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://app.escrybe.com.br/api/whatsapp/v1/templates/get"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://app.escrybe.com.br/api/whatsapp/v1/templates/get', 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://app.escrybe.com.br/api/whatsapp/v1/templates/get",
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: Basic <encoded-value>"
],
]);
$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://app.escrybe.com.br/api/whatsapp/v1/templates/get"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.escrybe.com.br/api/whatsapp/v1/templates/get")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.escrybe.com.br/api/whatsapp/v1/templates/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"code": 200,
"status": "success",
"message": "<string>",
"data": [
{
"id": 123,
"sender_id": 123,
"sender_name": "<string>",
"sender_phone": "<string>",
"sender_is_system": true,
"created_by": 123,
"name": "<string>",
"display_name": "<string>",
"language": "<string>",
"variables_count": 123,
"variable_names": [
"<string>"
],
"header_text": "<string>",
"body_text": "<string>",
"footer_text": "<string>",
"components": "<string>",
"last_synced_at": "<string>"
}
],
"request_id": "<string>",
"count": 123
}{
"code": 400,
"status": "error",
"message": "Campos obrigatórios não preenchidos",
"data": null
}{
"code": 401,
"status": "error",
"message": "Não autorizado — credenciais inválidas",
"data": null
}{
"code": 200,
"status": "success",
"message": "<string>",
"data": "<unknown>",
"request_id": "<string>"
}{
"code": 200,
"status": "success",
"message": "<string>",
"data": "<unknown>",
"request_id": "<string>"
}WhatsApp Templates
Listar modelos
GET
/
api
/
whatsapp
/
v1
/
templates
/
get
Listar modelos
curl --request GET \
--url https://app.escrybe.com.br/api/whatsapp/v1/templates/get \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://app.escrybe.com.br/api/whatsapp/v1/templates/get"
headers = {"Authorization": "Basic <encoded-value>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Basic <encoded-value>'}};
fetch('https://app.escrybe.com.br/api/whatsapp/v1/templates/get', 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://app.escrybe.com.br/api/whatsapp/v1/templates/get",
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: Basic <encoded-value>"
],
]);
$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://app.escrybe.com.br/api/whatsapp/v1/templates/get"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Basic <encoded-value>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://app.escrybe.com.br/api/whatsapp/v1/templates/get")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.escrybe.com.br/api/whatsapp/v1/templates/get")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Basic <encoded-value>'
response = http.request(request)
puts response.read_body{
"code": 200,
"status": "success",
"message": "<string>",
"data": [
{
"id": 123,
"sender_id": 123,
"sender_name": "<string>",
"sender_phone": "<string>",
"sender_is_system": true,
"created_by": 123,
"name": "<string>",
"display_name": "<string>",
"language": "<string>",
"variables_count": 123,
"variable_names": [
"<string>"
],
"header_text": "<string>",
"body_text": "<string>",
"footer_text": "<string>",
"components": "<string>",
"last_synced_at": "<string>"
}
],
"request_id": "<string>",
"count": 123
}{
"code": 400,
"status": "error",
"message": "Campos obrigatórios não preenchidos",
"data": null
}{
"code": 401,
"status": "error",
"message": "Não autorizado — credenciais inválidas",
"data": null
}{
"code": 200,
"status": "success",
"message": "<string>",
"data": "<unknown>",
"request_id": "<string>"
}{
"code": 200,
"status": "success",
"message": "<string>",
"data": "<unknown>",
"request_id": "<string>"
}Autorizações
HTTP Basic onde o usuário é o e-mail da conta e a senha é o token de segurança.
Parâmetros de consulta
Quando 1, retorna modelos apenas do remetente de sistema ativo.
Opções disponíveis:
0, 1 Opções disponíveis:
0, 1 Opções disponíveis:
approved, pending, rejected, paused, disabled ⌘I