Delete Cards for User
curl --request DELETE \
--url https://api-{dc}.moengage.com/v1/cards/delete \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"uid": "[email protected]",
"campaign_ids": [
"campaign_id1",
"campaign_id2"
],
"platforms": [
"android",
"ios"
]
}
'{
"status": true,
"request_id": "<string>",
"data": {
"android": {
"success": [
"<string>"
],
"failed": [
"<string>"
],
"invalid": [
"<string>"
]
},
"ios": {
"success": [
"<string>"
],
"failed": [
"<string>"
],
"invalid": [
"<string>"
]
},
"web": {
"success": [
"<string>"
],
"failed": [
"<string>"
],
"invalid": [
"<string>"
]
}
},
"title": "<string>",
"description": "<string>",
"code": "<string>",
"error": "<string>"
}Delete Cards for User
This API deletes cards for a specified user from the MoEngage Cards database.
DELETE
/
cards
/
delete
Delete Cards for User
curl --request DELETE \
--url https://api-{dc}.moengage.com/v1/cards/delete \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--header 'MOE-APPKEY: <moe-appkey>' \
--data '
{
"uid": "[email protected]",
"campaign_ids": [
"campaign_id1",
"campaign_id2"
],
"platforms": [
"android",
"ios"
]
}
'{
"status": true,
"request_id": "<string>",
"data": {
"android": {
"success": [
"<string>"
],
"failed": [
"<string>"
],
"invalid": [
"<string>"
]
},
"ios": {
"success": [
"<string>"
],
"failed": [
"<string>"
],
"invalid": [
"<string>"
]
},
"web": {
"success": [
"<string>"
],
"failed": [
"<string>"
],
"invalid": [
"<string>"
]
}
},
"title": "<string>",
"description": "<string>",
"code": "<string>",
"error": "<string>"
}Rate Limit
The rate limit is 50K RPM (Requests Per Minute) and is applicable at the workspace (App) level.Authorizations
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 > API keys.
- Password: Use the Campaign report/Business events/Custom templates/Catalog API/Inform Report key from Settings > Account > API keys. Its auth type is Basic Auth (Legacy). This API accepts only this legacy key, so a key you create with + Create new key doesn't work with it.
For the key that each MoEngage API accepts, refer to API Keys by Feature.
Headers
Body
application/json
You must provide either 'uid' or 'unique_id'.
Generating unique_id
The unique_id refers to the device identifier and is platform-specific.
- Android
- iOS:
MoEngageSDKCore.getMoEngageDeviceId(completionHandler: @escaping UserInfoHandler)
The unique_id is the platform-specific device identifier. Refer to Generating unique_id for details.
Response
This response is returned when the request is processed successfully.