List recent billing notification events
curl --request GET \
--url https://api.topograph.co/v2/billing/notifications/recent \
--header 'x-api-key: <api-key>'import requests
url = "https://api.topograph.co/v2/billing/notifications/recent"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.topograph.co/v2/billing/notifications/recent', 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.topograph.co/v2/billing/notifications/recent",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.topograph.co/v2/billing/notifications/recent"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.topograph.co/v2/billing/notifications/recent")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.topograph.co/v2/billing/notifications/recent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "e8f4c2a1-3b7d-4e9f-8a1c-6b5d3e2a9f01",
"kind": "low_balance",
"identifier": "warning",
"accountId": "acc_01H8XYZ...",
"dedupKey": "low_balance:warning:acc_01H8XYZ:2026-04-22",
"firedAt": "2026-04-22T08:12:34.567Z",
"payload": {
"tierCents": 100000,
"balanceCents": 85000
},
"emailSent": true,
"webhookSent": true,
"workspaceId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
]Billing Notifications
List recent billing notification events
GET
/
v2
/
billing
/
notifications
/
recent
List recent billing notification events
curl --request GET \
--url https://api.topograph.co/v2/billing/notifications/recent \
--header 'x-api-key: <api-key>'import requests
url = "https://api.topograph.co/v2/billing/notifications/recent"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.topograph.co/v2/billing/notifications/recent', 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.topograph.co/v2/billing/notifications/recent",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$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.topograph.co/v2/billing/notifications/recent"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
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.topograph.co/v2/billing/notifications/recent")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.topograph.co/v2/billing/notifications/recent")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": "e8f4c2a1-3b7d-4e9f-8a1c-6b5d3e2a9f01",
"kind": "low_balance",
"identifier": "warning",
"accountId": "acc_01H8XYZ...",
"dedupKey": "low_balance:warning:acc_01H8XYZ:2026-04-22",
"firedAt": "2026-04-22T08:12:34.567Z",
"payload": {
"tierCents": 100000,
"balanceCents": 85000
},
"emailSent": true,
"webhookSent": true,
"workspaceId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890"
}
]Authorizations
Query Parameters
Max events to return (1–200, default 50).
Response
200 - application/json
Event ID.
Example:
"e8f4c2a1-3b7d-4e9f-8a1c-6b5d3e2a9f01"
Notification kind.
Available options:
low_balance, high_usage, auto_topup Example:
"low_balance"
Tier name (warning / critical / depleted) for low_balance and high_usage, or outcome (succeeded / failed) for auto_topup.
Example:
"warning"
Account the event belongs to.
Example:
"acc_01H8XYZ..."
Dedup key used to enforce one-fire-per-threshold-per-period.
Example:
"low_balance:warning:acc_01H8XYZ:2026-04-22"
When the event fired.
Example:
"2026-04-22T08:12:34.567Z"
Kind-specific payload (threshold cents, period info, auto-topup details, etc.).
Example:
{
"tierCents": 100000,
"balanceCents": 85000
}
Whether an email was dispatched.
Example:
true
Whether a webhook was dispatched.
Example:
true
Workspace the event was scoped to, or null for account-level events.
Example:
"a1b2c3d4-e5f6-7890-abcd-ef1234567890"