Mailriser is in open beta. Learn more.

Mailriser Documentation

Templates API
Learn about the Templates API and how to use it.

The Templates API is the api you can use to fetch your templates.

The Templates API uses /api/templates as the base.

Fetch all Templates

To fetch all your templates, use the /fetch endpoint. It doesn't require any data.

Here's an example request in Node:

const key = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX";

const base = "https://mailriser.com/api";
const endpoint = "/templates/fetch";

const data = {};

const request = await fetch(base + endpoint, {
    method: "POST",
    headers: {
        Authorization: key,
        "Content-Type": "application/json"
    },
    body: JSON.stringify(data)
});

const response = await request.json();

console.log(response);
Table of Contents