curl --request GET \
--url https://api-{dc}.moengage.com/v1/category-subscription/user-preferences \
--header 'Authorization: Basic <encoded-value>' \
--header 'MOE-APPKEY: <moe-appkey>'Get Subscription Preferences
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.
curl --request GET \
--url https://api-{dc}.moengage.com/v1/category-subscription/user-preferences \
--header 'Authorization: Basic <encoded-value>' \
--header 'MOE-APPKEY: <moe-appkey>'Rate Limit
The rate limit is 100 RPM and 360k per day.承認
Authentication is done via Basic Auth. This requires a base64-encoded string of your credentials in the format 'username:password'.
- Username: Use your MoEngage workspace ID (also known as the App ID). You can find it in the MoEngage dashboard at Settings > Account > APIs > Workspace ID (earlier app id).
- Password: Use your API Key, which you can find within the Data tile.
For more information on authentication and getting your credentials, refer here.
ヘッダー
クエリパラメータ
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.