/campaigns/:id/actions/:action

Changed on

Send, schedule or cancel campaign [Rate limited]

post/campaigns/{id}/actions/{action}

Request

  • Base URL
    https://api.mailerlite.com/api/v2
  • URL
    https://api.mailerlite.com/api/v2/campaigns/{id}/actions/{action}
  • Auth
    API key in header X-MailerLite-ApiKey

Path parameters

idinteger required

ID of campaign

actionstring required

Action type. Possible values: send, cancel

Response

200

idinteger
countinteger
mail_idinteger
timezonestring
account_idinteger
campaign_typestring
datestring
end_timestring
send_datestring
openedunknown
clickedunknown
statusstring
campaign_namestring

Example response

{
  "id": 2418787,
  "mail_id": 2851096,
  "timezone": "120",
  "account_id": 441087,
  "campaign_type": "regular",
  "date": "2016-09-30 13:15:00",
  "end_time": "0000-00-00 00:00:00",
  "send_date": "2016-09-30 15:15:00",
  "status": "draft",
  "campaign_name": "Test regular campaign",
  "mails": [
    {
      "id": 2851096,
      "date": "2015-12-28 17:25:31",
      "subject": "Test regular campaign",
      "code": "t4h8j0",
      "from": "demo@mailerlite.com",
      "from_name": "Demo",
      "url": "Test-regular-campaign-2851096",
      "send_date": "2016-09-30 15:15:00",
      "host": "mailerlite.com",
      "type": "custom_html",
      "updated": "2016-02-04 11:55:01",
      "language": {
        "code": "en",
        "title": "English"
      },
      "groups": [
        {
          "id": 2984475,
          "name": "Personal",
          "total": 7,
          "active": 7,
          "sent": 4,
          "opened": 2,
          "clicked": 1,
          "ordering": 5,
          "date": "2015-12-16 14:43:46",
          "updated": "2016-01-29 07:45:54"
        }
      ]
    }
  ]
}

Changes