
Build Authorization Header
Use the Workspace ID and API Secret to generate an HTTP Auth Header, as explained in the Authentication section in the Personalize API article.Copy Request
You can also copy the sample request in any of the supported languages from the Test Experience section in the dashboard and test it on an external console using the copy to clipboard icon.Copy Workspace ID
The request header MOE-APPKEY should contain the Workspace ID value of your MoEngage Account.Attributes
The following attributes need to be passed in the request:User identification for fetching personalized content
The API processes the user identity information shared in the request and identifies the user to whom the communication needs to be sent, as shown below.
Testing the request in Postman
To test in Postman, do the following:-
Click on the copy & open Postman icon to copy the cURL and import it in Postman.
- Add the authentication details by using the authorization section. Add the Workspace ID as the username and the API Key as the password.
- The imported cURL will contain the payload details. Copy the experience key and update it in the respective field. Add the authorization header and other attributes.
- Click on Send in Postman. This will send the request to the Fetch Personalize API.