This API sends a test Push or Email campaign to specific users or identifiers before launching it to your entire audience. You can only test campaigns created via the API, not campaigns created through the MoEngage dashboard.
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
For more information on authentication and getting your credentials, refer here.
This is the Workspace ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
Test campaign configuration including content and target test users. Note: Use the tabs below to select your campaign type. The schema will adapt based on the selected channel.
A unique identifier for this test request.
"test_push_12345"
The communication channel (automatically set to PUSH for this tab).
PUSH Contains the basic information about the Push campaign.
Contains the content and variations for the Push campaign.
Metadata for specifying test recipients for Push campaigns.
Override values for personalizing campaign content during testing.
Important:
Test campaign sent successfully
Response after successfully sending a test campaign.
Object containing test results for each identifier.
Each key is an identifier value with its delivery status.
{
"user_12345": { "status": "success" },
"user_67890": {
"status": "failed",
"failure_reason": "User not found"
}
}A success message.
"Test campaign created successfully"