Skip to main content
POST
/
campaigns
/
status
curl --request POST \ --url https://api-{dc}.moengage.com/core-services/v1/campaigns/status \ --header 'Authorization: Basic <encoded-value>' \ --header 'Content-Type: application/json' \ --header 'MOE-APPKEY: <moe-appkey>' \ --data ' { "request_id": "status_change_pause", "action": "PAUSE", "campaign_ids": [ "camp_periodic_123" ] } '
{
  "error": {
    "code": "400 Bad Request",
    "message": "request_id key is mandatory field",
    "target": "request_id",
    "details": [
      {
        "target": "request_id",
        "message": "request_id key is mandatory field"
      }
    ],
    "request_id": "11"
  }
}
Supported Actions
  • STOP: Stop a scheduled One-time campaign
  • PAUSE: Pause a running Periodic or Event-triggered campaign
  • RESUME: Resume a paused Periodic or Event-triggered campaign
Supported Channels
  • Email: Pause and resume Periodic or Event-triggered campaigns
  • Push: Pause and resume the following campaign types:
    • Periodic
    • Event-triggered
    • Device-triggered
    • Location-triggered
Important Information
  • You can only change the status of campaigns created via the API (not Dashboard-created campaigns)
  • Maximum 10 campaign IDs can be processed per request
  • STOP action only works for scheduled One-time campaigns
  • Once a One-time campaign moves to Active state, it cannot be stopped
Action Restrictions
  • STOP: Only for scheduled One-time campaigns
  • PAUSE: Only for Periodic and Event-triggered campaigns
  • RESUME: Only for paused Periodic and Event-triggered campaigns
  • Periodic campaigns do NOT support STOP action

Authorizations

Authorization
string
header
required

Authentication is done via Basic Auth. The username is your Workspace ID (earlier APP ID) and the password is your API Key. The value is a base64 encoding of 'username:password'.

How to obtain credentials:

  1. Navigate to SettingsAccountAPIs in the MoEngage Dashboard
  2. Username: Copy the Workspace ID (earlier app id)
  3. Password: Copy the API key from the Campaign report/Business events/Custom templates tile

Headers

MOE-APPKEY
string
required

This is the workspace ID (earlier APP ID) of your MoEngage workspace.

You can find your MoEngage Workspace ID in the MoEngage Dashboard: SettingsAccountAPIsWorkspace ID (earlier app id)

Body

application/json

Campaign status change request with action and campaign IDs.

Request to change the status of one or more campaigns.

request_id
string
required

A unique identifier for this status change request.

Example:

"status_change_12345"

action
enum<string>
required

The action to perform on the campaign(s).

  • STOP: Stop a scheduled One-time campaign (cannot be used for Periodic campaigns)
  • PAUSE: Pause a running Periodic or Event-triggered campaign
  • RESUME: Resume a paused Periodic or Event-triggered campaign
Available options:
STOP,
PAUSE,
RESUME
campaign_ids
string[]
required

Array of campaign IDs whose status you want to change.

Maximum: 10 campaign IDs per request

Required array length: 1 - 10 elements
Example:
["camp_abc123", "camp_def456"]

Response

Campaign status changed successfully. No content returned.

For a successful 200 response, the API does not return any content.