This API fetches data at the platform level and provides data for all types of campaigns.
The API request will be authenticated through Basic Authentication. You can obtain the username (Workspace ID) and password (API Key) details from the MoEngage Dashboard.
Basic Authentication using Workspace ID (username) and Campaign Report API Key (password).
This is the workspace ID (earlier APP ID) of your MoEngage workspace. Found in Settings -> Account -> APIs -> Workspace ID.
Request body to fetch campaign stats.
This field shows the request ID created by a user. Helps to know the API calls made by the client.
This field shows the start date of the campaign in YYYY-MM-DD format.
"2024-12-22"
This field shows the campaign's end date in YYYY-MM-DD format. The days between the start and end dates should not exceed 30 days.
"2024-12-23"
This field shows the attribution type that should be picked to show conversion stats.
VIEW_THROUGH, CLICK_THROUGH, IN_SESSION, TOTAL_CONVERSIONS, CLICK_CONVERSIONS This field shows the total or unique values of all the metrics.
TOTAL, UNIQUE This field shows the campaign IDs created, up to 10 max per call.
10This field shows the position of a record in a dataset. The default value for the number of campaigns to skip is 0. For example, set the offset to 50 to see the data from page 51.
This field shows the maximum number of campaigns displayed on a page. The default and max limit is up to 10 campaigns.
x <= 10Successful response.
The response ID, which is the same as the request ID passed in the payload.
This field indicates the total number of campaigns that are requested in the payload.
This field indicates the current page number.
This field indicates the total page. It is equal to the total campaigns, which is limited to 10 for each call and 10 to be displayed for each page.
This object contains the campaign stats. Keys are Campaign IDs.