Skip to main content
The MoEngage Cards API allows you to fetch and delete user-specific cards from the MoEngage database. Use these endpoints to retrieve cards for a user, filter them by platform and category, check for updates since the last sync, and remove specific card campaigns.
If this API is not enabled for your account, contact your MoEngage Customer Success Manager (CSM) or the Support team to request enablement.

Endpoints

The Cards API is a collection of the following endpoints:
  • Fetch Cards: Retrieves all active and updated cards for a specific user, supporting filtering and pagination.
  • Delete Cards: Deletes specific card campaigns for a user from the MoEngage Cards database.

IP Whitelisting

FAQs

Fetch Cards

You can use the prev_sync_card_ids (list of card IDs from the previous sync) and last_updated_time (Unix epoch timestamp of the last sync) fields in the request body. The API will return only the new or updated cards.
Yes. You can filter by platform using the platforms array (e.g., ["ANDROID", "WEB"]) and by category using the card_category string field in the request body.
You must provide either the uid (MoEngage Standard ID like Email or Mobile Number) or the unique_id (Platform-specific device identifier). One of these is required.
The unique_id is the unique value that identifies the user to whom the cards need to be shown. It is a platform-specific device identifier that can be generated.The uid is the unique MoEngage Standard ID (Email ID Standard or the Mobile Number Standard) that identifies the user.
No. If you display cards using only the Fetch Cards API, without the MoEngage SDK, MoEngage doesn’t receive impression or click signals, and the Impressions and Clicks metrics for the Card campaign aren’t populated.You can track interactions yourself by sending a custom event to MoEngage, for example Card_Tap. Custom events appear in general Analytics, but they aren’t attributed to the Card campaign and don’t update its Impressions or Clicks.To populate campaign-level impression and click stats, use the SDK’s Cards tracking APIs, such as cardShown() and cardClicked(). For more information, refer to self-handled cards for Android, iOS, and Web.

Delete Cards

The Delete Cards API requires complex filtering parameters (campaign IDs, specific platforms, and user identifiers) which are best transmitted via a JSON body, even though this deviates from the standard REST pattern for DELETE requests.
Yes, you can specify the platforms array in the request body (e.g., ["android"]) to delete the cards only from those specific platforms. If omitted, it deletes from all associated platforms.
The unique_id is the unique value that identifies the user to whom the cards need to be deleted. It is a platform-specific device identifier that can be generated. The uid is the unique MoEngage Standard ID that identifies the user.

Postman Collections

We have made it easy for you to test the APIs. Click here to view the Postman collection.