This API fetches the subscription category preferences information for a specific user based on the encrypted User ID and Campaign ID found in the landing page URL.
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).
This is the MoEngage ID that uniquely identifies the customer for whom the subscription preferences are being updated.
Note: MoEngage ID is encrypted using 16 bits DES and is encoded in the URL of the landing page. It must be sent as-is (encrypted).
This is the campaign id of the email campaign. This field contains the information about the email campaign received by the customer.
Note: The campaign ID is encrypted using 16-bit DES and is encoded within the landing page URL. You must fetch the encrypted <campaign Id> from the URL and send it directly to MoEngage; it is not necessary to perform any decryption.
Success. This response is returned when the request is processed successfully.
A JSON Object that contains the subscription preferences of the customer.
category_name is the unique category name in MoEngage.
{
"Promotions": true,
"Updates": false,
"Recommendations": true,
"Newsletter": false
}