Skip to main content
POST
/
v5
/
campaigns
/
meta
curl --request POST \
  --url https://api-{dc}.moengage.com/v5/campaigns/meta \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/json' \
  --header 'Idempotency-Key: <idempotency-key>' \
  --header 'X-MOE-Request-Id: <x-moe-request-id>' \
  --data '
{
  "request_id": "{{request_id}}",
  "limit": 15,
  "page": 1,
  "campaign_fields": {
    "id": "{{campaign_id}}",
    "status": [
      "SCHEDULED",
      "ACTIVE",
      "PAUSED",
      "DRAFT"
    ]
  }
}
'
{
  "response_id": "resp-meta-001",
  "type": "campaign",
  "data": {
    "campaigns": [
      {
        "campaign_id": "64a1b2c3d4e5f6a7b8c9d0e1",
        "channel": "PUSH",
        "platform": [
          "ANDROID",
          "IOS"
        ],
        "created_by": "[email protected]",
        "campaign_delivery_type": "ONE_TIME",
        "campaign_name": "Summer Sale Campaign",
        "campaign_team": "Growth Team",
        "campaign_tags": [
          "promotional",
          "seasonal"
        ],
        "campaign_status": "SCHEDULED",
        "campaign_start_time": "2024-11-28T12:18:00",
        "reachability_details": {
          "count": 18182,
          "last_updated_time": "2024-11-27T09:05:42.661000"
        }
      }
    ]
  }
}

Supported Channels

  • Email
  • Push
  • SMS
  • WhatsApp
  • Facebook
  • Google Ads
  • Connectors

Reachability Information

  • Available only for scheduled campaigns (one-time, business event-triggered, and event-triggered).
  • Provides estimated user count that will receive the campaign.
  • Calculated once daily and cached for 24 hours. Multiple API calls within the same day return the cached value.
  • May vary due to app installations/uninstalls or subscription changes.

Rate Limits

Rate Limit NameRate Limit
get campaign meta per secondThe total number of get campaign meta requests per second per client allowed is 10.
get campaign meta per minuteThe total number of get campaign meta requests per minute per client allowed is 100.
get campaign meta per hourThe total number of get campaign meta requests per hour per client allowed is 6000.
Notes
  • Breaching the limits will reject the request.
  • Per-hour and per-day limits use a rolling window of the last 1 hour and last 24 hours respectively.

Authorizations

Authorization
string
header
required

Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.

  • Username: Use your MoEngage workspace ID (also known as the App ID). You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
  • Password: On your MoEngage workspace, navigate to SettingsAccountAPI keys and click Create new key. The tab lists every API surface (Data, Segmentation, Push, Email, Campaigns, Templates, and more) and exposes per-resource actions. For Campaigns, ensure the View, Create & Manage, and Create, Manage & Publish checkboxes are selected.

For more information on authentication and getting your credentials, refer to Getting your credentials.

Send the value in the Authorization header as Basic followed by Base64-encoding of appkey:apisecret (workspace ID and API key).

Headers

X-MOE-Tenant-ID
string

Workspace tenant ID. Set this to the workspace (App) ID from Settings > Account > APIs > Workspace ID.

This header is optional. When omitted, the API resolves the workspace from the Basic Auth credentials in the Authorization header.

In the V1 Campaigns API, the workspace ID was passed via the MOE-APPKEY request header. In V5, this header is renamed to X-MOE-Tenant-ID.

X-MOE-Request-Id
string
required

Correlates with response_id. Supply this header or request_id in the body; if both are set, they must match.

Idempotency-Key
string<uuid>
required

UUID v4. Required on all POST and PATCH requests except POST /v5/campaigns/{campaign_id}/validate. Repeating the same key returns the same response body.

Body

application/json

Provide the search criteria for retrieving campaign metadata and reachability information.

limit
integer
required

The number of campaigns to display per page.

Maximum: 15

Required range: 1 <= x <= 15
Example:

15

page
integer
required

The page number to retrieve.

For example, if there are 200 campaigns and the limit is 10, there will be 20 pages.

Required range: x >= 1
Example:

1

request_id
string

A unique identifier for this metadata retrieval request.

Example:

"{{request_id}}"

campaign_fields
object

Filter criteria for retrieving campaign metadata.

include_child_campaigns
boolean
default:false

When true, returns child campaign metadata for periodic campaigns.

Activates the following response fields on each campaign object:

  • total_child_campaigns - number of child campaigns (present on the parent campaign).
  • parent_campaign_id - the parent campaign's ID (present on each child campaign).

Defaults to false.

Response

Campaign meta rows

response_id
string
type
string
Example:

"campaign"

data
object