This API endpoint fetches a list of all campaigns.

This endpoint will list all the campaigns on a specific workspace.

Endpoint

GET https://api.mailstand.com/campaigns?workspace={{workspace}}&page={{page}}&display={{display}}

Parameters

FieldRequiredDescription
workspace trueThe workspace ID that you want to query
display trueHow many campaigns to display/show per page
page trueThe page you want to be on

API Call Example

GET https://api.mailstand.com/campaigns?workspace=space_EVGG8f0vtZLHUI49bfGGTLBXk&page=1&display=25

200 Response

{
    "status": "ok",
    "headers": [
        "status",
        "name",
        "steps",
        "contacts",
        "opens",
        "initials",
        "interested",
        "replies",
        "bounces",
        "last_activity"
    ],
    "data": [
        {
            "id": "camp_a0lZ6vQ5BDa0ezgfnExUo9v7s",
            "status": "live",
            "name": "Campaign One",
            "steps": 1,
            "contacts": 33,
            "opens": 87.5,
            "initials": 32,
            "interested": 0,
            "replies": 0,
            "bounces": 0,
            "last_activity": "1 day ago",
            "opens_num": 28,
            "replies_num": 0,
            "bounces_num": 0,
            "interested_num": 0,
            "days_left": 0,
            "days_left_date": "Complete",
            "days_left_display": "0 days",
            "created": 1658256658
        },
        {
            "id": "camp_kPCzB309nnKZUULbWoxmFEQFM",
            "status": "live",
            "name": "Campaign Two",
            "steps": 1,
            "contacts": 1,
            "opens": 0,
            "initials": 1,
            "interested": 0,
            "replies": 100,
            "bounces": 0,
            "last_activity": "4 days ago",
            "opens_num": 0,
            "replies_num": 1,
            "bounces_num": 0,
            "interested_num": 0,
            "days_left": 0,
            "days_left_date": "Complete",
            "days_left_display": "0 days",
            "created": 1658177883
        },
        {
            "id": "camp_PyRcQF5j5WJpEdslFW1YjK8Wv",
            "status": "draft",
            "name": "Campaign Three",
            "steps": 1,
            "contacts": 0,
            "opens": 0,
            "initials": 0,
            "interested": 0,
            "replies": 0,
            "bounces": 0,
            "last_activity": "4 days ago",
            "opens_num": 0,
            "replies_num": 0,
            "bounces_num": 0,
            "interested_num": 0,
            "days_left": 0,
            "days_left_date": "Complete",
            "days_left_display": "0 days",
            "created": 1658177591
        },
        {
            "id": "camp_6ejOBicl5K7hNvmjEwdjt0cak",
            "status": "live",
            "name": "Campaign Four",
            "steps": 1,
            "contacts": 2,
            "opens": 0,
            "initials": 2,
            "interested": 0,
            "replies": 100,
            "bounces": 0,
            "last_activity": "4 days ago",
            "opens_num": 0,
            "replies_num": 2,
            "bounces_num": 0,
            "interested_num": 0,
            "days_left": 0,
            "days_left_date": "Complete",
            "days_left_display": "0 days",
            "created": 1658173900
        },
        {
            "id": "camp_oh60mAbZnGXIwSHy8W9qnn7X8",
            "status": "paused",
            "name": "Campaign Five",
            "steps": 1,
            "contacts": 499,
            "opens": 33.33,
            "initials": 3,
            "interested": 33.33,
            "replies": 33.33,
            "bounces": 0,
            "last_activity": "8 days ago",
            "opens_num": 1,
            "replies_num": 1,
            "bounces_num": 0,
            "interested_num": 1,
            "days_left": 0,
            "days_left_date": "Complete",
            "days_left_display": "0 days",
            "created": 1657286308
        }
    ],
    "total_found": 5,
    "current_page": 1,
    "total_pages": 1
}

Response Fields

FieldTypeDescription
headers arrayThese are the headers that are saved to the user's settings. This is used to display the columns within the platform.
data[id] stringUnique identifier for the campaign. It always starts with camp_.
data[status] stringThe status of the campaign. It can either be draft, live, or `paused.
data[name]stringName of the campaign.
data[steps] numberNumber of steps the campaign has.
data[contacts] numberNumber of contacts the campaign has.
data[opens] numberOpen percentage of the campaign.
data[replies] numberReply percentage of the campaign.
data[bounces] numberBounce percentage of the campaign.
data[opens_num] numberNumber of opens on the campaign.
data[replies_numb] numberNumber of replies on the campaign.
data[bounces_num] numberNumber of boun on the campaign.
data[days_left]numberThe estimated number of days until the campaign will end.
data[days_left_date]unixThe estimated unix timestamp of when the campaign should be ending.
data[days_left_display]The printed pretty timestamp of when the campaign should be ending.
last_activity stringHow long ago there was an activity on the campaign.
created numberThe time the campaign was created at in unix timestamp.
total_found numberThe total number of campaigns found in this search.
current_page numberThe page you're currently on.
total_pages numberThe number of total pages that you can paginate through on this search.