This API fetches data at the platform level and provides data for all types of campaigns.
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).
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.