List Templates

List all templates for the organization with cursor-based pagination.

GET/templates

Requires a full_access API key.

Query Parameters

limitnumber

Maximum number of results to return. Min 1, max 100.

afterstring

Cursor for forward pagination.

beforestring

Cursor for backward pagination.

Response Fields

objectstring

Always "list".

has_moreboolean

Whether there are more results available.

dataarray

Array of template objects. Each item contains id, name, alias, status, published_at, created_at, and updated_at.

curl -X GET 'https://api.postflare.app/templates' \
  -H 'Authorization: Bearer re_xxxxxxxxx'
const response = await fetch('https://api.postflare.app/templates', {
  headers: {
    'Authorization': 'Bearer re_xxxxxxxxx',
  },
});

const data = await response.json();

Response

Response
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "e5f6a7b8-c9d0-1234-efab-345678901234",
      "name": "Welcome Email",
      "alias": "welcome-email",
      "status": "draft",
      "published_at": null,
      "created_at": "2026-01-01T00:00:00.000Z",
      "updated_at": "2026-01-01T00:00:00.000Z"
    }
  ]
}