This API retrieves all active and updated cards for a specific user from the MoEngage Cards database. You can filter the search results based on the platform and card category and check if any card was updated for the user since the previous sync.
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 field contains the index of the pages to be returned in the search result. When this value is not passed in the request, one page is returned in the search result. The value should be a number greater than zero.
x >= 1This field contains the number of cards returned in the search result. When this value is not passed in the request, all the cards are fetched and returned in the search result. The value should be a number greater than zero.
x >= 1You must provide either 'uid' or 'unique_id'.
The unique_id refers to the device identifier and is platform-specific.
MoEngageSDKCore.getMoEngageDeviceId(completionHandler: @escaping UserInfoHandler)The uid is the unique MoEngage Standard ID (Email ID Standard or Mobile Number Standard) that identifies the user. You can get the uid from the User Profile page of your dashboard.
This field is used to filter the cards based on the unique_id or uid specified in the request.
The unique_id is the platform-specific device identifier (e.g., IDFA/AAID) that uniquely identifies the user. Refer to Generating unique_id for details.
This field is used to filter the cards according to the platform. Cards of all the platforms that are provided are returned in the search result. When this field is not specified in the request, cards of all platforms are returned. Allowed Values: ANDROID, IOS, WEB.
ANDROID, IOS, WEB This field is used to filter the cards based on the card category. When this field is not specified in the request, cards of all categories are returned. For more information, refer to Card Categories.
This field is used to filter the cards based on the ID of the cards that were fetched earlier using this API. This field will be used to filter cards that do not have any changes made to them since the last fetch. Thus, only those cards that have been updated for the specified user since the last fetch would be returned. This should be used along with last_updated_time.
This field is used to filter the cards based on the last time the cards were synced. This should be used along with prev_sync_card_ids to identify if there has been any update to the cards since the last sync. (Unix epoch time).
This response is returned when the request is processed successfully.
Indicates if the request was successful (true) or unsuccessful (false).
Unique identifier for this API request.
This field contains the list of cards that satisfy the search criteria.
Error message if status is false.
Error title if status is false.
Error description if status is false.
Error code if status is false.