Evolution GO
Create newsletter
Creates a new newsletter (channel) with a name and optional description.
POST
/
newsletter
/
create
Create newsletter
curl --request POST \
--url https://pilotstatus.com.br/api/layer/evolution-go/newsletter/create \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"name": "Pilot Status Updates",
"description": "Official channel for product news and status."
}
'import requests
url = "https://pilotstatus.com.br/api/layer/evolution-go/newsletter/create"
payload = {
"name": "Pilot Status Updates",
"description": "Official channel for product news and status."
}
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({
name: 'Pilot Status Updates',
description: 'Official channel for product news and status.'
})
};
fetch('https://pilotstatus.com.br/api/layer/evolution-go/newsletter/create', 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/create",
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([
'name' => 'Pilot Status Updates',
'description' => 'Official channel for product news and status.'
]),
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/create"
payload := strings.NewReader("{\n \"name\": \"Pilot Status Updates\",\n \"description\": \"Official channel for product news and status.\"\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/create")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Pilot Status Updates\",\n \"description\": \"Official channel for product news and status.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/api/layer/evolution-go/newsletter/create")
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 \"name\": \"Pilot Status Updates\",\n \"description\": \"Official channel for product news and status.\"\n}"
response = http.request(request)
puts response.read_body{
"message": "success",
"data": {
"id": "120363313361893999@newsletter",
"state": {
"type": "active"
},
"thread_metadata": {
"creation_time": "1720526400",
"invite": "0029Va8ZfkL1234567890abcd",
"name": {
"text": "Pilot Status Updates",
"id": "1720526400123456",
"update_time": "1720526400123456"
},
"description": {
"text": "Product news and status announcements.",
"id": "1720526400123457",
"update_time": "1720526400123457"
},
"subscribers_count": "0",
"verification": "unverified",
"picture": null,
"preview": {
"url": "",
"id": "",
"type": "preview",
"direct_path": "",
"hash": null
},
"settings": {
"reaction_codes": {
"value": "all"
}
}
},
"viewer_metadata": {
"mute": "off",
"role": "owner"
}
}
}{
"status": 400,
"error": "Bad Request",
"message": "Invalid payload"
}Authorizations
Your Pilot Status API key (ps_...). Evolution GO also accepts Authorization: Bearer <key>.
Body
application/json
Was this page helpful?
⌘I
Create newsletter
curl --request POST \
--url https://pilotstatus.com.br/api/layer/evolution-go/newsletter/create \
--header 'Content-Type: application/json' \
--header 'apikey: <api-key>' \
--data '
{
"name": "Pilot Status Updates",
"description": "Official channel for product news and status."
}
'import requests
url = "https://pilotstatus.com.br/api/layer/evolution-go/newsletter/create"
payload = {
"name": "Pilot Status Updates",
"description": "Official channel for product news and status."
}
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({
name: 'Pilot Status Updates',
description: 'Official channel for product news and status.'
})
};
fetch('https://pilotstatus.com.br/api/layer/evolution-go/newsletter/create', 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/create",
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([
'name' => 'Pilot Status Updates',
'description' => 'Official channel for product news and status.'
]),
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/create"
payload := strings.NewReader("{\n \"name\": \"Pilot Status Updates\",\n \"description\": \"Official channel for product news and status.\"\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/create")
.header("apikey", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"Pilot Status Updates\",\n \"description\": \"Official channel for product news and status.\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://pilotstatus.com.br/api/layer/evolution-go/newsletter/create")
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 \"name\": \"Pilot Status Updates\",\n \"description\": \"Official channel for product news and status.\"\n}"
response = http.request(request)
puts response.read_body{
"message": "success",
"data": {
"id": "120363313361893999@newsletter",
"state": {
"type": "active"
},
"thread_metadata": {
"creation_time": "1720526400",
"invite": "0029Va8ZfkL1234567890abcd",
"name": {
"text": "Pilot Status Updates",
"id": "1720526400123456",
"update_time": "1720526400123456"
},
"description": {
"text": "Product news and status announcements.",
"id": "1720526400123457",
"update_time": "1720526400123457"
},
"subscribers_count": "0",
"verification": "unverified",
"picture": null,
"preview": {
"url": "",
"id": "",
"type": "preview",
"direct_path": "",
"hash": null
},
"settings": {
"reaction_codes": {
"value": "all"
}
}
},
"viewer_metadata": {
"mute": "off",
"role": "owner"
}
}
}{
"status": 400,
"error": "Bad Request",
"message": "Invalid payload"
}