curl --request POST \
--url https://api.bevits.com/v1/email-domains/{email_domain_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"click_tracking": false
}
'import requests
url = "https://api.bevits.com/v1/email-domains/{email_domain_id}"
payload = { "click_tracking": False }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({click_tracking: false})
};
fetch('https://api.bevits.com/v1/email-domains/{email_domain_id}', 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://api.bevits.com/v1/email-domains/{email_domain_id}",
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([
'click_tracking' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.bevits.com/v1/email-domains/{email_domain_id}"
payload := strings.NewReader("{\n \"click_tracking\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.bevits.com/v1/email-domains/{email_domain_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"click_tracking\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bevits.com/v1/email-domains/{email_domain_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"click_tracking\": false\n}"
response = http.request(request)
puts response.read_body{
"object": "email_domain",
"id": "edm_cm9k2x0a10001",
"name": "mail.sualoja.com.br",
"verification_status": "verified",
"open_tracking": true,
"click_tracking": false,
"html_url": "https://app.bevits.com/settings/domains/cm9k2x0a10001"
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}{
"error": {
"type": "authentication_error",
"message": "Invalid API key.",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}{
"error": {
"type": "permission_denied",
"code": "missing_scope",
"message": "This API key does not have the required \"write\" scope.",
"param": "scope",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}{
"error": {
"type": "conflict",
"message": "This sending domain isn't set up in the email service. Delete it and add it again in Bevits under Settings → Domains.",
"param": "email_domain_id",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}{
"error": {
"type": "validation_error",
"message": "Invalid query parameters.",
"param": "limit",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
},
"retry_after": 2
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}{
"error": {
"type": "service_unavailable",
"message": "The email service didn't answer. Read the domain again to check its tracking, and repeat the change if needed.",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}Activar o desactivar el seguimiento de un dominio
Activa o desactiva el seguimiento de aperturas (open_tracking) y el de clics (click_tracking) de un dominio de envío, como en Configuración → Dominios. Lo que no se envíe queda como está. Se aplica a todos los e-mails enviados desde el dominio a partir de entonces, de campañas y de automatizaciones; los e-mails ya enviados conservan los enlaces con los que salieron. Con el seguimiento de clics desactivado, los enlaces van directo a su destino en lugar de pasar por click.email.bevits.com, y los clics dejan de registrarse: las tasas de clics y el webhook email.clicked se detienen para estos e-mails. Con el de aperturas desactivado, las aperturas dejan de registrarse, y un reenvío a quienes no abrieron llegaría a todos. Requiere una API key con el alcance write.
curl --request POST \
--url https://api.bevits.com/v1/email-domains/{email_domain_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"click_tracking": false
}
'import requests
url = "https://api.bevits.com/v1/email-domains/{email_domain_id}"
payload = { "click_tracking": False }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({click_tracking: false})
};
fetch('https://api.bevits.com/v1/email-domains/{email_domain_id}', 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://api.bevits.com/v1/email-domains/{email_domain_id}",
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([
'click_tracking' => false
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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.bevits.com/v1/email-domains/{email_domain_id}"
payload := strings.NewReader("{\n \"click_tracking\": false\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.bevits.com/v1/email-domains/{email_domain_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"click_tracking\": false\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.bevits.com/v1/email-domains/{email_domain_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"click_tracking\": false\n}"
response = http.request(request)
puts response.read_body{
"object": "email_domain",
"id": "edm_cm9k2x0a10001",
"name": "mail.sualoja.com.br",
"verification_status": "verified",
"open_tracking": true,
"click_tracking": false,
"html_url": "https://app.bevits.com/settings/domains/cm9k2x0a10001"
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}{
"error": {
"type": "authentication_error",
"message": "Invalid API key.",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}{
"error": {
"type": "permission_denied",
"code": "missing_scope",
"message": "This API key does not have the required \"write\" scope.",
"param": "scope",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}{
"error": {
"type": "conflict",
"message": "This sending domain isn't set up in the email service. Delete it and add it again in Bevits under Settings → Domains.",
"param": "email_domain_id",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}{
"error": {
"type": "validation_error",
"message": "Invalid query parameters.",
"param": "limit",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
},
"retry_after": 2
}{
"error": {
"type": "authentication_error",
"message": "<string>",
"request_id": "<string>",
"code": "<string>",
"param": "<string>",
"suggestion": "<string>"
}
}{
"error": {
"type": "service_unavailable",
"message": "The email service didn't answer. Read the domain again to check its tracking, and repeat the change if needed.",
"request_id": "req_07f6cdc3c20249d6afcd90b4"
}
}Autorizaciones
Encabezados
Parámetros de ruta
Cuerpo
Al menos un campo. Lo que no se envíe queda como está.
Respuesta
El dominio de envío después del cambio, como lo informa el servicio de e-mail.