Validate Campaign
Validates whether a draft would pass publish-time checks (DRAFT_PUBLISH) without making any changes to the draft.
The request body is the same regardless of channel — all campaign data is read from the saved draft identified by campaign_id in the path, so there is no channel-specific payload.
Rate Limits
| Rate Limit Name | Rate Limit |
|---|---|
| Validate campaign per second | The total number of validate campaign requests per second per client allowed is 10. |
| Validate campaign per minute | The total number of validate campaign requests per minute per client allowed is 100. |
| Validate campaign per hour | The total number of validate campaign requests per hour per client allowed is 6000. |
Authorizations
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 Settings → Account → API 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
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.
Correlates with response_id. Supply this header or request_id in the body; if both are set, they must match.
Path Parameters
Raw 24-char ObjectId of the campaign to validate. Use the id value returned in the Create Campaign response.
Body
Optional string (UUID v4 recommended) used to identify this validation call. Unlike other POST endpoints, this field is not required and does not enforce deduplication - the validate endpoint is read-only and safe to retry freely.
"{{request_id}}"
Response
Validation result - always returned regardless of whether the campaign passes or fails validation.