Listar gatilhos
curl --request GET \
--url https://api.metrito.com/v3/tracking/containers/{container_id}/triggers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.metrito.com/v3/tracking/containers/{container_id}/triggers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.metrito.com/v3/tracking/containers/{container_id}/triggers', 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.metrito.com/v3/tracking/containers/{container_id}/triggers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.metrito.com/v3/tracking/containers/{container_id}/triggers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.metrito.com/v3/tracking/containers/{container_id}/triggers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.metrito.com/v3/tracking/containers/{container_id}/triggers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "64a1b2c3d4e5f6a7b8c9d0e2",
"name": "Compra Aprovada",
"domain": "minhaloja.com.br",
"config": {
"trigger": {
"type": "api"
},
"facebook": {
"name": "Purchase",
"track_custom": false
}
},
"created_at": "2026-01-15T10:00:00.000Z"
},
{
"id": "64a1b2c3d4e5f6a7b8c9d0e3",
"name": "Lead Capturado",
"domain": "minhaloja.com.br",
"config": {
"trigger": {
"type": "api"
},
"facebook": {
"name": "Lead",
"track_custom": false
}
},
"created_at": "2026-01-10T08:30:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 2,
"total_pages": 1
}
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "The API key provided is invalid or has been revoked.",
"request_id": "req_abc123"
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Maximum 120 requests per 60s.",
"request_id": "req_abc123"
}
}Gatilhos
Listar Gatilhos
Retorna os gatilhos configurados em um container com paginação.
Um gatilho é uma configuração que define quando e como uma conversão deve ser disparada — tipo de disparo (api, page_view, element_click, etc.), nome do evento no Metrito, mapeamento para a Meta Conversion API e condições de página.
GET
/
v3
/
tracking
/
containers
/
{container_id}
/
triggers
Listar gatilhos
curl --request GET \
--url https://api.metrito.com/v3/tracking/containers/{container_id}/triggers \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.metrito.com/v3/tracking/containers/{container_id}/triggers"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.metrito.com/v3/tracking/containers/{container_id}/triggers', 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.metrito.com/v3/tracking/containers/{container_id}/triggers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.metrito.com/v3/tracking/containers/{container_id}/triggers"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.metrito.com/v3/tracking/containers/{container_id}/triggers")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.metrito.com/v3/tracking/containers/{container_id}/triggers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"data": [
{
"id": "64a1b2c3d4e5f6a7b8c9d0e2",
"name": "Compra Aprovada",
"domain": "minhaloja.com.br",
"config": {
"trigger": {
"type": "api"
},
"facebook": {
"name": "Purchase",
"track_custom": false
}
},
"created_at": "2026-01-15T10:00:00.000Z"
},
{
"id": "64a1b2c3d4e5f6a7b8c9d0e3",
"name": "Lead Capturado",
"domain": "minhaloja.com.br",
"config": {
"trigger": {
"type": "api"
},
"facebook": {
"name": "Lead",
"track_custom": false
}
},
"created_at": "2026-01-10T08:30:00.000Z"
}
],
"pagination": {
"page": 1,
"limit": 50,
"total": 2,
"total_pages": 1
}
}{
"error": {
"type": "authentication_error",
"code": "invalid_api_key",
"message": "The API key provided is invalid or has been revoked.",
"request_id": "req_abc123"
}
}{
"error": {
"type": "rate_limit_error",
"code": "rate_limit_exceeded",
"message": "Rate limit exceeded. Maximum 120 requests per 60s.",
"request_id": "req_abc123"
}
}Autorizações
bearerAuthapiKeyAuth
JWT da plataforma ou API key mtk_live_...
Parâmetros de caminho
Identificador do container. Aceita três formatos:
- ObjectId —
64a1b2c3d4e5f6a7b8c9d0e1(encontrado na URL da plataforma após/containers/) - Domínio —
minhaloja.com.br(containers v2, o domínio real) - Metrito Tracking Code —
MTC-AB12(containers v3, visível na sidebar da plataforma)
Exemplos:
"64a1b2c3d4e5f6a7b8c9d0e1"
"minhaloja.com.br"
"MTC-AB12"
Parâmetros de consulta
Intervalo obrigatório:
x >= 1Intervalo obrigatório:
x <= 100Filtrar por tipo de disparo
Opções disponíveis:
api, page_view, page_view_duration, element_click, element_view, element_hover, form_submit, scroll_depth, video_view_duration, whatsapp_keyword_message, click_tracking_link, checkout_transaction_approved