curl --request GET \
--url https://brew.new/api/v1/integrations/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://brew.new/api/v1/integrations/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://brew.new/api/v1/integrations/events', 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://brew.new/api/v1/integrations/events",
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://brew.new/api/v1/integrations/events"
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://brew.new/api/v1/integrations/events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://brew.new/api/v1/integrations/events")
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": [
{
"eventId": "k5714pq3vm8x2n6c9d0b7f1h4j6g2r8t",
"provider": "posthog",
"sourceId": "cgr_4f2a9c",
"eventKey": "created_project",
"title": "created_project",
"label": "Created a project",
"kind": "custom",
"stage": "activation",
"modelRoles": [
"activation",
"key_event"
],
"volume30d": 8100,
"lastSeenAt": "2026-10-26T09:12:00.000Z"
}
],
"sources": [
{
"sourceId": "cgr_4f2a9c",
"provider": "posthog",
"mode": "tenant_catalog",
"definitionCount": 214,
"isTruncated": false,
"lastSyncedAt": "2026-10-26T06:00:00.000Z"
}
],
"pagination": {
"limit": 100,
"cursor": null,
"hasMore": false
}
}List integration events
Returns the events the brand’s connected live sources offer as automation triggers (a PostHog project’s own events; the Stripe and Shopify app catalogs) under { data, sources, pagination }. Each event carries its eventId, the provider’s eventKey, Brew’s label and lifecycle stage, its roles in the brand’s product model, 30-day volume, and its triggerEventId once it is a trigger. Events come source by source: query searches names, titles and categories, and without it each source’s busiest events come first. Events a brand member hid, and internal traffic Brew suppressed, are left out, so a page can hold fewer than limit; follow pagination.cursor until hasMore is false to read every event. Brand-scoped (X-Brand-Id on an org credential). Requires the automations scope, as ensureIntegrationEventTrigger does.
curl --request GET \
--url https://brew.new/api/v1/integrations/events \
--header 'Authorization: Bearer <token>'import requests
url = "https://brew.new/api/v1/integrations/events"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://brew.new/api/v1/integrations/events', 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://brew.new/api/v1/integrations/events",
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://brew.new/api/v1/integrations/events"
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://brew.new/api/v1/integrations/events")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://brew.new/api/v1/integrations/events")
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": [
{
"eventId": "k5714pq3vm8x2n6c9d0b7f1h4j6g2r8t",
"provider": "posthog",
"sourceId": "cgr_4f2a9c",
"eventKey": "created_project",
"title": "created_project",
"label": "Created a project",
"kind": "custom",
"stage": "activation",
"modelRoles": [
"activation",
"key_event"
],
"volume30d": 8100,
"lastSeenAt": "2026-10-26T09:12:00.000Z"
}
],
"sources": [
{
"sourceId": "cgr_4f2a9c",
"provider": "posthog",
"mode": "tenant_catalog",
"definitionCount": 214,
"isTruncated": false,
"lastSyncedAt": "2026-10-26T06:00:00.000Z"
}
],
"pagination": {
"limit": 100,
"cursor": null,
"hasMore": false
}
}Authorizations
Headers
The brand this request acts on. REQUIRED for organization-scoped credentials (otherwise 400 BRAND_ID_REQUIRED — there is no default brand); list ids with GET /v1/brands. Brand-scoped credentials may omit it, and sending a different brand returns 403 BRAND_SCOPE_MISMATCH. A brand outside your organization returns 404 BRAND_NOT_FOUND.
1 - 64Query Parameters
Was this page helpful?