Appearance
Premade templates
The premade templates API serves Topol's library of 150+ ready-made email templates, so you can start from a designed template instead of a blank canvas.
What the API covers
List templates
Return the available premade templates, with paging, atypefilter (FREEorPRO), free-text search, filtering by category or keyword IDs, and sorting by date and other columns.Get template details
Request one template by ID to get its HTML and JSON. JSON for aPROtemplate is returned only when the request is authenticated with a plugin subscription; otherwise it comes backnull, while the HTML is always present.List categories and keywords
Fetch the category list (Business, E-commerce, and the rest) and the keyword list to build the filters above. Both returnidandname, and the filter parameters take the IDs.
How it works
1. Get an API key
These endpoints take an API key from either your account settings or your existing Plugin API Token.
For an account-settings key, open Settings, go to API Tokens, select "Create API Token", and grant the permissions the token needs. To reuse the Plugin API token that initialized your Plugin, copy it from the Plugin settings under "Show API keys".
The key unlocks PRO template JSON; the list and category endpoints respond without it, so the header is recommended rather than strictly required.
2. Set the request headers
Include these headers:
json
{
"accept": "application/json",
"Authorization": "Bearer <api-key>"
}Servers
https://app.topol.io/apiProduction server
Get premade email templates
GET
/premade-templates
Retrieve a list of premade email templates.
Authorizations
BearerAuth
Use: Authorization: Bearer <api-key>
Type
HTTP (bearer)
Request Body
application/json
{
}
Responses
Templates fetched successfully
application/json
{
}
Get premade email template
GET
/premade-templates/{premadeTemplate}
Get a premade template
Authorizations
BearerAuth
Use: Authorization: Bearer <api-key>
Type
HTTP (bearer)
Parameters
Path Parameters
premadeTemplate*
Premade template ID
Type
Requiredinteger
Responses
Template fetched successfully
application/json
{
}
Get a list of premade template categories
GET
/premade-template-categories
Retrieve a list of premade template categories
Authorizations
BearerAuth
Use: Authorization: Bearer <api-key>
Type
HTTP (bearer)
Responses
Template categories fetched successfully
application/json
{
}
Get a list of premade template keywords
GET
/premade-template-keywords
Retrieve a list of premade template keywords
Authorizations
BearerAuth
Use: Authorization: Bearer <api-key>
Type
HTTP (bearer)
Responses
Template keywords fetched successfully
application/json
{
}