cURL
curl --request POST \
--url https://api.wabox.me/instances/{instance_id}/token/{token}/communities \
--header 'Content-Type: application/json' \
--data '
{
"name": "Comunidade Wabox"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Comunidade Wabox'})
};
fetch('https://api.wabox.me/instances/{instance_id}/token/{token}/communities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wabox.me/instances/{instance_id}/token/{token}/communities"
payload = { "name": "Comunidade Wabox" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wabox.me/instances/{instance_id}/token/{token}/communities",
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' => 'Comunidade Wabox'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://api.wabox.me/instances/{instance_id}/token/{token}/communities"
payload := strings.NewReader("{\n \"name\": \"Comunidade Wabox\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}{
"id": "120363012345678901-group",
"name": "Comunidade Wabox",
"description": "Nossa comunidade",
"owner": "5511999998888",
"created_at": "2026-08-01T10:00:00.000Z",
"participants": [],
"participant_count": 1,
"announce": false,
"locked": false,
"join_approval_required": false,
"member_add_mode": "admin_add",
"ephemeral_seconds": 0,
"is_community": true,
"suspended": false,
"groups": [
{
"id": "120363012345678902-group",
"name": "Comunidade Wabox",
"is_announcement": true
},
{
"id": "120363012345678903-group",
"name": "Suporte",
"is_announcement": false
}
]
}{
"error": {
"code": "instance_not_found",
"message": "Instance not found or invalid token"
}
}{
"error": {
"code": "subscription_required",
"message": "Trial expired or subscription inactive. Subscribe in the dashboard to keep sending."
}
}{
"error": {
"code": "instance_not_connected",
"message": "Instance is not connected"
}
}Criar comunidade
O WhatsApp cria o grupo de avisos automaticamente; participants são adicionados a ele. Imediata: exige a instância conectada (caso contrário, 409 instance_not_connected).
POST
/
instances
/
{instance_id}
/
token
/
{token}
/
communities
cURL
curl --request POST \
--url https://api.wabox.me/instances/{instance_id}/token/{token}/communities \
--header 'Content-Type: application/json' \
--data '
{
"name": "Comunidade Wabox"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({name: 'Comunidade Wabox'})
};
fetch('https://api.wabox.me/instances/{instance_id}/token/{token}/communities', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wabox.me/instances/{instance_id}/token/{token}/communities"
payload = { "name": "Comunidade Wabox" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.wabox.me/instances/{instance_id}/token/{token}/communities",
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' => 'Comunidade Wabox'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$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://api.wabox.me/instances/{instance_id}/token/{token}/communities"
payload := strings.NewReader("{\n \"name\": \"Comunidade Wabox\"\n}")
req, _ := http.NewRequest("POST", url, payload)
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))
}{
"id": "120363012345678901-group",
"name": "Comunidade Wabox",
"description": "Nossa comunidade",
"owner": "5511999998888",
"created_at": "2026-08-01T10:00:00.000Z",
"participants": [],
"participant_count": 1,
"announce": false,
"locked": false,
"join_approval_required": false,
"member_add_mode": "admin_add",
"ephemeral_seconds": 0,
"is_community": true,
"suspended": false,
"groups": [
{
"id": "120363012345678902-group",
"name": "Comunidade Wabox",
"is_announcement": true
},
{
"id": "120363012345678903-group",
"name": "Suporte",
"is_announcement": false
}
]
}{
"error": {
"code": "instance_not_found",
"message": "Instance not found or invalid token"
}
}{
"error": {
"code": "subscription_required",
"message": "Trial expired or subscription inactive. Subscribe in the dashboard to keep sending."
}
}{
"error": {
"code": "instance_not_connected",
"message": "Instance is not connected"
}
}Path Parameters
Id da instância (dashboard › instância › Credenciais).
Token da instância. Trate como senha.
Body
application/json
Response
Comunidade criada; groups[] traz o grupo de avisos (is_announcement: true).
Pattern:
^(\d+(-\d+)?-group|\d+(-\d+)?@g\.us)$Show child attributes
Show child attributes
Required range:
0 <= x <= 9007199254740991Required range:
0 <= x <= 9007199254740991Show child attributes
Show child attributes
Minimum string length:
1Pattern:
^(\d{5,20}|\d+@lid|\d+(-\d+)?-group|\d+@g\.us|\d+@newsletter|\d+@broadcast|status@broadcast)$Pattern:
^(?:(?:\d\d[2468][048]|\d\d[13579][26]|\d\d0[48]|[02468][048]00|[13579][26]00)-02-29|\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\d|30)|(?:02)-(?:0[1-9]|1\d|2[0-8])))T(?:(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|([+-](?:[01]\d|2[0-3]):[0-5]\d)))$Available options:
admin_add, all_member_add Pattern:
^(\d+(-\d+)?-group|\d+(-\d+)?@g\.us)$