List or fetch WhatsApp messages
curl --request GET \
--url https://app.escrybe.com.br/api/whatsapp/v1/get \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://app.escrybe.com.br/api/whatsapp/v1/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/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/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/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/get")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.escrybe.com.br/api/whatsapp/v1/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{
"status": 200,
"status_message": "<string>",
"data": {
"messages": [
{
"id": "<string>",
"visual_id": "<string>",
"message_sender_name": "<string>",
"sender_document": "<string>",
"recipient_name": "<string>",
"recipient_phone": "<string>",
"recipient_document": "<string>",
"body": "<string>",
"media_url": "<string>",
"media_url_presigned": "<string>",
"media_filename": "<string>",
"is_template": "<string>",
"template_id": "<string>",
"template_name": "<string>",
"template_lang": "<string>",
"template_variables": "<string>",
"paymentMethod": "<string>",
"value": "<string>",
"message_status": "<string>",
"created_at": "<string>",
"team_member_id": "<string>",
"team_name": "<string>",
"outbox_id": "<string>",
"status": "<string>",
"attempt_count": "<string>",
"last_error": "<string>",
"sent_at": "<string>",
"delivered_at": "<string>",
"read_at": "<string>",
"updated_at": "<string>",
"sender_id": "<string>",
"sender_name": "<string>",
"sender_phone": "<string>",
"header_text": "<string>",
"body_text": "<string>",
"footer_text": "<string>",
"header_format": "<string>",
"variables_count": "<string>",
"events": [
{
"event_type": "<string>",
"created_at": "<string>",
"raw_payload": "<string>"
}
]
}
],
"pagination": {
"total": 123,
"limit": 123,
"offset": 123,
"has_more": true
}
}
}{
"status": 400,
"status_message": "Campos obrigatórios não preenchidos",
"data": null
}{
"status": 401,
"status_message": "Unauthorized - invalid credentials",
"data": null
}{
"status": 200,
"status_message": "<string>",
"data": {}
}{
"status": 200,
"status_message": "<string>",
"data": {}
}WhatsApp Messages
List or fetch WhatsApp messages
GET
/
api
/
whatsapp
/
v1
/
get
List or fetch WhatsApp messages
curl --request GET \
--url https://app.escrybe.com.br/api/whatsapp/v1/get \
--header 'Authorization: Basic <encoded-value>'import requests
url = "https://app.escrybe.com.br/api/whatsapp/v1/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/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/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/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/get")
.header("Authorization", "Basic <encoded-value>")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.escrybe.com.br/api/whatsapp/v1/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{
"status": 200,
"status_message": "<string>",
"data": {
"messages": [
{
"id": "<string>",
"visual_id": "<string>",
"message_sender_name": "<string>",
"sender_document": "<string>",
"recipient_name": "<string>",
"recipient_phone": "<string>",
"recipient_document": "<string>",
"body": "<string>",
"media_url": "<string>",
"media_url_presigned": "<string>",
"media_filename": "<string>",
"is_template": "<string>",
"template_id": "<string>",
"template_name": "<string>",
"template_lang": "<string>",
"template_variables": "<string>",
"paymentMethod": "<string>",
"value": "<string>",
"message_status": "<string>",
"created_at": "<string>",
"team_member_id": "<string>",
"team_name": "<string>",
"outbox_id": "<string>",
"status": "<string>",
"attempt_count": "<string>",
"last_error": "<string>",
"sent_at": "<string>",
"delivered_at": "<string>",
"read_at": "<string>",
"updated_at": "<string>",
"sender_id": "<string>",
"sender_name": "<string>",
"sender_phone": "<string>",
"header_text": "<string>",
"body_text": "<string>",
"footer_text": "<string>",
"header_format": "<string>",
"variables_count": "<string>",
"events": [
{
"event_type": "<string>",
"created_at": "<string>",
"raw_payload": "<string>"
}
]
}
],
"pagination": {
"total": 123,
"limit": 123,
"offset": 123,
"has_more": true
}
}
}{
"status": 400,
"status_message": "Campos obrigatórios não preenchidos",
"data": null
}{
"status": 401,
"status_message": "Unauthorized - invalid credentials",
"data": null
}{
"status": 200,
"status_message": "<string>",
"data": {}
}{
"status": 200,
"status_message": "<string>",
"data": {}
}Authorizations
HTTP Basic where username is your account e-mail and password is your security token.
Query Parameters
When set, returns a single detailed message instead of the list.
Filter the outbox by status (e.g. pending, sent).
Required range:
x <= 100⌘I