API Reference

List templates

GET /templates — list your templates.

GET/templates

Returns all of your templates, newest first, as a paginated list.

import { MailBlastr } from 'mailblastr';

const mb = new MailBlastr('mb_xxxxxxxxx');

const { data, error } = await mb.templates.list();
console.log({ data, error });

Response

{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "tmpl_8f5c2a1e",
      "name": "Welcome email",
      "subject": "Welcome, {{first_name}}!",
      "status": "draft",
      "published_at": null,
      "alias": null,
      "created_at": "2026-06-23T10:00:00.000Z",
      "updated_at": "2026-06-23T10:00:00.000Z"
    }
  ]
}