Test Campaign
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.
Request
- Base URLhttps://api-01.moengage.com/core-services/v1
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
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).
This is the project ID of your MoEngage account that must be passed with the request. You can find it in the MoEngage dashboard at Settings > Account > Portfolio > Project ID. Note: This parameter is mandatory for workspaces with the Portfolio feature enabled.
Request body
Response
Test campaign sent successfully
Example response
{
"data": {
"user_12345": {
"status": "success"
},
"user_67890": {
"status": "failed",
"failure_reason": "User not found"
}
},
"message": "Test campaign created successfully"
}Changes
No recorded changes to this operation across all 1 revision of this API.