Bulk Update Subscription Preferences
curl --request POST \
--url https://api-{dc}.moengage.com/v1/category-subscription/user-preferences \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"channel": "email",
"user_preferences": [
{
"customer_id": "[email protected]",
"categories": {
"Promotional": false,
"Transactional": false,
"Special Offers": true
},
"unsubscribe_all": false
},
{
"customer_id": "[email protected]",
"categories": {
"Transactional": true,
"Promotional": false,
"Special Offers": true
},
"unsubscribe_all": false
},
{
"customer_id": "[email protected]",
"categories": {
"Product Updates": true,
"New arrivals": false,
"Recommendations": true
},
"unsubscribe_all": false
}
]
}
'{
"message": "Your request has been processed"
}
Bulk Update Subscription Preferences
This API updates subscription category preferences in bulk. You can use this API to update the user preferences to MoEngage in large volumes.
ページを読み上げる約1分
POST
/
category-subscription
/
user-preferences
Bulk Update Subscription Preferences
curl --request POST \
--url https://api-{dc}.moengage.com/v1/category-subscription/user-preferences \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"channel": "email",
"user_preferences": [
{
"customer_id": "[email protected]",
"categories": {
"Promotional": false,
"Transactional": false,
"Special Offers": true
},
"unsubscribe_all": false
},
{
"customer_id": "[email protected]",
"categories": {
"Transactional": true,
"Promotional": false,
"Special Offers": true
},
"unsubscribe_all": false
},
{
"customer_id": "[email protected]",
"categories": {
"Product Updates": true,
"New arrivals": false,
"Recommendations": true
},
"unsubscribe_all": false
}
]
}
'{
"message": "Your request has been processed"
}
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 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).
ボディ
application/json
A list of preference updates for multiple users.
レスポンス
Your request has been processed.
A brief description of the request status in the case of success.