Mailriser is in open beta. Learn more.

Mailriser Documentation

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

The Campaigns API is the api you can use to fetch your campaigns.

The Campaigns API uses /api/campaigns as the base.

Fetch all Campaigns

To fetch yours campaigns, 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 = "/campaigns/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);
{
    "status": true,
    "data": [
        {
            "id": 1,
            "name": "Campaign 1",
            "description": "Campaign 1 description",
            "status": "SENT",
            "sent": "Jan 01, 2023",
            "created": "Jan 01, 2023"
        }
    ]
}
Table of Contents