Criar ou Atualizar Plugin
curl --request PUT \
--url https://api.selltrust.com.br/api/v1/plugin/{type} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"data": {}
}'import requests
url = "https://api.selltrust.com.br/api/v1/plugin/{type}"
payload = { "data": {} }
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: {}})
};
fetch('https://api.selltrust.com.br/api/v1/plugin/{type}', 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.selltrust.com.br/api/v1/plugin/{type}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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.selltrust.com.br/api/v1/plugin/{type}"
payload := strings.NewReader("{\n \"data\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<authorization>")
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.put("https://api.selltrust.com.br/api/v1/plugin/{type}")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.selltrust.com.br/api/v1/plugin/{type}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "uuid-do-plugin",
"type": "UTMIFY",
"data": {
"send_organic": true,
"api_token_set": true
},
"created_at": "2026-11-10T14:30:00.000Z",
"updated_at": "2026-11-10T14:30:00.000Z"
}
Plugins
Criar ou Atualizar Plugin
PUT
/
api
/
v1
/
plugin
/
{type}
Criar ou Atualizar Plugin
curl --request PUT \
--url https://api.selltrust.com.br/api/v1/plugin/{type} \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '{
"data": {}
}'import requests
url = "https://api.selltrust.com.br/api/v1/plugin/{type}"
payload = { "data": {} }
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({data: {}})
};
fetch('https://api.selltrust.com.br/api/v1/plugin/{type}', 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.selltrust.com.br/api/v1/plugin/{type}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'data' => [
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"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.selltrust.com.br/api/v1/plugin/{type}"
payload := strings.NewReader("{\n \"data\": {}\n}")
req, _ := http.NewRequest("PUT", url, payload)
req.Header.Add("Authorization", "<authorization>")
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.put("https://api.selltrust.com.br/api/v1/plugin/{type}")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"data\": {}\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.selltrust.com.br/api/v1/plugin/{type}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"data\": {}\n}"
response = http.request(request)
puts response.read_body{
"id": "uuid-do-plugin",
"type": "UTMIFY",
"data": {
"send_organic": true,
"api_token_set": true
},
"created_at": "2026-11-10T14:30:00.000Z",
"updated_at": "2026-11-10T14:30:00.000Z"
}
Cria ou substitui a configuração de um plugin.
Segredo não enviado mantém o que está salvo: omitir
data segue o mesmo formato do painel para cada tipo:
type | data |
|---|---|
CRISP | website_id |
FACEBOOK_PIXEL | pixels: até 5 itens { pixel_id, api_token } (api_token opcional, para a API de conversões) |
GOOGLE_TAG_MANAGER | gtm_id |
GOOGLE_ANALYTICS | measurement_id |
GOOGLE_ADS | pixels: até 5 itens { conversion_id, conversion_label } |
TAWK_TO | property_id, widget_id |
MERCHANT_CENTER | enabled (boolean) |
UTMIFY | api_token, send_organic (boolean) |
api_token (da UTMify, ou de um pixel que já existe com o mesmo pixel_id) preserva o token atual. Enviar null apaga. Os indicadores api_token_set das respostas podem ser devolvidos no corpo; são ignorados.
Exige a permissão Gerenciar Plugins (
MANAGE_PLUGINS) do usuário que criou o token. Veja Permissões do token.Tipo do plugin, como em
available_types de Listar Plugins.Exemplo de corpo (UTMIFY)
{
"data": {
"api_token": "seu-token-utmify",
"send_organic": true
}
}
{
"id": "uuid-do-plugin",
"type": "UTMIFY",
"data": {
"send_organic": true,
"api_token_set": true
},
"created_at": "2026-11-10T14:30:00.000Z",
"updated_at": "2026-11-10T14:30:00.000Z"
}
