List Templates
List all templates for the organization with cursor-based pagination.
GET
/templatesRequires a full_access API key.
Query Parameters
limitnumberMaximum number of results to return. Min 1, max 100.
afterstringCursor for forward pagination.
beforestringCursor for backward pagination.
Response Fields
objectstringAlways "list".
has_morebooleanWhether there are more results available.
dataarrayArray 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
{
"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"
}
]
}