Evolution GO
Resolver convite
Resolve os metadados da newsletter a partir de uma chave de convite (a parte do código de um link de convite de canal).
POST
/
newsletter
/
link
Resolver convite
curl --request POST \
--url https://pilotstatus.com.br/api/layer/evolution-go/newsletter/link \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"key": "0029VaAbCdEfGhIjKlMnOpQr"
}
'import requests
url = "https://pilotstatus.com.br/api/layer/evolution-go/newsletter/link"
payload = { "key": "0029VaAbCdEfGhIjKlMnOpQr" }
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({key: '0029VaAbCdEfGhIjKlMnOpQr'})
};
fetch('https://pilotstatus.com.br/api/layer/evolution-go/newsletter/link', 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://pilotstatus.com.br/api/layer/evolution-go/newsletter/link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => '0029VaAbCdEfGhIjKlMnOpQr'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/api/layer/evolution-go/newsletter/link"
payload := strings.NewReader("{\n \"key\": \"0029VaAbCdEfGhIjKlMnOpQr\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pilotstatus.com.br/api/layer/evolution-go/newsletter/link")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"0029VaAbCdEfGhIjKlMnOpQr\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/api/layer/evolution-go/newsletter/link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"0029VaAbCdEfGhIjKlMnOpQr\"\n}"
response = http.request(request)
puts response.read_body{
"message": "success",
"data": {
"id": "120363313361893999@newsletter",
"state": {
"type": "active"
},
"thread_metadata": {
"creation_time": "1718000000",
"invite": "0029Va8ZfkL1234567890abcd",
"name": {
"text": "WhatsApp Channel Demo",
"id": "1718000000111222",
"update_time": "1718000000111222"
},
"description": {
"text": "Official demo channel.",
"id": "1718000000111223",
"update_time": "1718000000111223"
},
"subscribers_count": "15320",
"verification": "verified",
"picture": {
"url": "https://pps.whatsapp.net/v/t61.24694-24/newsletter_pic.jpg",
"id": "1718000000",
"type": "image",
"direct_path": "/v/t61.24694-24/newsletter_pic.jpg",
"hash": "q1w2e3r4t5y6u7i8o9p0YWJjZGU="
},
"preview": {
"url": "https://pps.whatsapp.net/v/t61.24694-24/newsletter_preview.jpg",
"id": "1718000000",
"type": "preview",
"direct_path": "/v/t61.24694-24/newsletter_preview.jpg",
"hash": "q1w2e3r4t5y6u7i8o9p0YWJjZGU="
},
"settings": {
"reaction_codes": {
"value": "all"
}
}
},
"viewer_metadata": null
}
}{
"status": 400,
"error": "Bad Request",
"message": "Invalid payload"
}Autorizações
Your Pilot Status API key (ps_...). Evolution GO also accepts Authorization: Bearer <key>.
Corpo
application/json
Chave de convite do link do canal (por exemplo, a parte após whatsapp.com/channel/).
Exemplo:
"0029VaAbCdEfGhIjKlMnOpQr"
Esta página foi útil?
⌘I
Resolver convite
curl --request POST \
--url https://pilotstatus.com.br/api/layer/evolution-go/newsletter/link \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"key": "0029VaAbCdEfGhIjKlMnOpQr"
}
'import requests
url = "https://pilotstatus.com.br/api/layer/evolution-go/newsletter/link"
payload = { "key": "0029VaAbCdEfGhIjKlMnOpQr" }
headers = {
"apikey": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {apikey: '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({key: '0029VaAbCdEfGhIjKlMnOpQr'})
};
fetch('https://pilotstatus.com.br/api/layer/evolution-go/newsletter/link', 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://pilotstatus.com.br/api/layer/evolution-go/newsletter/link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'key' => '0029VaAbCdEfGhIjKlMnOpQr'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"apikey: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://pilotstatus.com.br/api/layer/evolution-go/newsletter/link"
payload := strings.NewReader("{\n \"key\": \"0029VaAbCdEfGhIjKlMnOpQr\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("apikey", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pilotstatus.com.br/api/layer/evolution-go/newsletter/link")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"key\": \"0029VaAbCdEfGhIjKlMnOpQr\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/api/layer/evolution-go/newsletter/link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["apikey"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"key\": \"0029VaAbCdEfGhIjKlMnOpQr\"\n}"
response = http.request(request)
puts response.read_body{
"message": "success",
"data": {
"id": "120363313361893999@newsletter",
"state": {
"type": "active"
},
"thread_metadata": {
"creation_time": "1718000000",
"invite": "0029Va8ZfkL1234567890abcd",
"name": {
"text": "WhatsApp Channel Demo",
"id": "1718000000111222",
"update_time": "1718000000111222"
},
"description": {
"text": "Official demo channel.",
"id": "1718000000111223",
"update_time": "1718000000111223"
},
"subscribers_count": "15320",
"verification": "verified",
"picture": {
"url": "https://pps.whatsapp.net/v/t61.24694-24/newsletter_pic.jpg",
"id": "1718000000",
"type": "image",
"direct_path": "/v/t61.24694-24/newsletter_pic.jpg",
"hash": "q1w2e3r4t5y6u7i8o9p0YWJjZGU="
},
"preview": {
"url": "https://pps.whatsapp.net/v/t61.24694-24/newsletter_preview.jpg",
"id": "1718000000",
"type": "preview",
"direct_path": "/v/t61.24694-24/newsletter_preview.jpg",
"hash": "q1w2e3r4t5y6u7i8o9p0YWJjZGU="
},
"settings": {
"reaction_codes": {
"value": "all"
}
}
},
"viewer_metadata": null
}
}{
"status": 400,
"error": "Bad Request",
"message": "Invalid payload"
}