API Reference
List topics
GET /topics — list the topics on a sending domain.
GET
/topicsPass ?domain= to pick the sending domain whose topics to list — the parameter is required.
Query parameters
domainstringrequiredThe sending domain whose topics to list.
limitnumberoptionalNumber of topics to retrieve. Optional; omit it and up to 1,000 topics come back in one response — has_more is true if that cap truncated the list, so keep paging with after. Minimum 1, maximum 100.
afterstringoptionalThe topic ID *after* which to retrieve more topics (for pagination). The ID is not included in the result. Cannot be combined with before.
beforestringoptionalThe topic ID *before* which to retrieve more topics (for pagination). The ID is not included in the result. Cannot be combined with after.
import { Mailblastr } from 'mailblastr';
const mb = new Mailblastr('mb_xxxxxxxxx');
const { data, error } = await mb.topics.list({ domain: 'yourdomain.com' });
console.log({ data, error });Response
{
"object": "list",
"has_more": false,
"data": [
{
"id": "topic_9a2f...",
"name": "Product updates",
"description": null,
"default_subscription": "opt_in",
"visibility": "private",
"created_at": "2026-06-25T10:00:00.000Z"
}
]
}